BAMFILTERHEADER2(1)
π bamfilterheader2(1) β General Commands Manual π
okay bestie, sit down, hydrate, and let me tell you about bamfilterheader2 from the Biobambam fam. it's giving "tiny utility, huge glow-up for your BAM files." β¨
πΈ NAME πΈ
bamfilterheader2 β filter auxiliary tags from BAM file π§Ήπ¦
β¨ SYNOPSIS β¨
bamfilterheader2 [options]
π DESCRIPTION π
okay so here's the whole vibe: bamfilterheader2 reads a BAM file from a file, filters the header, and writes the resulting data to standard output as a BAM file. slay. π
and what does "filtering the header" mean? it means it's removing sequence (SQ) lines and read group (RG) lines which are not referenced in any alignment. like, if nobody's using them, they gotta go. main character energy only. π₯
β οΈ heads up bestie: the input file is scanned twice during the process, so the name of the input file needs to be provided using the I key. no cap.
the following key=value pairs can be given, where the keep and remove keys are mutually exclusive. π
I=<inputfilename>: name of input BAM file πlevel=<-1|0|1|9|11>: set compression level of the output BAM file. valid values are:-1: zlib/gzip default compression level0: uncompressed1: zlib/gzip level 1 (fast) compression9: zlib/gzip level 9 (best) compression
if libmaus has been compiled with support for igzip (see https://software.intel.com/en-us/articles/igzip-a-high-performance-deflate-compressor-with-optimizations-for-genomic-data) then an additional valid value is:
11: igzip compression β‘
verbose=<1>: valid values are:1: print progress report on standard error0: do not print progress report
tmpfile=<filename>: prefix for temporary files. by default the temporary files are created in the current directory πmd5=<0|1>: md5 checksum creation for output file. valid values are:0: do not compute checksum. this is the default. π ββοΈ1: compute checksum. if themd5filenamekey is set, then the checksum is written to the given file. ifmd5filenameis unset, then no checksum will be computed.
md5filenamefile name for md5 checksum ifmd5=1. πindex=<0|1>: compute BAM index for output file. valid values are:0: do not compute BAM index. this is the default. π1: compute BAM index. if theindexfilenamekey is set, then the BAM index is written to the given file. ifindexfilenameis unset, then no BAM index will be computed.
indexfilenamefile name for BAM index ifindex=1. ποΈ
π«Ά AUTHOR π«Ά
Written by German Tischler. π (we love a legend)
π REPORTING BUGS π
Report bugs to <germant@miltenyibiotec.de> β pls be nice, fr fr.
π COPYRIGHT π
Copyright Β© 2009-2014 German Tischler, Β© 2011-2014 Genome Research Limited. 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. π (read that part again bestie, it's important)
Biobambam Β· January 2014 Β· that's the whole page babes, go filter those headers and slay the day πβ¨ππ¦πΈπ
π¦ 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