Methods: what each check does
Every check, what it looks at, and the threshold at which it raises a flag. Each report prints the same thresholds, so a result can be reproduced.
The audit reads a raw count matrix (genes by samples) and a sample sheet, and nothing else. It does not look at reads, so it cannot check strandedness, rRNA content, mapping rate, genotype-based identity or differential expression results. A flag is a reason to look at a sample or column, not a verdict. For how often the checks fire on files with and without planted problems, see how we tested.
The checks
Grouped by the question each one answers. Each check links to the guide that explains it.
Files and labels
Can the files be read, and do the names match?
| Check | What it looks at | Flag when |
|---|---|---|
| Input filesQC checklist before DE → | In plain words: Can we read your files, and are they raw counts?Whether the matrix and sample sheet can be read; whether values look like raw counts (whole, non-negative, not normalized or rounded normalized values) | Values look like CPM, TPM, log values, size-factor normalized or expected counts; or the files cannot be parsed |
| Gene identifiersFree gene-name checker → | In plain words: Are gene names intact, for example not turned into dates by Excel?Whether gene IDs are intact and consistent | Gene symbols that spreadsheet software turned into dates or scientific notation; mixed or unrecognised ID types |
| Sample sheetSample sheet checklist → | In plain words: Does every sample in your table have a row in your sample sheet?That every matrix column has a sample sheet row and the reverse; duplicate names | Unmatched or duplicated sample names; missing group labels |
| Sample identityFinding a sample swap → | In plain words: Does each sample's recorded sex match what its genes show? A mismatch can mean a tube mix-up.Expression of Y-linked genes and XIST against the sex column, if you supply one | A sample is called male-like (Y-gene score at or above 1.5, XIST below 3.0) or female-like (XIST at or above 3.0, Y-gene score below 1.0), in log2 CPM+1 units; flagged when the call disagrees with the sex column, and marked unclear when the markers fit neither pattern |
| Species and annotation | In plain words: Do the gene IDs look like the species you said?Whether the gene IDs look like the organism you declared (Ensembl prefix, or capitalization of gene symbols) | You choose human or mouse when you submit, and and the IDs read as the other. It cannot read the Ensembl release or genome build from counts |
Samples and libraries
Does each sample look like its group, and is it a usable library?
| Check | What it looks at | Flag when |
|---|---|---|
| Replicate correlation and PCAReading a PCA plot → | In plain words: Do samples in the same group resemble each other? A loner may be a bad sample.Median Spearman correlation of each sample with the others in its group, and where it sits on the first components (top 500 variable genes) | A sample's median correlation is below 0.85, or is a robust outlier (z below -3.5); or the sample is a PCA outlier (robust z above 12; needs at least 8 samples in the group), or is more correlated with another group than its own by a margin of 0.01. For each flagged sample the report also says whether a few genes (the 10 largest hold 30% or more of the difference) or many genes carry it |
| Duplicate samples | In plain words: Is any sample a near copy of another?Pairs of samples with near-identical profiles, including technical replicates listed as separate samples | Correlation above 0.999; or at least 60% of samples having a partner with ratio-consistent counts (technical replicates; at least three pairs, or a library column) |
| Library sizeQC checklist before DE → | In plain words: Did every sample get enough sequencing, and similar amounts?Total reads per sample | Fewer than 1,000,000 reads (fail) or 5,000,000 (warn); or a sample more than 2.5-fold away from the median |
| Library qualityQC checklist before DE → | In plain words: Do any samples look like poor libraries, for example one gene taking most reads?Share of reads in the top gene; fraction of genes detected; mitochondrial share | One gene holds more than 25% of reads; detected genes below 80% of the median sample; mitochondrial reads above 30% (needs at least 8 mitochondrial genes in the matrix) |
| Expected target geneOptionalKnockdown check → | In plain words: If you knocked a gene down, did it go down?If you name the gene you perturbed, whether it moves the right way | Target expressed above 2.0 CPM in controls but less than a 2-fold drop (log2 fold change of -1.0) in treated samples; weak when the drop is smaller than 1.5-fold (log2 of -0.58); a sample that does not follow its group |
| Contamination | In plain words: Does a sample carry signal from blood, another species or another cell type?Per-sample share of globin reads (blood carryover), mitochondrial reads, reads from a second species when both human and mouse Ensembl IDs are present, and marker genes of ten tissue and cell types (needs gene symbols) | Globin at least 2% of a sample and 5 times the median sample; mitochondrial at least 20% and 2.5 times the median; a second species at least 5% of a sample; a tissue-marker panel (immune and blood cells, liver, skeletal muscle, brain, heart, pancreas, kidney, skin, lung, gut) at least 6 times the median sample and at least 0.15% of reads. High values can be real biology in heart, muscle or blood, and tissue-marker flags can appear when your groups are different cell types, so a flag is a reason to look |
| Low-count filter | In plain words: Are enough genes expressed to analyze? Information only.How many genes keep CPM of at least 1 in at least as many samples as the smallest group | Information only in practice. It warns only if fewer than 6,000 genes pass and they are under 25% of the genes measured. In our tests it never warned on files that Library size had not already failed |
Design and covariates
Could something other than the treatment explain the result?
| Check | What it looks at | Flag when |
|---|---|---|
| Design and batchIs batch confounded? → | In plain words: Can the treatment effect be separated from batch?Whether condition and batch (and pairing) are crossed sensibly | Condition labels at least 40% predictable from batch, which includes near-confounding where only one or two samples cross batches |
| Covariates and PCAReading a PCA plot → | In plain words: Does the main pattern in the data follow something other than your treatment, like RNA quality?Whether any of the first three principal components tracks library size or a numeric column in your sample sheet (for example RIN, DV200 or age), by Spearman rank correlation | A component correlates with a covariate at 0.80 or more (in either direction) with a t statistic of at least 4.5, needing at least 8 samples; the report also says when that covariate differs between conditions, since it can then look like a treatment effect |
| Unexplained structure | In plain words: Is there a strong split between samples that nothing in your sample sheet explains?Whether a leading principal component splits the samples into two groups that no column in the sample sheet (condition, batch or any other labelled column, or inferred sex) explains | A split into two groups of at least two samples that is stronger than random splits of the same number of samples, and that matches no sheet column at 80% or more. It looks like an unrecorded batch, and a true biological subgroup looks the same. Needs at least 8 samples |
| Tissue identityOptional | In plain words: Does each sample look like the tissue it is labeled as?Needs a tissue column. Whether each sample's marker genes (ten panels: immune and blood, liver, muscle, brain, heart, pancreas, kidney, skin, lung, gut) fit the tissue the sheet declares | A sample sits nearer another declared tissue (at least 4-fold apart in a panel, and at least 0.15% of reads), or its own tissue markers are 6 times or more below the other samples of that tissue, or it carries another declared tissue's markers (at least 15% of what genuine samples of that tissue show, at least 500 CPM, and 8 times its own group). Works with gene symbols or human Ensembl IDs. Libraries under 100,000 reads are not judged. It cannot tell similar tissues apart, such as cortex and hippocampus |
| Dose and time orderingOptional | In plain words: Does each sample sit nearest its own dose or time point? A sample nearer another level may be mislabeled.Needs a dose or time column with at least 3 levels and 2 samples each. Whether each sample sits nearest its own level on expression | A sample is nearer another level than its own. Not tested when fewer than half the samples sit nearest their own level. With 2 samples per level, a flag needs the swap pattern (every sample of two levels implicated); a lone odd sample or one odd level is noted and not counted. A non-monotonic response is noted, not flagged |
| Cell line identityOptional | In plain words: Does each sample look like the cell line it is labeled as?Needs a cell_line column, human data, and gene symbols or Ensembl IDs. Each sample's expression compared with 69 human reference cell lines (Human Protein Atlas cell line RNA, 500 informative genes) by rank correlation | Another reference line beats the sample's declared line by 0.05 or more. Spellings such as HeLa, hela, HEK293T and caco2 are matched, and close derivatives of one parent count as one line. A declared line the reference lacks is listed and not judged; libraries under 100,000 reads are not judged. It is not an STR test and cannot confirm a line it does not know |
| Pairing | In plain words: Does the same subject appear where it should, and is a paired design complete?Whether any subject, patient, donor or animal ID repeats, using a subject column | The same subject appears more than once in one condition, or a paired design is missing a condition for some subjects. A complete paired design passes, with a note to put the subject in the model |
| Detectable effect | In plain words: With your replicates, how large a change could be detected? Planning information, never a flag.From the variation between your own replicates, about how large a fold change the design could detect at 80% power and p below 0.001 | Never flags. It is information for planning, an approximation, and not a grant power calculation |
Settings that change what you see
- Supplying a
sexcolumn turns on the sample identity check. Without it that check is skipped and the report says so. - Naming the perturbed gene turns on the expected target gene check, the one that most often makes a swap visible when conditions barely differ.
- A numeric column such as
RINin the sample sheet is tested against the leading principal components along with library size, and the report colours the PCA by it. Without one, only library size is tested. - A
cell_linecolumn turns on the cell line identity check, atissuecolumn the tissue check, and adoseortimecolumn the dose and time check. Without them those checks are skipped and the report says so. - A
subjectcolumn turns on the pairing check. Without it that check is skipped and the report says so. - Choosing "knockout" as the perturbation type makes a knockout whose transcript did not fall a warning with an explanation instead of a failure, because a CRISPR frameshift often leaves RNA levels normal.
- The optional GEO option adds a deposit-readiness check of the sample sheet against the fields a GEO submission asks for, and writes a pre-filled sample table. The optional anonymize option replaces sample names with codes in every output and keeps the key in a separate file.
- A
batchcolumn turns on the batch part of the design check, and alibrarycolumn lets technical replicates be recognised from a single pair.
A sample sheet with the optional columns looks like this:
Result verification
A separate tool (version 0.3.0) checks a differential expression table against the counts it came from. For each table it reports what it could and could not check.
- 1Direction of the contrastIs treated compared with control the right way round, or are the fold changes flipped?
- 2Sample labelsDo the table’s samples match your sheet, or was it computed with shuffled or swapped labels?
- 3Which contrast it isDoes the table belong to the comparison you named, not a different one?
- 4Multiple-testing correctionAre the adjusted p-values really corrected, or unadjusted, or Bonferroni labeled as FDR?
- 5Gene coverageDo the table’s gene IDs match the count matrix, and were p-values adjusted over the same genes?
- 6Fold changes, p-values and adjusted p-values agreeAre the three consistent with each other and the counts? Hand-edited values show up here when the table is complete.
A pass does not show that batch or pairing was in the model.
What we do not claim
- The thresholds were set by us and adjusted on our own simulated test cases. They are reasonable defaults, not validated cut-offs.
- The audit finds patterns that are consistent with specific problems. It cannot tell you why a pattern exists.
- Results are for research use only.
See the checks on a real report.
Or request a free audit: one project, up to 30 samples, no payment today.