Skip to content

Command-line interface

salmon is invoked as salmon <command> [options]. Run salmon <command> --help for the authoritative, version-specific option list; this page summarizes the main commands and options.

salmon <command>
Commands:
index Build a salmon index from a transcriptome FASTA
quant Quantify transcript abundances from FASTQ reads (or a BAM)
quantmerge Merge a column across samples' quant files into a matrix
debug-map Diagnostic: per-read best-mapping detail
alevin Single-cell (removed; redirects to alevin-fry)

Global: -q/--quiet, -h/--help, -V/--version. --no-version-check is accepted for C++ compatibility and is a no-op (2.0 never checks for updates).

Build a reusable index from one or more transcriptome FASTA files.

OptionDescription
-t, --transcripts <FASTA>…Transcript FASTA file(s). Required.
-i, --index <DIR>Output index directory. Required.
-k, --kmerLen <N>K-mer length (odd, ≤ 31 recommended). Default 31.
-m, --minimizerLen <N>Minimizer length (0 = auto). Default 0.
-p, --threads <N>Worker threads (0 = all cores). Default 0.
-d, --decoys <FILE>File of decoy sequence names (one per line; decoy records must come last in the FASTA).
--keepDuplicatesRetain exact-duplicate transcript sequences instead of collapsing them.
-n, --no-clipDon’t clip poly-A tails. By default a reference ending in ≥10 As has its trailing As trimmed (all-A references are dropped), matching pufferfish.
--gencodeGENCODE references: truncate each name at the first |.
--keepFixedFastaKeep the cleaned (non-ACGT-replaced) reference FASTA.
--keepIntermediateKeep intermediate compacted-dBG files.
--tmpdir <DIR>Directory for build intermediates.
--filterSize <N>Accepted for compatibility; no effect.
Terminal window
salmon index -t transcripts.fa -i salmon_index -p 16

Quantify from FASTQ reads (reads mode, -i) or from a transcriptome BAM (alignment mode, -a).

OptionDescription
-i, --index <DIR>Salmon index (reads mode).
-a, --alignments <BAM>Alignment mode: a BAM of reads aligned to the transcriptome.
-t, --targets <FASTA>Transcriptome FASTA (alignment mode) — enables the error model.
-l, --libType <TYPE>Library type (e.g. IU, ISR, A for auto). Default A. See library types.
-1/-2, --mates1/2 <FASTQ>…Paired-end read files.
-r, --unmatedReads <FASTQ>…Single-end read files.
-o, --output <DIR>Output directory. Required.
-p, --threads <N>Worker threads (0 = all cores).
-g, --geneMap <FILE>Transcript-to-gene map (GTF/GFF or 2-column TSV); also writes quant.genes.sf.
OptionDescription
--sketchAlignment-free pseudoalignment path.
--sketchStrictOrphansStrict orphan rule in sketch mode.
--allowDovetailAdmit dovetailed short-insert fragments.
--minScoreFraction <f>Min alignment score as a fraction of perfect. Default 0.65.
--ma/--mp/--go/--geMatch score / mismatch / gap-open / gap-extend.
--orphanChainSubThresh <f>Orphan chain pruning (default 0.0 = align all).
--noErrorModelDisable the alignment error model (alignment mode).
OptionDescription
--seqBiasSequence-specific bias correction.
--gcBiasFragment-GC bias correction.
--posBiasPositional bias correction.
--noLengthCorrectionUse raw reference length (no effective-length correction).
OptionDescription
--useEMStandard EM instead of VBEM.
--metaMetagenomic preset: plain EM, no range-factorized eq-classes, uniform init. Overrides --useEM/--rangeFactorizationBins.
--rangeFactorizationBins <N>Range-factorization bins (0 disables). Default 4.
--numBootstraps <N>Bootstrap replicates for posterior uncertainty.
--numGibbsSamples <N>Gibbs posterior samples (mutually exclusive with bootstraps).
--thinningFactor <N>Gibbs thinning factor. Default 16.
--incompatPrior <f>Prior weight for strand-incompatible mappings. Default 0.
OptionDescription
--dumpEq / --dumpEqWeightsDump equivalence classes (with weights).
--writeUnmappedNamesWrite unmapped fragment names.
-z, --writeMappings <FILE>Write per-mapping SAM records.
Terminal window
salmon quant -i salmon_index -l A -1 r1.fq.gz -2 r2.fq.gz -p 16 -o out

Merge a chosen column (e.g. NumReads or TPM) across multiple samples’ quant.sf files into a single matrix.