BUILDCONSENSUS.PY(1)
๐ BUILDCONSENSUS.PY(1) โ User Commands ๐
โจ NAME โจ
BuildConsensus.py - Builds a consensus sequence for each set of input sequences ๐
๐ฆ DESCRIPTION ๐ฆ
Okay bestie, so this tool takes your input sequences and builds a consensus sequence for each set of them. Ngl the usage line looks like a whole essay, but it's just the list of everything you're allowed to pass in ๐ซถ
usage: BuildConsensus.py [--version] [-h] -s SEQ_FILES [SEQ_FILES ...]
[-o OUT_FILES [OUT_FILES ...]] [--outdir OUT_DIR]
[--outname OUT_NAME] [--log LOG_FILE] [--failed] [--fasta]
[--delim DELIMITER DELIMITER DELIMITER] [--nproc NPROC] [-n
MIN_COUNT] [--bf BARCODE_FIELD] [-q MIN_QUAL] [--freq MIN_FREQ]
[--maxgap MAX_GAP] [--pf PRIMER_FIELD] [--prcons PRIMER_FREQ]
[--cf COPY_FIELDS [COPY_FIELDS ...]] [--act
{min,max,sum,set,majority} [{min,max,sum,set,majority} ...]]
[--dep] [--maxdiv MAX_DIVERSITY | --maxerror MAX_ERROR]
Builds a consensus sequence for each set of input sequences. It's giving main character energy โจ
๐ธ help ๐ธ
--versionโ shows the program's version number and then exits ๐-h,--helpโ shows this help message and exits ๐ง
๐ standard arguments ๐
-s SEQ_FILES [SEQ_FILES ...]โ the list of FASTA/FASTQ files holding the sequences you want processed ๐ (default:None)-o OUT_FILES [OUT_FILES ...]โ explicit output file name(s). Heads up, this one can't be used with--failed,--outdir, or--outname๐ If you don't set it, the output filename gets based on your input filename(s). (default:None)--outdir OUT_DIRโ changes the output directory to wherever you point it. If you skip this, the input file directory is used instead ๐ (default:None)--outname OUT_NAMEโ swaps the prefix of the successfully processed output file for the string you give it. Can't be used with multiple input files ๐ (default:None)--log LOG_FILEโ writes verbose logging to a file. Also can't be used with multiple input files ๐ (default:None)--failedโ creates files holding the records that fail processing ๐ (default:False)--fastaโ forces the output to be FASTA instead of FASTQ ๐ฆ (default:None)--delim DELIMITER DELIMITER DELIMITERโ a list of three delimiters. In order, they separate annotation blocks, field names from values, and values within a field ๐ซง (default:('|', '=', ','))--nproc NPROCโ how many computational processes run at the same time (aka how many CPU cores you want to utilize) ๐ฅ (default:4)
๐ง consensus generation arguments ๐ง
-n MIN_COUNTโ the minimum number of sequences needed before a consensus counts as valid โจ (default:1)--bf BARCODE_FIELDโ the position of the description barcode field you want to group sequences by ๐ (default:BARCODE)-q MIN_QUALโ the consensus quality score cut-off. Anything under it gets an ambiguous character assigned. It doesn't apply when quality scores aren't available ๐ (default:0)--freq MIN_FREQโ the fraction of character occurrences under which an ambiguous character gets assigned ๐ (default:0.6)--maxgap MAX_GAPโ if you set this, it defines a cut-off for how often gap values are allowed at each position. Positions over the threshold get deleted from the consensus. If you don't define it, positions are always kept ๐ซถ (default:None)--pf PRIMER_FIELDโ the field name of the primer annotations ๐ (default:None)--prcons PRIMER_FREQโ sets a minimum primer frequency needed to assign a consensus primer. It also filters out sequences with minority primers from the consensus building step ๐ (default:None)--cf COPY_FIELDS [COPY_FIELDS ...]โ extra annotation fields to copy into the consensus sequence annotations ๐ธ (default:None)--act {min,max,sum,set,majority} [{min,max,sum,set,majority} ...]โ a list of actions, one for each copy field, that decides how each annotation gets combined into a single value ๐min,max, andsumdo the matching math operation on numeric annotations ๐งฎsetmashes the annotations into a comma delimited list of unique values, and adds an annotation named<FIELD>_COUNTwith the count of each item in the set ๐majoritygives the consensus annotation the most frequent annotation, and adds an annotation named<FIELD>_FREQwith the frequency of that majority value ๐
(default: None)
--depโ calculates consensus quality with a nonindependence assumption ๐ง (default:False)--maxdiv MAX_DIVERSITYโ calculates the nucleotide diversity of each read group (average pairwise error rate) and removes groups going over the diversity threshold. The diversity is calculated for all positions in the read group, ignoring any character filtering from-q,--freqand--maxgap๐ โโ๏ธ Mutually exclusive with--maxerror. (default:None)--maxerror MAX_ERRORโ calculates the error rate of each read group (the rate of mismatches from the consensus) and removes groups over the error threshold. The error rate is calculated against the final consensus, which can include masked positions because of-qand--freq, and can have deleted positions because of--maxgap๐ซ Mutually exclusive with--maxdiv. (default:None)
๐ output files ๐
consensus-passโ the consensus reads ๐ซงconsensus-failโ the raw reads that fail the consensus filtering criteria ๐
๐ output annotation fields ๐
PRIMERโ a comma delimited list of the unique primer annotations found within the barcode read group ๐PRCOUNTโ a comma delimited list of the matching counts for those unique primer annotations ๐ขPRCONSโ the majority primer within the barcode read group ๐PRFREQโ the frequency of the majority primer ๐CONSCOUNTโ the count of reads in the barcode read group that actually went into the consensus sequence. It's the total size of the read group minus any sequence excluded by your filtering criteria ๐ง
๐ซถ AUTHOR ๐ซถ
This manpage was written by Andreas Tille for the Debian distribution and can be used for any other usage of the program ๐ท
Bestie, that's the whole tea โ๐ BuildConsensus.py 0.6.0, May 2020, and we're signing off with main character energy ๐ฆโจ
๐ฆ where this page comes from
- debian bookworm: presto 0.7.1-1 ยท AGPL-3.0-only
- debian trixie: presto 0.7.2-2 ยท AGPL-3.0-only
- ubuntu jammy: presto 0.7.0-1 ยท AGPL-3.0-only
- ubuntu noble: presto 0.7.2-1 ยท AGPL-3.0-only
- ubuntu questing: presto 0.7.2-2
- ubuntu resolute: presto 0.7.6-1 ยท AGPL-3.0-only
- ubuntu stonking: presto 0.7.6-1 ยท AGPL-3.0-only
- ๐ girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms