A Rust command-line tool for bulk RNA-seq quantification: genome + GFF3 + sample sheet + FASTQ to gene counts (kallisto or Salmon, or HISAT2 + featureCounts) and DESeq2. Licence: GPL-3.0-only.
The tools (kallisto, Salmon, HISAT2, featureCounts, gffread, R with DESeq2, Rust) come from the pixi
environment in pixi.toml.
pixi install # not tested on the UCR login node
cargo build --release -p qrnamap-cli # with the pixi env on PATH, see below
# the binary is target/release/qrnamapOn the UCR HPCC login node, pixi run ... hangs (cause not found). Put the environment on PATH
yourself instead:
export PATH="$PWD/.pixi/envs/default/bin:$PATH"
cargo build --release -p qrnamap-cli
QRNAMAP_REQUIRE_TOOLS=1 cargo test --workspaceA tab-separated file with a header row.
| column | content |
|---|---|
sample |
required. The sample name. It starts with a letter and uses only [A-Za-z0-9_.-]. |
fastq1 |
required. One FASTQ path, or a comma-separated list of lanes. Plain, .gz or .zst. |
fastq2 |
optional. Mate 2, with the same number of lanes as fastq1. Empty means single-end. |
| any other column | a covariate. A factor by default. A header name:numeric makes a numeric column name. |
A sample name must not equal a file or directory that qrnamap writes in --out (with or without .partial): index, salmon_index, slurm, transcripts.kidx, transcripts.fa.zst, tx2gene.tsv.zst, genes.saf, splice_sites.txt, genes.tsv.zst, mapping_summary.tsv.zst, counts.tsv.zst, strand_check.tsv, and the five deseq2.* result files. qrnamap refuses such a name before it writes anything. A run directory made by an older version with such a name cannot be finished with --step final.
- Covariate column names start with a letter and use only
[A-Za-z0-9_.]. R reserved words are refused. - Factor values use only
[A-Za-z0-9_.-], with no space. Writewild_type, notwild type. - Blank lines and lines that start with
#are ignored. - Single-end samples need
--fragment-length MEAN,SDin quant mode.
Example:
sample fastq1 fastq2 condition
WT_1 /bigdata/x/WT_1_L1_R1.fq.gz,/bigdata/x/WT_1_L2_R1.fq.gz /bigdata/x/WT_1_L1_R2.fq.gz,/bigdata/x/WT_1_L2_R2.fq.gz wild_type
KO_1 /bigdata/x/KO_1_R1.fq.gz /bigdata/x/KO_1_R2.fq.gz ko
# Genome FASTA and GFF3 (NCBI from the built-in catalog, or FungiDB with an API key)
qrnamap fetch --source ncbi --id GCF_000146045.2 --out genome/
qrnamap fetch --source fungidb --id "Aspergillus fumigatus Af293" --out genome/ --eupathdb-key-file ~/.eupathdb_key
# Transcript FASTA and tx2gene from a genome and GFF3
qrnamap transcripts --reference genome.fna.gz --gff genes.gff.gz --out tx.fa.zst --tx2gene tx2gene.tsv.zst \
--genes-table genes.tsv.zst
# kallisto per sample (writes OUT/<sample>.genecounts.tsv.zst)
qrnamap quant --samples samples.tsv --transcripts tx.fa.zst --tx2gene tx2gene.tsv.zst --out run/ --strandedness reverse
# The same with Salmon instead of kallisto
qrnamap quant --quantifier salmon --samples samples.tsv --transcripts tx.fa.zst --tx2gene tx2gene.tsv.zst \
--out run/ --strandedness reverse
# HISAT2 + featureCounts per sample
qrnamap align --samples samples.tsv --reference genome.fna.gz --gff genes.gff.gz --out run/ --strandedness reverse
# Gene-by-sample matrix from the per-sample count files
qrnamap matrix --out run/ --samples samples.tsv --genes-from tx2gene tx2gene.tsv.zst
# DESeq2
qrnamap de --counts run/counts.tsv.zst --samples samples.tsv --contrast condition,ko,wild_type --out run/deseq2
# DESeq2 with shrunk log2 fold changes (writes run/deseq2.results.shrunk.csv)
qrnamap de --counts run/counts.tsv.zst --samples samples.tsv --contrast condition,ko,wild_type \
--shrink apeglm --out run/deseq2
# Strandedness from the first 100,000 pairs of each sample
qrnamap strand-check --samples samples.tsv --reference genome.fna.gz --gff genes.gff.gz --out strand/
# All steps on this machine
qrnamap run --samples samples.tsv --reference genome.fna.gz --gff genes.gff.gz --mode quant \
--out run/ --strandedness reverse --contrast condition,ko,wild_type
# SLURM scripts instead of running (the run directory must be on shared storage).
# The jobs put temporary files in node-local $SCRATCH: run submit.sh from a login shell.
qrnamap run --samples samples.tsv --reference genome.fna.gz --gff genes.gff.gz --mode align \
--out /bigdata/lab/run/ --strandedness reverse --contrast condition,ko,wild_type \
--slurm --tool-path "$PWD/.pixi/envs/default/bin" --time 02:00:00
bash /bigdata/lab/run/slurm/submit.sh--quantifier kallisto|salmon selects the quant-mode tool. It is an option of quant and run
only. The default is kallisto, so a command without the option behaves as before.
run --mode align --quantifier ... is an error.
Two Salmon options are available on quant and run. Both are off by default. With neither option,
the salmon quant command line is the same as in earlier versions.
| qrnamap option | Salmon option | Rule |
|---|---|---|
--salmon-softclip-overhangs |
--softclipOverhangs |
switch |
--salmon-min-score-fraction F |
--minScoreFraction F |
F is a finite number with 0 < F <= 1 |
- Each option needs
--quantifier salmon. With kallisto, with the default quantifier, or withrun --mode align, the option is an error that names the option. - An invalid
F(0, a number above 1, a negative number,NaN,infor text) is an error before qrnamap writes any file. This includesrun --slurm. run --slurmwrites the options that are set into the scripts. Scripts for a run without the options are the same as before.- The index and the
.preparedmarker do not depend on the options. - Salmon 2.8.0 does not write these two options to
cmd_info.jsonor to any other output file of a run (checked on the large test fixture and on the AMB runs). qrnamap does not record them either. Keep the command line. Withrun --slurm, the generatedslurm/samples.sbatchalso holds the options.
| kallisto | Salmon | |
|---|---|---|
| version (pixi) | 0.52.0 | 2.8.0 |
| index in the run directory | transcripts.kidx (a file) |
salmon_index/ (a directory) |
| index command | kallisto index |
salmon index -t <transcripts> -i <dir> -p <threads> --keepDuplicates |
library type from --strandedness |
--fr-stranded / --rf-stranded |
paired IU / ISF / ISR, single-end U / SF / SR (never -l A) |
| output per sample | <sample>/abundance.tsv, <sample>/run_info.json |
<sample>/quant.sf, <sample>/aux_info/meta_info.json |
| gene count | sum of est_counts per gene, rounded once |
sum of NumReads per gene, rounded once |
| single-end | --fragment-length MEAN,SD |
--fragment-length MEAN,SD (--fldMean, --fldSD) |
- The Salmon index holds the transcripts only. It has no genome decoys.
- Salmon runs with its defaults unless you set one of the two options above. qrnamap does not add
--validateMappings, bootstrap, Gibbs sampling or bias correction. - Salmon reads
.gzFASTQ directly. qrnamap decompresses.zstFASTQ into the temporary directory first, as it does for kallisto. - Zero mapped reads stop the sample with the same error as kallisto:
sample '<name>': salmon mapped 0 reads (mapped fraction 0). Check the strandedness setting .... - The
quantifiercolumn of the summary files records the tool of each sample. - A run directory holds the output of one quantifier. A rerun with the other quantifier removes the old
per-sample output of both tools first.
quant --task-idandrun --step finalrefuse a run directory that was prepared with the other quantifier. - After a switch of quantifier in the same
--out, the index of the other tool stays on disk (salmon_index/ortranscripts.kidx). qrnamap does not remove it. You can delete it. The yeast Salmon index was 211 MB (validation/amb/salmon.md). - Transcripts shorter than the reads can get 0 reads under Salmon defaults, also for highly expressed
genes. On the AMB data (101-nt reads), RPL41A and RPL41B (78-nt transcripts) got 0 reads in Salmon and
7,690 to 19,722 reads in kallisto per sample (
validation/amb/salmon.md). With--salmon-softclip-overhangs --salmon-min-score-fraction 0.5, RPL41A got 2,271 to 5,717 reads; the measured effect of both options is invalidation/amb/salmon.md, section "Overhang options". - The SLURM scripts check for
salmoninstead ofkallistowhen the quantifier is Salmon. The rates per million read pairs in this README and in the scripts were measured with kallisto only. Salmon rates on the AMB data are invalidation/amb/salmon.md.
The temporary directory is --tmpdir, then $SCRATCH, then $TMPDIR. A run directory under
$SCRATCH or /scratch/ gives a warning: SLURM array tasks on other nodes cannot see it.
- Default (no
--tmpdir): each job puts its temporary files in node-local$SCRATCH. Submitsubmit.shfrom a login shell. A job that was submitted from a bare environment has no$SCRATCHand stops at its first check with this message:SCRATCH is not set: this job needs node-local scratch. Submit from a login shell where $SCRATCH is set, or regenerate the scripts with --tmpdir DIR.Evidence:validation/amb/README.md, D3. - Fallback for a submit from a bare environment:
run --slurm --tmpdir DIRwritesDIRinto the scripts. The jobs then do not need$SCRATCH. A job createsDIR(and aqrnamap-<pid>subdirectory in it) when the parent ofDIRis writable. Use storage that every compute node can reach, for example/bigdata. A--tmpdirunder$SCRATCHor/scratchgives a warning, because such a path is job-specific. It is not an error. - The cost of
--tmpdiron shared storage: the staged FASTQ files and the SAM are written there. For one AMB align sample of 10,302,142 pairs, the staged FASTQ plus the SAM were 13,312,702,275 bytes (validation/amb/README.md, E3). qrnamap removes these files when a sample ends, also after an error. A job that SLURM stops (time limit,scancel, out of memory) cannot run this cleanup, so its files stay inDIR; remove them by hand. This follows from how the cleanup works (it runs in the program); it was not tested. - Process IDs can repeat on different nodes, so two jobs on a shared
--tmpdircan get the sameqrnamap-<pid>subdirectory. The per-sample subdirectories in it keep the files of different samples apart. No collision was observed, and none was tested for. --mem-gbdefault: 8 (GB). The value is an unmeasured placeholder. Reason, fromvalidation/amb/README.md(E3, one align sample of 10,302,142 pairs):sacctMaxRSS of an align job was 13,073,276 KB with the temporary files on$SCRATCHand 39,392 KB with them on GPFS (/bigdata). The 13 GB was, in the one job examined, the page cache of the staged files in$SCRATCHthat the job accounting counts. The tools themselves were small: HISAT2 used 41,208 KB and featureCounts 36,144 KB resident. A job with--mem 4Gfinished with identical gene counts (sacctMaxRSS 4,192,060 KB on node x01 and 4,191,164 KB on node c17). That is two runs of one sample on two nodes. No job was run at 8 GB (the tested limits were 32 GB and 4 GB), and the two 4 GB runs took 10:32 and 19:26 against 6:28 at 32 GB on different nodes, so the effect of the limit on run time is not attributed and stays open (validation/amb/README.md, E3). The yeast align tasks peaked at 6.7 to 8.0 GB MaxRSS (validation/README.md), at or near 8 GB. It was NOT measured for genomes near 50 Mb or for 20 million pairs per sample: raise--mem-gbfor those. The--timeand--cpusdefaults are still unmeasured placeholders. Measured AMB rates with--threads 1: quant 22.7 to 26.8 s and align 35.2 to 52.1 s per million read pairs (validation/amb/README.md, "Bundling").
These two files are information only. The count matrix counts.tsv.zst is unchanged, and nothing
is excluded from DESeq2.
One row per gene, tab-separated, with a header. Columns: gene contig strand biotype class mito n_transcripts.
biotype: thegene_biotypeattribute of the gene in the GFF3. If the gene has none:mRNAwhen any transcript of the gene ismRNA; else the type of the first transcript; elseunknown.class: one ofprotein_coding,rRNA,tRNA,other_ncRNA,pseudogene,other, derived frombiotype(case-insensitive) by these rules in this order:protein_codingormRNAgivesprotein_coding;rRNAgivesrRNA;tRNAgivestRNA; a biotype that containspseudogeneorpseudogenicgivespseudogene; any other biotype that ends withrnagivesother_ncRNA; everything else givesother.mito:yesorno. A gene isyeswhen its contig has aregionfeature with the attributegenome=mitochondrionorgenome=mitochondrialin the GFF3 (the match is case-sensitive), or when the contig is named with--mito-contig NAME(repeatable). The two sources are added together. The--mito-contigmatch is exact and case-sensitive. A name that matches no contig of the GFF3 gives a note on stderr, not an error.n_transcripts: the number of transcripts of the gene.
Which subcommands write it:
qrnamap transcripts --genes-table PATH(the compression follows the file suffix).qrnamap quant --gff GFF: writesOUT/genes.tsv.zst. Plainquantwithout--gffwrites no table (stderr says so).--mito-contigwithout--gffon plainquantis an error. Every gene of the--tx2genetable must be a gene of the--gffGFF3, elsequantstops with an error that names the missing genes, before kallisto or Salmon runs. A GFF3 with more genes is accepted.quant --task-idandalign --task-iddo not write the table (the prepare step does);--mito-contigthere gives a note that it has no effect.transcripts --mito-contigwithout--genes-tablegives the same note.qrnamap alignandqrnamap run: writeOUT/genes.tsv.zstfrom the required--gff.qrnamap strand-checkdoes not write or changegenes.tsv.zst, also when its--outis a run directory.
The table is written after the index is built, so a failed prepare step leaves no table. A rerun removes an old table first.
quant and align write OUT/<sample>.summary.tsv.zst as the last step for each sample. It has a
header and one row. Columns (8): sample mode quantifier reads_processed fraction_mapped fraction_assigned strandedness qrnamap_version.
mode is quant or align. quantifier is kallisto or salmon in quant mode and none in align mode.
The quantifier column is new. Earlier versions wrote 7 columns, without it. matrix and
run --step final refuse a 7-column file with a message that says to run that sample again.
matrix (and run, and run --step final) read these files in sample-sheet order and write
OUT/mapping_summary.tsv.zst: the same columns plus strand_check_suggestion.
strand_check_suggestionis thesuggestedcell ofOUT/strand_check.tsvfor the sample. The file is read only when it is in the same directory asmatrix --out. The value is copied as it is. It is not checked against the strandedness of the run, and it carries no stamp. Without the file, the column is empty.- Floats are printed in the shortest form that reads back to the same value.
1.0prints as1. A column in which every value is 1 is therefore read by pandas as integer. matrixstops with a named error when the summary of a listed sample is missing or belongs to another sample. Run directories made before this version have no summary files: rerun each sample (quantoralign) beforematrixorrun --step final. The matrix build removes the oldcounts.tsv.zst(and its.partial) andmapping_summary.tsv.zstat its start, before it reads the sample count files and summaries. A failure while it reads or validates the sample files therefore leaves neither. A failure before that point leaves the files of an earlier run in place. Examples are therun --step finalmarker check, an unreadable--genes-fromfile, and an unreadable gene list. It does not remove olddeseq2.*files;deremoves those itself.strand-checkremoves an oldstrand_check.tsvin its--outafter its input checks and before it runs any tool.
The count of a gene from kallisto is the sum of est_counts over the transcripts of the gene. For
Salmon it is the sum of NumReads. The sum is rounded once per gene, half away from zero. It is not
rounded per transcript.
| file | content |
|---|---|
<sample>.genecounts.tsv.zst |
gene counts of one sample (gene, sample name) |
<sample>/abundance.tsv, <sample>/run_info.json |
kallisto output (quant mode) |
<sample>/quant.sf, <sample>/aux_info/meta_info.json and the other Salmon files |
Salmon output (quant mode, --quantifier salmon) |
<sample>/featurecounts.summary |
featureCounts summary (align mode) |
<sample>.summary.tsv.zst |
mapping summary of one sample (written by quant and align) |
counts.tsv.zst |
gene-by-sample matrix |
mapping_summary.tsv.zst |
one row per sample, from the per-sample summaries |
genes.tsv.zst |
gene table: class, biotype and mitochondrial flag per gene |
deseq2.results.csv, deseq2.normalized.csv, deseq2.vst.csv, deseq2.versions.txt |
DESeq2 output, with --contrast |
deseq2.results.shrunk.csv |
with --shrink |
transcripts.fa.zst, tx2gene.tsv.zst |
reference files (quant mode) |
transcripts.kidx |
kallisto index (quant mode) |
salmon_index/ |
Salmon index directory (quant mode, --quantifier salmon) |
splice_sites.txt, genes.saf, index/ |
reference files (align mode) |
.prepared |
marker of the prepare step (format version 2; it records the mode and the quantifier); array tasks and the final step check it |
slurm/ |
the SLURM scripts and logs, with --slurm |
strand_check.tsv |
from strand-check, in its --out |
These values are chosen, not measured or calibrated. Check them for your data.
- HISAT2
--max-intronlen5000 (--max-intron). Not verified for fungi. - SLURM
--time 02:00:00,--mem-gb 8,--cpus(default: the--threadsvalue). See "SLURM and the temporary directory" for the--mem-gbevidence. - strand-check threshold 0.8: a strand is suggested when its fraction is above 0.8.
LOW_ASSIGNED_FRACTION0.5: a sample with an assigned (or pseudoaligned) fraction below 0.5 gives a warning.
Align memory, measured on the yeast validation (validation/README.md): 6.7 to 8.0 GB MaxRSS per
array task at 5.2 to 6.1 million pairs with --threads 1. This is consistent with page cache of the
staged scratch files, as measured in the AMB experiments (validation/amb/README.md, E3; one job showed the equality of
sacct MaxRSS and the cgroup peak that counts page cache).
- No browser page and no WASM build of the tool. Only the three pure crates are compiled for
wasm32-unknown-unknownas a check. Browser spike 0 (2026-11-21,docs/browser/spike0.md) tested thegenomics-wasmbuilds: kallisto, HISAT2 and featureCounts matched native output in headless Chromium, Firefox and WebKit on a 16 GB GitHub runner, one 200,000-pair yeast subset. featureCounts needs cross-origin isolation. DESeq2 is not decided (Node only, version difference). - Salmon limits: no genome decoys (transcripts-only index), no bootstrap or Gibbs sampling, no Salmon in align mode, no Salmon in the browser build.
- Salmon and transcripts shorter than the reads: with Salmon defaults, such transcripts can get 0 reads,
also for highly expressed genes (RPL41A and RPL41B on the AMB data). The options
--salmon-softclip-overhangsand--salmon-min-score-fractionare available and off by default. Measured on all 6 AMB samples (validation/amb/salmon.md, section "Overhang options"; A =--salmon-softclip-overhangs, B = A plus--salmon-min-score-fraction 0.5):- RPL41A + RPL41B per sample: 0 (default), 1,229 to 3,612 (A), 5,322 to 13,889 (B); kallisto 15,567 to 39,192.
- Zero-count gene values, pooled: 2,522 (default), 2,435 (A), 2,168 (B); kallisto 801. Per sample, 208 to 237 genes with no transcript longer than the reads are still 0 in Salmon (B) and nonzero in kallisto.
- Mapped, pooled: 89.16% (default), 89.35% (A), 90.67% (B); kallisto 94.11%.
- Gene-count Spearman, pooled: with kallisto 0.994919, 0.995998, 0.996545; with the authors' counts 0.941675, 0.943136, 0.943655.
- DE Jaccard with the authors' published DE: 0.780000, 0.776504, 0.780152. With kallisto: 0.941007, 0.936538, 0.943992.
- OPEN USER DECISION: whether to change the default or to recommend A or B. The numbers above are the input. No criterion for a preferred setting was set, and there is no ground truth.
- A
.preparedmarker of format version 1 (written before the Salmon change) is refused. Runrun --step prepare(orrun) on such a directory again. - No plots.
--shrinkwritesPREFIX.results.shrunk.csvnext to the unshrunk results.normalneeds no extra package. The pixi environment hasapeglm1.32.0 andashr2.2.63 for--shrink apeglmand--shrink ashr. On the align-mode (HISAT2 + featureCounts) AMB countsrun_align/counts.tsv.zst(6,477 genes, 6,295 with a finite unshrunk log2 fold change), the Pearson correlations of the log2 fold changes were 0.9879 (normal and apeglm), 0.9861 (normal and ashr) and 0.9974 (apeglm and ashr).ashrreturned a finite value for all 6,477 genes. Seevalidation/amb/results_shrink/. The output directory nameshrink_overhanghas no link to the Salmon overhang runs.- The SLURM
--timeis not computed fromreads_per_sample.
Two validation records are in the repository. Both ran on the UCR HPCC cluster.
validation/README.md: yeast, PRJNA674653 (6 paired-end S288c samples, 5.2 to 6.1 million pairs each). Headline numbers from that file:- Transcript FASTA identical to gffread for all 6,478 transcripts.
- strand-check suggested
reversefor all 6 samples (antisense fraction 0.9855 to 0.9880). - Quant: 93.10 to 94.60% pseudoaligned. Align: 96.65 to 97.53% HISAT2 overall alignment, assigned fraction 0.8875 to 0.8979.
- Spearman correlation of gene counts between the two modes: 0.971456 to 0.973390 per sample.
- DESeq2 genes with padj < 0.05: 2,648 (quant), 2,632 (align), 2,571 in both (Jaccard 0.949059).
validation/amb/README.md: AMB, GEO GSE80357 (6 paired-end S. cerevisiae samples, 8,405,534 to 10,302,142 pairs). Headline numbers from that file:- strand-check suggested
unstrandedfor all 6 samples (antisense fraction 0.4951 to 0.4988). - Quant: 93.6 to 94.7% pseudoaligned. Align: 95.49 to 97.06% HISAT2 overall alignment, assigned fraction 0.8802 to 0.9087.
- Spearman correlation of gene counts between the two modes, pooled over all 6 samples: 0.964905.
- DESeq2 genes with padj < 0.05: 2,042 (quant), 2,019 (align), 1,956 in both (Jaccard 0.929216).
- The
--kill-on-invalid-depflag cancelled the dependent jobs 12 s after a failed prepare job, in 2 of 2 attempts.
- strand-check suggested
validation/geo/README.md: the AMB results compared with the authors' GSE80357 count and fold-change tables.validation/amb/salmon.md: Salmon on the AMB data (commited9d5b6). Headline numbers from that file:- Salmon mapped 87.54 to 90.45% of pairs (kallisto: 93.6 to 94.7% pseudoaligned).
- Spearman correlation of gene counts, Salmon vs kallisto, pooled over all 6 samples: 0.994919.
- DESeq2 genes with padj < 0.05: 2,005 (Salmon), 2,042 (kallisto), 1,962 in both (Jaccard 0.941007).
- Against the authors' counts (6,008 common genes, pooled): Spearman 0.941675 (Salmon), 0.946995 (kallisto).
- Zero-count gene values, pooled over the 6 samples: 2,522 (Salmon) and 801 (kallisto) (
validation/amb/results_salmon/mode_agreement.tsv). Per sample, 263 to 282 of the genes that are 0 in Salmon and nonzero in kallisto have no transcript longer than the 101-nt reads (validation/amb/results_salmon/zero_genes_by_length.tsv). - Salmon overhang options (section "Overhang options", commit
4b8487f): with--salmon-softclip-overhangs --salmon-min-score-fraction 0.5, zero-count gene values pooled 2,168, RPL41A 2,271 to 5,717 reads per sample, Spearman with the authors' counts 0.943655, DE Jaccard with the authors' published DE 0.780152 (validation/amb/results_salmon_overhang/summary.tsv).
- No ground-truth comparison was made. The authors' tables are another pipeline's output, not a truth. The numbers show agreement between methods, not accuracy.
qseq-io,genome-catalog,qrnamap-core: pure libraries (no file or network I/O). They must build forwasm32-unknown-unknown.genome-fetch: library for downloads.qrnamap-cli: theqrnamapbinary.
pixi run testrunscargo test --workspacewithQRNAMAP_REQUIRE_TOOLS=1.pixi run wasm-checkbuilds the three pure crates forwasm32-unknown-unknown.
All packages solve in one pixi environment (default). Solved on 2026-11-19 (linux-64):
| Package | Version | Channel |
|---|---|---|
| kallisto | 0.52.0 | bioconda |
| salmon | 2.8.0 (pinned ==2.8.0, added 2026-11-20) |
bioconda |
| hisat2 | 2.2.2 | bioconda |
| subread (featureCounts) | 2.1.1 | bioconda |
| gffread | 0.12.9 | bioconda |
| r-base | 4.5.3 | conda-forge |
| bioconductor-deseq2 | 1.50.2 | bioconda |
| rust | 1.100.0 (constraint >=1.96,<2) |
conda-forge |
Pipeline recovery on simulated reads (Task 11, 2026-11-19). Tests: crates/qrnamap-cli/tests/pipeline_quant.rs, pipeline_align.rs.
- Data: 10,000 error-free read pairs from the 6 transcripts of
tests/fixtures/mini(5 genes, 1,000 to 3,000 pairs per gene). The transcripts are 70 to 120 bases long, shorter than the 200-base fragment, so each fragment is the whole transcript. Reads are 75 bases (70 for the 70-base transcript). - kallisto 0.52.0 (
-t 1): every gene count equals the truth (maximum relative error 0). Test tolerance: 10%. - HISAT2 2.2.2 + featureCounts 2.1.1 (
-p 1,-T 1): every gene count equals the truth (maximum relative error 0); all 10,000 pairs mapped and assigned. Test tolerance: 5%. - Wrong strandedness: a reverse library run as forward gives featureCounts assigned fraction 0.0 and kallisto 0 pseudoaligned reads (kallisto then exits with status 1). An unstranded library run as forward in kallisto gives a pseudoaligned fraction of 0.496.
- These results come from very short, error-free transcripts. They do not predict accuracy on real data.
Native HISAT2 runs hisat2-align-s, not the hisat2 wrapper: the Perl wrapper passes its arguments through a shell, which split a path with a space and expanded $HOME in the tests.
Larger synthetic fixture (crates/qrnamap-cli/tests/common/large.rs, test tests/large.rs, 2026-11-19): 2 contigs of 20 kb, 12 genes (2 multi-isoform, 1 rRNA, 1 CDS-only), 15 transcripts of 661 to 2,034 bases, 40,000 error-free pairs (read length 100, fragment 200 to 300). The reads come from the generator's own transcripts, not from our builder. Measured maximum relative error per gene (genes with at least 200 pairs): kallisto 0 (unstranded, forward and reverse libraries with the matching flag); HISAT2 + featureCounts 0.0005 unstranded and 0.0018 stranded. The lost pairs are g07 pairs that map to 2 places (Unassigned_MultiMapping). A reverse library run as forward: kallisto pseudoaligns no read (exit status 1); featureCounts assigned fraction 0.0.
Salmon 2.8.0 on the same larger fixture (tests in tests/large.rs, 2026-11-20): maximum relative error per gene 0 (genes with at least 200 pairs) for unstranded, forward and reverse libraries with the matching flag, and for single-end reads (fragment length mean 200, SD 20). Two lanes (gzip and zstd) gave the same gene counts as one concatenated file (maximum difference 0). For a forward library run as reverse, and a reverse library run as forward, the test accepts the zero-mapped error or an assigned fraction below 0.2. Observed: both cases stopped with the zero-mapped error (QRNAMAP_REQUIRE_TOOLS=1 cargo test -p qrnamap-cli --test large salmon_forward_and_reverse_stranded -- --nocapture, 2026-11-20, printed MEASURED salmon Forward as Reverse: NoReadsPseudoaligned and MEASURED salmon Reverse as Forward: NoReadsPseudoaligned). These reads come from the true transcripts, so the zero error does not predict accuracy on real data.