10 Verify and Explain: Synthetic practice
Use Cell001, then repeat with Cell047 (low depth) and Cell048 (high mitochondrial fraction).
Rscript scripts/R/verify_cell.R synthetic Cell001
Rscript scripts/R/verify_cell.R synthetic Cell047
Rscript scripts/R/verify_cell.R synthetic Cell048The 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.”
The v2 values differ from the earlier 60-gene, 48-cell dataset. Use the expected values below only after recreating v2 inputs and rerunning the workflow.
| Cell | Total counts | Detected genes | Mitochondrial % | Retained |
|---|---|---|---|---|
| Cell001 | 18543 | 848 | 3.575473 | TRUE |
| Cell047 | 85 | 71 | 1.176471 | FALSE |
| Cell048 | 3762 | 498 | 47.049442 | FALSE |
For Cell001, Gene001 has raw count 125 and expected normalized expression log(1 + 10000 * 125 / 18543) = 4.225532 (rounded).