RUN_ABUNDANCE.PY(1)
π RUN_ABUNDANCE.PY β the girlies' guide π
okay so bestie, this is a page from User Commands (section 1 of the manual), and it's all about run_abundance.py. Buckle up, we're learning a helper script and we're gonna slay it π
β¨ NAME β¨
run_abundance.py β a helper script that estimates the abundance at a given taxonomic level. that's it, that's the vibe π¦
πΈ DESCRIPTION πΈ
here's the usage, no cap, exactly as written:
usage: run_abundance.py [-h] [-v] [-A N] [-P N] [-F N] [--distance DISTANCE]
[-M DIAMETER] [-S DECOMP] [-p DIR] [-rt] [-o OUTPUT]
[-d OUTPUT_DIR] [-c CONFIG] [-t TREE] [-r RAXML] [-a ALIGN] [-f
FRAG] [-m MOLECULE] [--ignore-overlap] [-x N] [-cp CHCK_FILE]
[-cpi N] [-seed N] [-bt N] [-at N] [-pt N] [-g N] [-b N]
[-no_trim] [-bin N] [-D] [-C N] [-G GENES]
so basically: this script runs the SEPP algorithm on an input tree, alignment, fragment file, and RAxML info file. main character energy fr fr π
π OPTIONS π
π«Ά optional arguments:
-h,--helpβ shows this help message and dips. iconic behavior.-v,--versionβ shows the program's version number and exits. short king.
π§ DECOMPOSITION OPTIONS:
these options decide the alignment decomposition size and the taxon insertion size. if None is given, the default is to align/place at 10% of total taxa. and heads up bestie β the alignment decomposition size must be less than the taxon insertion size. no exceptions, that's the rule π
-A N,--alignmentSize Nβ max alignment subset size ofN[default: 10% of the total number of taxa or the placement subset size if given]-P N,--placementSize Nβ max placement subset size ofN[default: 10% of the total number of taxa or the alignment length (whichever bigger)]-F N,--fragmentChunkSize Nβ maximum fragment chunk size ofN. helps control memory. she's practical π [default:20000]--distance DISTANCEβ minimum p-distance before stopping the decomposition [default:1]-M DIAMETER,--diameter DIAMETERβ maximum tree diameter before stopping the decomposition [default:None]-S DECOMP,--decomp_strategy DECOMPβ decomposition strategy [default: using tree branch length]
π OUTPUT OPTIONS:
these options control the output. where the girlies' files go π
-p DIR,--tempdir DIRβ tempfile files will be written toDIR. full-path required. [default:/tmp/sepp]-rt,--remtempβ remove the tempfile directory. clean up after yourself, queen β¨ [default: disabled]-o OUTPUT,--output OUTPUTβ output files with prefixOUTPUT. [default:output]-d OUTPUT_DIR,--outdir OUTPUT_DIRβ output to theOUTPUT_DIRdirectory. full-path required. [default:.]
π₯ INPUT OPTIONS:
these control the input. to run SEPP you need the following, periodt. a backbone tree (in newick format), a RAxML_info file (this is the file generated by RAxML during estimation of the backbone tree β pplacer uses this info file to set model parameters), a backbone alignment file (in fasta format), and a fasta file including fragments. the input sequences are assumed to be DNA unless specified otherwise. iykyk π§¬
-c CONFIG,--config CONFIGβ a config file, including options used to run SEPP. options provided as command line arguments overwrite config file values for those options. [default:None]-t TREE,--tree TREEβ input tree file (newick format) [default:None]-r RAXML,--raxml RAXMLβ RAxML_info file including model parameters, generated by RAxML. [default:None]-a ALIGN,--alignment ALIGNβ aligned fasta file [default:None]-f FRAG,--fragment FRAGβ fragment file [default:None]-m MOLECULE,--molecule MOLECULEβ molecule type of sequences. can beamino,dna, orrna[default:dna]--ignore-overlapβ when a query sequence has the same name as a backbone sequence, ignore the query sequences and keep the backbone sequence [default:False]
π OTHER OPTIONS:
these options control how SEPP is run. the mechanics, the logistics, the behind-the-scenes π¦
-x N,--cpu Nβ useNcpus [default: number of cpus available on the machine]-cp CHCK_FILE,--checkpoint CHCK_FILEβ checkpoint file [default: no checkpointing]-cpi N,--interval Nβ interval (in seconds) between checkpoint writes. has effect only with-cpprovided. [default:3600]-seed N,--randomseed Nβ random seed number. [default:297834]
π TIPP OPTIONS:
these arguments set settings specific to TIPP. the special-est settings π
-bt N,--blastThreshold Nβ minimum query coverage for blast hit to map read to a marker. this should be a number between >0 [default :50]-at N,--alignmentThreshold Nβ enough alignment subsets are selected to reach a cumulative probability ofN. this should be a number between 0 and 1 [default:0.95]-pt N,--placementThreshold Nβ enough placements are selected to reach a cumulative probability ofN. this should be a number between 0 and 1 [default:0.95]-g N,--gene Nβ classify on only the specified gene.-b N,--blast_file Nβ blast file with fragments already binned.-no_trim,--do_not_trim_after_blastβ trim query sequence if it extends outside marker (BLAST only).-bin N,--bin_using Nβ useblastorhmmerfor binning [default:blast]-D,--distβ treat fragments as distribution-C N,--cutoff Nβ placement probability requirement to count toward the distribution. this should be a number between 0 and 1 [default:0.0]-G GENES,--genes GENESβ usemarkersorcogsgenes [default:markers-v3]
π SEE ALSO π
run_sepp.py(1), run_tipp.py(1),
go read those too, bestie, they're part of the family π
okay that's the whole page!! this one's from the run_abundance.py page, September 2021 edition β sending u all the love, stay hydrated, and remember: the alignment decomposition size must be less than the taxon insertion size π
β¨π«Ά
π¦ where this page comes from
- ubuntu jammy: tipp 1.0+dfsg-2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms