BAMFILTERHEADER(1)
β¨ NAME β¨
bamfilterheader β filter auxiliary tags from a BAM file π (yes bestie, it's giving spring cleaning for your headers)
She lives in the General Commands Manual section, section 1, and she is so good at her job.
πΈ SYNOPSIS πΈ
bamfilterheader [options]
π DESCRIPTION π
okay so here's the tea π«: bamfilterheader reads a BAM file from a file, filters the header, and writes the resulting data to standard output as a BAM file. Iconic behavior, no notes.
Filtering the header means:
- removing sequence (
SQ) lines, and - removing read group (
RG) lines
...that are not referenced in any alignment. If nobody's using it, it's not coming to the party. periodt. π
β οΈ Heads up bestie: the input file gets scanned twice during the process, so the name of the input file needs to be provided using theIkey. NoI, no vibes. π
The following key=value pairs can be given, where the keep and remove keys are mutually exclusive. Pick a lane, babe. π«
I=<inputfilename>β name of input BAM file. Literally the main character here.level=<-1|0|1|9|11>β set the 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
(ngl I keep mine on 1 because I want to know things β¨)
tmpfile=<filename>β prefix for temporary files. By default the temporary files are created in the current directory. πmd5=<0|1>β md5 checksum creation for the 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. π«
md5filenameβ file name for md5 checksum ifmd5=1.index=<0|1>β compute BAM index for the 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. π
indexfilenameβ file name for BAM index ifindex=1.
π AUTHOR π
Written by German Tischler. king behavior, we love to see it π
π REPORTING BUGS π
Report bugs to <germant@miltenyibiotec.de> π¬ (they wanna hear about it, 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 again, bestie β NO WARRANTY, okay? π)
and that's the whole page!! mwah π this lil beauty comes to you from the BIOBAMBAM collection, dated January 2014, and yeah she's been serving since then β¨π¦ go filter those headers, you absolute icon πΈ
π¦ 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