ALLELECOUNTER(1p)

πŸ’– NAME πŸ’–

alleleCounts.pl β€” bestie, this one makes you a tab-separated file with allelic counts and depth for every locus you point it at. Every. Single. One. 🧬✨


✨ SYNOPSIS ✨

Okay so real talk first: if your data is large, use the C version where you can, because it's also more configurable. Like, she's the upgrade. πŸ‘‘

alleleCounts.pl

🫢 Required (no skips, these are the bare minimum)

  • -bam, -b β€” your BAM/CRAM file. She expects a co-located index, so have that ready. If it's a CRAM, go look at -ref below. πŸ’…
  • -output, -o β€” the output file. Defaults to [STDOUT] if you don't say anything.
  • -loci, -l β€” the alternate loci file. It literally just needs chr and pos. But heads up: the output is different for this one β€” you get counts for each residue. πŸ™ˆ

🌸 Optional (mix and match, go off)

  • -ref, -r β€” genome.fa. Required for CRAM, and it needs a colocated .fai next to it.
  • -minqual, -m β€” minimum base quality to include (integer). Default is [30].
  • -mapqual, -q β€” minimum mapping quality of a read (integer). Default is [35].
  • -gender, -g β€” a flag. Its presence means your loci file gets treated as gender SNPs. πŸŽ€ Cannot be used with s.
  • -snp6, -s β€” a flag. Its presence means your loci file is in SNP6 format. πŸŽ€ Cannot be used with g. Also it changes the output format, so don't be surprised.
  • -help, -h β€” this message. Hiiii. πŸ‘‹
  • -version, -v β€” the version number.
Not me stressing the g / s thing: those two flags are mutually exclusive, periodt. Pick one. πŸ’€

perl v5.40.0 πŸ¦‹ 2024-12-10 β€” that's the tea, bestie, that's when this page was living its moment. Stay iconic, run your counts, and hydrate. πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from