PARSNP(1)
π¦ 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:
- With reference & genbank file:
python Parsnp.py -g <reference_genbank_file1 reference_genbank_file2 ...> -d <seq_file1 seq_file2 ...> -p <threads>
- With reference but without genbank file:
python Parsnp.py -r <reference_genome> -d <seq_file1 seq_file2 ...> -p <threads>
- 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'sgbkto 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.
π MUM search π
-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 (like0.2) or bp (like100bp). 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, orprank. π-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 π¦πΈ
π¦ where this page comes from
- debian bookworm: parsnp 1.7.4+dfsg-2 Β· BSD-3-Clause
- debian trixie: parsnp 2.1.3+dfsg-1 Β· BSD-3-Clause
- ubuntu noble: parsnp 2.0.3+dfsg-1ubuntu1 Β· BSD-3-Clause
- ubuntu questing: parsnp 2.1.3+dfsg-1
- ubuntu resolute: parsnp 2.1.3+dfsg-1build1 Β· BSD-3-Clause
- ubuntu stonking: parsnp 2.1.3+dfsg-1build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms