PARSNP(1)

πŸ“¦
version 2.1.3 Β· 2 versions
  • 2.1.3 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.6.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ¦‹ NAME πŸ¦‹

okay bestie, gather round, it's parsnp β€” rapid core genome multi-alignment ✨ and yes, this is page one of the User Commands manual, section 1 energy only. πŸ’…


πŸ’– DESCRIPTION πŸ’–

first things first, the program screams its own name at you:

|--Parsnp 1.5.6--| For detailed documentation please see --> http://harvest.readthedocs.org/en/latest

for detailed documentation please see that link up there, fr fr, go read it, it's giving thorough. πŸ“š

then it drops the usage line on you like it's nothing:

parsnp [-h] [-c] -d SEQUENCES [SEQUENCES ...] [-r REFERENCE] [-g GENBANK [GENBANK ...]] [-o OUTPUT_DIR] [-q QUERY] [-U MAX_MUMI_DISTR_DIST | -mmd MAX_MUMI_DISTANCE] [-F] [-M] [--use-ani] [--min-ani MIN_ANI] [--use-mash] [--max-mash-dist MAX_MASH_DIST] [-a MIN_ANCHOR_LENGTH] [-m MUM_LENGTH] [-C MAX_CLUSTER_D] [-z MIN_CLUSTER_SIZE] [-D MAX_DIAG_DIFF] [-n {mafft,muscle,fsa,prank}] [-u] [--use-fasttree] [--vcf] [-p THREADS] [-P MAX_PARTITION_SIZE] [-v] [-x] [-i INIFILE] [-e] [-V]

Parsnp quick start for three example scenarios: πŸŽ€ here are the three little starter packs, no cap:

  1. With reference & genbank file:
python Parsnp.py -g <reference_genbank_file1 reference_genbank_file2 ...> -d <seq_file1 seq_file2 ...>  -p <threads>
  1. With reference but without genbank file:
python Parsnp.py -r <reference_genome> -d <seq_file1 seq_file2 ...> -p <threads>
  1. Autorecruit reference to a draft assembly:
python Parsnp.py -q <draft_assembly> -d <seq_file1 seq_file2 ...> -p <threads>

✨ optional arguments ✨

  • -h, --help β€” shows this help message and then dips. bye bestie πŸ‘‹

πŸ—‚οΈ Input/Output πŸ—‚οΈ

  • -c, --curated β€” (c)urated genome directory moment: use all the genomes sitting in the dir, and ignore MUMi entirely. πŸ’€
  • -d SEQUENCES [SEQUENCES ...], --sequences SEQUENCES [SEQUENCES ...] β€” a whole list of files holding genomes/contigs/scaffolds. the main character input, lowkey.
  • -r REFERENCE, --reference REFERENCE β€” the (r)eference genome. and get this: set it to ! and it'll just pick a random one from the sequence dir like it's pulling a card from a deck. 🎲
  • -g GENBANK [GENBANK ...], --genbank GENBANK [GENBANK ...] β€” a list of Genbank file(s) (that's gbk to its friends).
  • -o OUTPUT_DIR, --output-dir OUTPUT_DIR β€” no description in the original, bestie, it's mysterious like that 🫣
  • -q QUERY, --query QUERY β€” specify an (assembled) query genome to use, on top of the genomes already chilling in the genome dir. extra credit behaviour.

🧬 MUMi 🧬

  • -U MAX_MUMI_DISTR_DIST, --max-mumi-distr-dist MAX_MUMI_DISTR_DIST, --MUMi MAX_MUMI_DISTR_DIST β€” max MUMi distance value for the MUMi distribution.
  • -mmd MAX_MUMI_DISTANCE, --max-mumi-distance MAX_MUMI_DISTANCE β€” max MUMi distance. and the default? autocutoff based on the distribution of MUMi values, she picks for herself, iconic. πŸ’…
  • -F, --fastmum β€” fast MUMi calculation. zoom zoom. πŸ”₯
  • -M, --mumi_only, --onlymumi β€” calculate MUMi and then EXIT. and it overrides all other choices! like, all of them. every single one. 😭
  • --use-ani β€” use ANI for genome recruitment.
  • --min-ani MIN_ANI β€” min ANI value to allow for genome recruitment. the cutoff queen.
  • --use-mash β€” use mash for genome recruitment.
  • --max-mash-dist MAX_MASH_DIST β€” max mash distance.

  • -a MIN_ANCHOR_LENGTH, --min-anchor-length MIN_ANCHOR_LENGTH, --anchorlength MIN_ANCHOR_LENGTH β€” min (a)NCHOR length, default = 1.1*(Log(S)). math ate, honestly.
  • -m MUM_LENGTH, --mum-length MUM_LENGTH, --mumlength MUM_LENGTH β€” mum length.
  • -C MAX_CLUSTER_D, --max-cluster-d MAX_CLUSTER_D, --clusterD MAX_CLUSTER_D β€” maximal cluster D value.
  • -z MIN_CLUSTER_SIZE, --min-cluster-size MIN_CLUSTER_SIZE, --minclustersize MIN_CLUSTER_SIZE β€” minimum cluster size.

🧩 LCB alignment 🧩

  • -D MAX_DIAG_DIFF, --max-diagonal-difference MAX_DIAG_DIFF, --DiagonalDiff MAX_DIAG_DIFF β€” maximal diagonal difference. you can give it either a percentage (like 0.2) or bp (like 100bp). flexible fr fr. 🌈
  • -n {mafft,muscle,fsa,prank}, --alignment-program {mafft,muscle,fsa,prank}, --alignmentprog {mafft,muscle,fsa,prank} β€” which alignment program to use. pick your fighter: mafft, muscle, fsa, or prank. πŸ‘‘
  • -u, --unaligned β€” output unaligned regions.

🌱 LCB Extensions 🌱

  • --extend-lcbs β€” extends the boundaries of LCBs using an ungapped alignment. stretching that vibe. 🧘
  • --match-score MATCH_SCORE β€” value of match score for the extension.
  • --mismatch-penalty MISMATCH_PENALTY β€” value of mismatch score for the extension, and it should be negative, don't fight it.
  • --gap-penalty GAP_PENALTY β€” value of gap penalty for the extension, also should be negative. yes, both of them. 😌

πŸŽ€ Misc πŸŽ€

  • --skip-phylogeny β€” do NOT generate phylogeny from core SNPs. skipping, but make it fashion.
  • --validate-input β€” use Biopython to validate the input files. safety first bestie. 🫢
  • --use-fasttree β€” use fasttree instead of RaxML.
  • --vcf β€” generate VCF file.
  • -p THREADS, --threads THREADS β€” number of threads to use. feed her cores, she's hungry. πŸ”₯
  • -P MAX_PARTITION_SIZE, --max-partition-size MAX_PARTITION_SIZE β€” max partition size, which limits memory usage. very mindful, very demure.
  • -v, --verbose β€” verbose output. she will tell you EVERYTHING. πŸ—£οΈ
  • -x, --xtrafast β€” the original literally says nothing else about this one πŸ’€
  • -i INIFILE, --inifile INIFILE, --ini-file INIFILE β€” also no description in the original, she's a mystery 🫣
  • -e, --extend β€” same deal, no description given 😭
  • -V, --version β€” shows the program's version number and then exits. slay and goodbye. ✨

🌸 AUTHOR 🌸

this manpage was written by Nilesh Patra for the Debian distribution, and it can be used for any other usage of the program. credit given, credit due. πŸ‘‘


and that's a wrap, bestie πŸ’– this whole thing is parsnp 1.5.4, dated April 2022 β€” go align something gorgeous πŸ¦‹πŸŒΈ