RNA-seq data audit: 20 checks, tested on real data
Most RNA-seq mistakes are made before the analysis starts: a swapped sample, a batch that tracks the treatment, gene names a spreadsheet turned into dates, a count file that holds estimates and not raw counts. The pipeline still runs and the p-values still come out. Here is what a pre-analysis audit looks at, how we tested ours, and what we will not claim for it.
What the audit reads
Two files: a raw count matrix (genes by samples) and a sample sheet. Nothing else. That keeps it fast and means you can run it before any differential expression, and before you decide how to analyze the data. It does not look at reads, so it cannot check strandedness, rRNA content or mapping rate. Every report says which checks it could not run.
The 20 checks, by the question each answers
- Can the files be read, and do the names match? Input files, gene identifiers (including names damaged by spreadsheet software), species and annotation, and the sample sheet.
- Does each sample look like its group, and is each library usable? Sample identity from sex genes, replicate correlation and PCA, duplicate samples, library size, library quality, contamination (globin, mitochondrial and second-species reads), the expected target gene for a knockdown, knockout or overexpression, and a low-count filter summary.
- Does each sample match what your sheet says it is? If your sheet has a tissue, cell line, dose or time column, the audit checks each sample against it: marker genes for the declared tissue, expression against 69 human reference cell lines, and whether samples sit nearest their own dose or time level.
- Could something other than the treatment explain the result? Design and batch, covariates such as RIN or library size against the leading principal components, pairing, a check for sample groups that no column in your sheet explains (a possible unrecorded batch), and a detectable-effect estimate that tells you roughly what fold change your replicate numbers could detect.
Eighteen of the twenty can flag a problem. Two give information only, and three of the eighteen need an optional column in your sheet. The methods page lists each check and the threshold at which it flags.
How we tested it
We tested the audit two ways, and we publish both on the how we tested page, including where it falls short.
Planted faults. We generated 6,240 simulated projects (three seeded sets of 2,080), some clean and some with a known problem added (swapped samples, duplicated samples, damaged gene names, normalized values in a raw-count file, failed libraries), and counted what the audit caught, missed and raised falsely. We then tuned it, which cut false alarms and cost some sensitivity, and the page shows both sides of that trade. For the newer checks, we planted extra faults: when we raised the mitochondrial share of one sample to three in ten of its reads, the contamination check flagged it in all 60 of 60 test cases, and when the same subject was listed twice in one condition the pairing check flagged it in 60 of 60. A smaller globin spike, three reads in every hundred, was caught in 39 of 60, and we say so.
Real public data. Planted faults are simulated, so we also ran the audit on 14 count files from 11 public datasets in the Gene Expression Omnibus. We do not know the true state of those files, so these runs show what the audit flags, not how often it is right. They did show it flagging real, visible things: count files holding estimated values in place of raw counts, gene names turned into dates, and gene IDs listed under more than one version number. For studies that knocked down or overexpressed a named gene, the target check confirmed the expected change in most cases and reported the weaker ones as weaker.
What we do not claim
- The test data are simulated, and the tools were adjusted using the same cases, so the numbers are optimistic for what we fixed.
- We quote no detection rate from the real public datasets, because we do not know their true state.
- A flag is a reason to look at a sample or a column. It is not a verdict, and a report with no flags does not mean the data are free of problems.
- A CRISPR knockout often leaves the transcript level unchanged, so the target check treats a knockout that did not fall as a warning to confirm another way, not as a failed experiment.
What you get
A one-page report that names the samples and columns to look at, a data integrity statement your PI, your core or a reviewer can read, and the run record with the tool version and thresholds, so the same version on the same files gives the same result. You can see all of it in the sample reports, which are built from public data and labeled as examples.
Who this is for
PIs and postdocs preparing a paper, core facilities that want a record to attach to a deliverable, and labs reusing public data or receiving data from an outside provider. The audit checks the data before analysis. Design, contrasts and what the results mean stay with you or whoever analyzes your data.
If you want to see it on your own files first, the free audit is the place to start, and the pricing page lists the options after that.
Do not find out after it costs you
CodeISB checks your count matrix and sample sheet for swapped samples, weak libraries and batch confounding, and returns a one-page report. No raw reads or patient identifiers needed.
The first audit is free. Current prices hold for 12 months from your first project; later customers pay list.
Get your free audit