← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / scientific-agent-skills / skills / bulk-rnaseq / references / design-and-qc.md

Experimental design and QC

The statistics downstream are only as good as the design and the QC gates. Decide design before sequencing; apply QC before, during, and after quantification. This is what makes a bulk RNA-seq result defensible.

Experimental design

Replication

Depth, length, layout

Avoid confounding (the design killer)

Design formulas (hand to PyDESeq2)

QC gates

Raw-read QC (FastQC / MultiQC)

Alignment / quantification QC

Don't deduplicate for standard DE

PCR/optical duplicates look alarming but in RNA-seq mostly reflect genuine high expression. Standard gene-level DE (DESeq2) does not remove duplicates. Only consider dedup with UMIs (use the UMI, not coordinate dedup).

Post-quantification QC (before trusting DE)

Always do this on the counts, ideally on variance-stabilized/log values: - PCA — do biological replicates cluster? Does the main axis separate your condition, or a batch? A batch dominating PC1 means you must model it. An obvious outlier may be a swap/failure. - Sample-distance heatmap / hierarchical clustering — confirms grouping and exposes mislabeled or swapped samples. - If a batch clearly structures the data, add it to the design (~batch + condition); if it's unknown, consider surrogate-variable / RUV approaches (out of scope here — note it).

After DE: p-value histogram

Quick gate checklist

[ ] >=3 biological replicates per group
[ ] batch recorded and NOT confounded with condition
[ ] raw FastQC reviewed; adapters trimmed
[ ] mapping/assignment rate acceptable; strandedness verified
[ ] PCA + sample-distance heatmap inspected; outliers/swaps resolved
[ ] design formula full-rank, adjustment vars before variable of interest
[ ] p-value histogram sane after DE
[ ] versions pinned (pipeline -r, tools, genome+annotation release)