RAZERS3(1)

πŸ“¦
version 2.5.2 Β· 2 versions
, in ubuntu stonking

πŸ’– RAZERS3(1) β€” the razers3 page, bestie edition πŸ’–

okay so. section 1, general commands. this is razers3, and no cap, it's about to be your new favorite read mapper. let's go πŸ¦‹


✨ NAME ✨

razers3 β€” Faster, fully sensitive read mapping πŸ§¬πŸ’…


🌸 SYNOPSIS 🌸

razers3 [OPTIONS] <GENOME FILE> <READS FILE>
razers3 [OPTIONS] <GENOME FILE> <PE-READS FILE1> <PE-READS FILE2>

πŸ‘‘ DESCRIPTION πŸ‘‘

RazerS 3 ate and left no crumbs: it's a versatile, full-sensitive read mapper built on k-mer counting and seeding filters. It does single-end and paired-end mapping, it does shared-memory parallelism, and the way it optimally parametrizes the filter based on a minimal sensitivity you pick yourself? iconic. genuinely iconic. go look at https://www.seqan.de/apps/razers3 for more, iykyk πŸ’œ

What you feed it: a reference genome file, plus either one file of single-end reads or two files holding the left and right mates of paired-end reads. And here's a cute trick β€” pass - and it reads single-end reads straight from stdin πŸ“

(c) Copyright 2009-2026 by David Weese.


πŸŽ€ REQUIRED ARGUMENTS πŸŽ€

  • ARGUMENT 0 INPUT_FILE β€” this is your reference genome file, periodt. Valid filetypes are: .sam[.*], .raw[.*], .gbk[.*], .frn[.*], .fq[.*], .fna[.*], .ffn[.*], .fastq[.*], .fasta[.*], .fas[.*], .faa[.*], .fa[.*], .embl[.*], and .bam, where * is any of these extensions: gz, bz2, and bgzf β€” those give you transparent (de)compression, slay πŸ”₯
  • READS List of INPUT_FILE's β€” either one file (single-end) or two files (paired-end) of reads. Valid filetypes are: .sam[.*], .raw[.*], .gbk[.*], .frn[.*], .fq[.*], .fna[.*], .ffn[.*], .fastq[.*], .fasta[.*], .fas[.*], .faa[.*], .fa[.*], .embl[.*], and .bam, where * is any of these extensions: gz, bz2, and bgzf for transparent (de)compression πŸ’–

✨ OPTIONS ✨

  • -h, --help β€” display the help message. bestie behavior, always read the help 🫢
  • --version β€” display version information. who even are you (affectionate)

πŸ’… Main Options πŸ’…

  • -i, --percent-identity DOUBLE β€” percent identity threshold. in range [50..100]. default: 95.
  • -rr, --recognition-rate DOUBLE β€” percent recognition rate. in range [80..100]. default: 100.
  • -ng, --no-gaps β€” allow only mismatches, no indels. default: allow both.
  • -f, --forward β€” map reads only to forward strands.
  • -r, --reverse β€” map reads only to reverse strands.
  • -m, --max-hits INTEGER β€” output only <NUM> of the best hits. in range [1..inf]. default: 100.
  • --unique β€” output only unique best matches. that's literally -m 1 -dr 0 -pa btw, cute lil shorthand ✨
  • -tr, --trim-reads INTEGER β€” trim reads to given length. default: off. in range [14..inf].
  • -o, --output OUTPUT_FILE β€” mapping result filename (use - to dump to stdout in razers format). default: <READS FILE>.razers. valid filetypes are: .sam, .razers, .gff, .fasta, .fa, .eland, .bam, and .afg.
  • -v, --verbose β€” verbose mode.
  • -vv, --vverbose β€” very verbose mode. it's giving main character energy πŸ‘‘

🌈 Paired-end Options 🌈

  • -ll, --library-length INTEGER β€” paired-end library length. in range [1..inf]. default: 220.
  • -le, --library-error INTEGER β€” paired-end library length tolerance. in range [0..inf]. default: 50.

πŸŽ€ Output Format Options πŸŽ€

  • -a, --alignment β€” dump the alignment for each match (only razer or fasta format).
  • -pa, --purge-ambiguous β€” purge reads with more than <max-hits> best matches.
  • -dr, --distance-range INTEGER β€” only consider matches with at most NUM more errors compared to the best. default: output all.
  • -gn, --genome-naming INTEGER β€” select how genomes are named (see Naming section below, bestie πŸ‘‡). in range [0..1]. default: 0.
  • -rn, --read-naming INTEGER β€” select how reads are named (see Naming section below). in range [0..3]. default: 0.
  • --full-readid β€” use the whole read id (don't clip after whitespace). no shortening, no gatekeeping πŸ’…
  • -so, --sort-order INTEGER β€” select how matches are sorted (see Sorting section below). in range [0..1]. default: 0.
  • -pf, --position-format INTEGER β€” select begin/end position numbering (see Coordinate section below). in range [0..1]. default: 0.
  • -ds, --dont-shrink-alignments β€” disable alignment shrinking in SAM. ⚠️ this is required for generating a gold mapping for Rabema. don't skip it.

🧚 Filtration Options 🧚

  • -fl, --filter STRING β€” select k-mer filter. one of pigeonhole and swift. default: pigeonhole.
  • -mr, --mutation-rate DOUBLE β€” set the percent mutation rate (pigeonhole). in range [0..20]. default: 5.
  • -ol, --overlap-length INTEGER β€” manually set the overlap length of adjacent k-mers (pigeonhole). in range [0..inf].
  • -pd, --param-dir STRING β€” read user-computed parameter files in the directory <DIR> (swift).
  • -t, --threshold INTEGER β€” manually set minimum k-mer count threshold (swift). in range [1..inf].
  • -tl, --taboo-length INTEGER β€” set taboo length (swift). in range [1..inf]. default: 1.
  • -s, --shape STRING β€” manually set k-mer shape.
  • -oc, --overabundance-cut INTEGER β€” set k-mer overabundance cut ratio. in range [0..1]. default: 1.
  • -rl, --repeat-length INTEGER β€” skip simple-repeats of length <NUM>. in range [1..inf]. default: 1000.
  • -lf, --load-factor DOUBLE β€” set the load factor for the open addressing k-mer index. in range [1..inf]. default: 1.6.

πŸ¦‹ Verification Options πŸ¦‹

  • -mN, --match-N β€” N matches all other characters. default: N matches nothing.
  • -ed, --error-distr STRING β€” write error distribution to FILE.
  • -mf, --mismatch-file STRING β€” write mismatch patterns to FILE.

πŸ“ Misc Options πŸ“

  • -cm, --compact-mult DOUBLE β€” multiply compaction threshold by this value after reaching and compacting. in range [0..inf]. default: 2.2.
  • -ncf, --no-compact-frac DOUBLE β€” don't compact if in this last fraction of genome. in range [0..1]. default: 0.05.

⚑ Parallelism Options ⚑

  • -tc, --thread-count INTEGER β€” set the number of threads to use (0 to force sequential mode). in range [0..inf]. default: 1.
  • -pws, --parallel-window-size INTEGER β€” collect candidates in windows of this length. in range [1..inf]. default: 500000.
  • -pvs, --parallel-verification-size INTEGER β€” verify candidates in packages of this size. in range [1..inf]. default: 100.
  • -pvmpc, --parallel-verification-max-package-count INTEGER β€” largest number of packages to create for verification per thread-1. in range [1..inf]. default: 100.
  • -amms, --available-matches-memory-size INTEGER β€” bytes of main memory available for storing matches. in range [-1..inf]. default: 0.
  • -mhst, --match-histo-start-threshold INTEGER β€” when to start histogram. in range [1..inf]. default: 5.

🌟 FORMATS, NAMING, SORTING, AND COORDINATE SCHEMES 🌟

RazerS 3 supports various output formats, and the way it knows which one you want is vibe check on the file name suffix β€” automatic, no cap.

  • .razers β€” Razer format
  • .fa, .fasta β€” Enhanced Fasta format
  • .eland β€” Eland format
  • .gff β€” GFF format
  • .sam β€” SAM format
  • .bam β€” BAM format
  • .afg β€” Amos AFG format

By default, reads and contigs are referred by their Fasta ids given in the input files. With the -gn and -rn options this behaviour can be changed:

  • 0 β€” use Fasta id.
  • 1 β€” enumerate beginning with 1.
  • 2 β€” use the read sequence (only for short reads!).
  • 3 β€” use the Fasta id, do NOT append /L or /R for mate pairs.

The way matches are sorted in the output file can be changed with the -so option for the following formats: razers, fasta, sam, and afg. primary and secondary sort keys are:

  • 0 β€” 1. read number, 2. genome position
  • 1 β€” 1. genome position, 2. read number

The coordinate space used for begin and end positions can be changed with the -pf option for the razer and fasta formats:

  • 0 β€” Gap space. Gaps between characters are counted from 0.
  • 1 β€” Position space. Characters are counted from 1.

πŸ”₯ EXAMPLES πŸ”₯

okay these are the moments, bestie. copy them, run them, live them πŸ’–

razers3 -i 96 -tc 12 -o mapped.razers hg18.fa reads.fq

Map single-end reads with 4% error rate using 12 threads. ✨

razers3 -i 95 -no-gaps -o mapped.razers hg18.fa reads.fq.gz

Map single-end gzipped reads with 5% error rate and no indels. πŸŽ€

razers3 -i 94 -rr 95 -tc 12 -ll 280 --le 80 -o mapped.razers hg18.fa
reads_1.fq reads_2.fq

Map paired-end reads with up to 6% errors, 95% sensitivity, 12 threads, and only output aligned pairs with an outer distance of 200-360bp. πŸ‘‘


🫢 reminder that this whole page is razers3 3.5.12 [tarball] β€” that's the version and where it came from, and it's dated to match the original page. go map something iconic, bestie. mwah πŸ’…βœ¨πŸ’–
πŸ“¦ where this page comes from