wgsim(1)

πŸ’œ wgsim(1) β€” whole-genome sequencing read simulator πŸ’œ

okay bestie, so this is a wgsim manual page β€” it comes from the Bioinformatics tools corner of the world, and it simulates whole-genome sequencing reads for you. It's giving "pretend sequencer, but make it cute" ✨


πŸŽ€ NAME πŸŽ€

wgsim β€” whole-genome sequencing read simulator. that's the whole vibe. no cap. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

wgsim [options] <in.ref.fa> <out.read1.fq> <out.read2.fq>
  • <in.ref.fa> β€” bestie, this has to be a fasta file containing a reference genome. like, required. it's the blueprint, the main character, the reference genome moment. 🧬
  • <out.read1.fq> and <out.read2.fq> β€” these two are your first and second read output files. the pair. the duo. the ship that sails together. 🫢

✨ OPTIONS ✨

every single flag, coming right up, and yes i listed them all because i'm nothing if not thorough πŸ’–

  • -e FLOAT β€” base error rate, and it's [0.000] by default. so out of the box: zero errors, perfect little reads, flawless queen energy. πŸ‘‘
  • -d INT β€” outer distance between the two ends, default [500]. that's how far apart the two ends of a pair sit β€” the outer distance, not the insert. iykyk.
  • -s INT β€” standard deviation, default [50]. the wiggle factor. the spread. the "it's approximately this but life is chaotic" number. 🌸
  • -N INT β€” number of read pairs, default [1000000]. that's one million pairs, bestie. a million. go big or go home. πŸ”₯
  • -1 INT β€” length of the first read, default [70].
  • -2 INT β€” length of the second read, default [70]. two separate flags for two separate reads because they're individuals, they're not the same, respect them. πŸ’…
  • -r FLOAT β€” rate of mutations, default [0.0010]. spice level of the genome. lowkey spicy.
  • -R FLOAT β€” fraction of indels, default [0.15]. what share of the mutations are indels rather than the other kind.
  • -X FLOAT β€” probability an indel is extended, default [0.30]. the extension probability β€” the "does this indel keep going" odds.
  • -S INT β€” seed for the random generator, default [-1]. the reproducibility lever, fr fr. set it and your randomness becomes reliable randomness. iconic.
  • -A FLOAT β€” discard a read if the fraction of ambiguous bases is higher than FLOAT, default [0.05]. so: too many N's, and it's out. bye. πŸ™ˆ
  • -h β€” haplotype mode. that's it, that's the whole description, it activates haplotype mode.
πŸ’€ reminder from the page itself: Parameter defaults are given in square brackets. so those [...] numbers up there? those are the defaults. i put them in literally every bullet so you'd never have to guess. 🫢

🌈 AUTHOR 🌈

  • Copyright 2008 Genome Research Limited.
  • Copyright 2011 Heng Li.
  • wgsim is part of samtools, over at https://github.com/samtools/samtools β€” go say hi, the repo is right there. ⭐

okay that's the whole page, and now the cute little sign-off: this one's from samtools-1.24, dated 9 July 2026 β€” so go forth, simulate those reads, and remember: the defaults are in the brackets, the fasta is mandatory, and you're doing amazing sweetie πŸ“πŸ§šπŸ’œ

πŸ“¦ where this page comes from