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 โ€”

  • A is the numeric reference id (0 based) ๐Ÿ”ข
  • B is the name of the reference sequence as given in the BAM header ๐Ÿ“›
  • C is a numerical contig id within the contigs for a given reference id ๐Ÿงฎ
  • D is the start position on the reference sequence (inclusive) โฌ…๏ธ
  • E is 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. 1: print progress report on standard error
    2. 0: 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 (default 50). 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 ยฉ 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 ๐Ÿ‘‘โœจ๐Ÿ’