RUN_ABUNDANCE.PY(1)

πŸ“¦ version 1.0, in ubuntu jammy

πŸ’– 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 of N [default: 10% of the total number of taxa or the placement subset size if given]
  • -P N, --placementSize N β€” max placement subset size of N [default: 10% of the total number of taxa or the alignment length (whichever bigger)]
  • -F N, --fragmentChunkSize N β€” maximum fragment chunk size of N. 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 to DIR. 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 prefix OUTPUT. [default: output]
  • -d OUTPUT_DIR, --outdir OUTPUT_DIR β€” output to the OUTPUT_DIR directory. 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 be amino, dna, or rna [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 β€” use N cpus [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 -cp provided. [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 of N. 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 of N. 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 β€” use blast or hmmer for 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 β€” use markers or cogs genes [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