BAMFILTERRG(1)
β¨ BAMFILTERRG π
okay bestie, gather round, because this one is a little tool with big main character energy π it's called bamfilterrg, and it lives in the General Commands Manual section of your terminal. she's from the biobambam crew. let's get into it.
πΈ NAME πΈ
bamfilterrg β filter read groups from a BAM file π§¬
like. that's it. that's the whole job. she filters read groups. slay.
π¦ SYNOPSIS π¦
bamfilterrg [options]
no positional args, no drama, just vibes and options π
π DESCRIPTION π
so here's the tea, bestie: bamfilterrg reads a BAM file from standard input, keeps only the reads that belong to a given set of read groups, and writes those reads to standard output in BAM format. that's the whole arc. no cap. π₯
and these are the key=value pairs you can hand her:
readgroups=<[]>β the list of read groups you wanna keep. if you don't set it, the default is to keep all the reads (she's generous like that π«Ά). multiple read groups get separated by commas.verbose=<1>β how chatty she is. valid values are:1: print a progress report on standard error π’0: do not print a progress report π€«
level=<-1|0|1|9|11>β sets the compression level of the output BAM file. valid values are:-1: zlib/gzip default compression level0: uncompressed1: zlib/gzip level 1 (fast) compression β‘9: zlib/gzip level 9 (best) compression π
and if libmaus has been compiled with support for igzip (peep <https://software.intel.com/en-us/articles/igzip-a-high-performance-deflate-compressor-with-optimizations-for-genomic-data>) then there's one more valid value, and it's:
11: igzip compression π
tmpfile=<filename>β a prefix for temporary files. by default the temporary files are created in the current directory. (yes, current directory. she's keeping it local π )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. π (yes, you read that right, bestie β setmd5=1with no filename and you get nothing. no cap.)
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. π (same energy as the md5 thing, fr fr)
indexfilenameβ file name for BAM index ifindex=1.
π AUTHOR π
Written by German Tischler. iconic of him, honestly π
π REPORTING BUGS π
found a bug? not the vibe. report it to <germant@miltenyibiotec.de> π§ she'll appreciate it.
β COPYRIGHT β
Copyright Β© 2009-2013 German Tischler, Β© 2011-2013 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. π«Ά
okay that's the whole page, bestie β this one shipped as part of BIOBAMBAM, dated July 2013, and it's filed under BAMFILTERRG(1). go filter those read groups, you absolute legend πβ¨ bye!!
π¦ 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