BAMCONSENSUS(1)
โจ bamconsensus โ the manual, but make it cute โจ
okay bestie, welcome to BAMCONSENSUS(1) ๐ this is a General Commands Manual page, section 1, and it's genuinely one of my faves, no cap.
๐ธ NAME ๐ธ
bamconsensus โ compute a rough consensus sequence from alignments ๐งฌโจ
๐ฆ SYNOPSIS ๐ฆ
bamconsensus [reference=ref.fasta] < in.bam >out.fasta [options]
like... it reads from stdin and writes to stdout, she's a pipeline girlie fr fr ๐ซถ
๐ DESCRIPTION ๐
so basically: bamconsensus reads a BAM, SAM or CRAM file and computes a rough consensus based on the alignments inside. that's the whole vibe. ๐
โ ๏ธ your input file needs to be sorted in coordinate order. not optional, not negotiable, she will not be slaying otherwise.
the consensus gets written as an alignment file on the standard output channel. yes, stdout. redirect it, queen. ๐
the sequence names in the output file are structured like this:
contig_A_B_C_D_E
where โ and this is the important part, don't skip it โ
Ais the numeric reference id (0 based) ๐ขBis the name of the reference sequence as given in the BAM header ๐Cis a numerical contig id within the contigs for a given reference id ๐งฎDis the start position on the reference sequence (inclusive) โฌ ๏ธEis the end position on the reference sequence (exclusive) โก๏ธ
the reference key specifying the name of a FastA reference sequence file is required. like, mandatory mandatory. ๐
the consensus is constructed by computing heavy paths in local DeBruijn graphs. consequently it is usually a patchwork of the haplotypes present for diploid/polyploid genomes. so she's a collage, she's eclectic, she's doing her best, and honestly? iconic. ๐
๐ the key=value pairs you can give ๐
the following key=value pairs can be given:
reference=<ref.fasta>โ reference FastA file (required, bestie, do not forget her) ๐ธverbose=<1>โ valid values are:1: print progress report on standard error0: do not print progress report
T=<filename>โ set the prefix for temporary file names ๐๏ธk=<32>โ k-mer size used for consensus computation (maximum 32). that's the ceiling, don't push it ๐minlen=<50>โ minimum length of alignments used (default50). short alignments, we don't know her ๐ โโ๏ธinputformat=<bam>โ input format ๐ฅrange=<>โ input range to be processed. this option is only valid if the input is a coordinate sorted and indexed BAM file ๐
๐ AUTHOR ๐
Written by German Tischler-Hรถhle. ๐
๐ REPORTING BUGS ๐
found a bug? don't be shy, report bugs to <germant@miltenyibiotec.de> ๐ง
โญ COPYRIGHT โญ
Copyright ยฉ 2019 German Tischler. License GPLv3+: GNU GPL version 3 <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
not me reminding you that there is literally no warranty ๐ญ read it, internalize it, live it.
and that's the whole page, bestie! this one comes from BIOBAMBAM, dated August 2019, and it's BAMCONSENSUS(1) โ go forth and compute that rough consensus, you absolute main character ๐โจ๐
๐ฆ where this page comes from
- debian bookworm: biobambam2 2.0.185+ds-1 ยท GPL-3.0-or-later
- debian trixie: biobambam2 2.0.185+ds-2 ยท GPL-3.0-or-later
- ubuntu jammy: biobambam2 2.0.183+ds-1 ยท GPL-3.0-or-later
- ubuntu noble: biobambam2 2.0.185+ds-1 ยท GPL-3.0-or-later
- ubuntu questing: biobambam2 2.0.185+ds-2
- ubuntu resolute: biobambam2 2.0.185+ds-2build1 ยท GPL-3.0-or-later
- ubuntu stonking: biobambam2 2.0.185+ds-2build1 ยท 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