24 Verify and Explain: Your own study
Copy an exact retained cell_id from results/your-study/tables/cell-qc.tsv and replace REPLACE_WITH_CELL_ID below. Repeat with an excluded cell if present.
Rscript scripts/R/verify_cell.R your-study REPLACE_WITH_CELL_IDThe verifier reads raw inputs independently; it does not call the analysis QC or normalization functions. It recalculates total counts, detected genes, mitochondrial percentage, the retained decision, and one positive gene’s normalized expression when retained. A disagreement stops execution. This checks arithmetic for one cell; it does not verify the entire scientific analysis.
Manually check the same cell:
- Sum its gene counts: total counts.
- Count genes with counts greater than zero: detected genes.
- Sum counts flagged mitochondrial, divide by total counts, multiply by 100.
- For one positive gene, calculate
log(1 + 10000 * gene_count / total_counts).
For a zero-total cell the mitochondrial percentage is undefined (NA), and the cell is excluded.
Explain: write one observation from QC and one from PCA. Quote actual cell counts or variance percentages. Explain whether exclusions or technical factors could influence the pattern. Do not invent a result before running the analysis.
AI prompt: “Review my observation against these exact saved values. Separate what the plot shows from my interpretation, and flag claims requiring more evidence.”