BAMFILTERFLAGS(1)
π BAMFILTERFLAGS π
okay bestie, welcome to the bamfilterflags page from the General Commands Manual β yes it's a section 1 manual, we love a classic β¨
πΈ NAME πΈ
bamfilterflags β remove entries from BAM files matching a given set of flags
β¨ SYNOPSIS β¨
bamfilterflags [options]
π¦ DESCRIPTION π¦
so here's the vibe: bamfilterflags reads a BAM file from standard input, yeets out every alignment that matches the flag set you gave it, and writes whatever's left to a BAM file on the standard output stream. no cap, that's the whole job. π
the following key=value pairs can be given:
level=<-1|0|1|9|11>β sets the compression level of the output BAM file. the valid values are, and i need you to read these carefully:-1: zlib/gzip default compression level0: uncompressed1: zlib/gzip level 1 (fast) compression9: zlib/gzip level 9 (best) compression
and 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 there's one more valid value on the menu:
11: igzip compression
numthreads=<1>β number of additional threads used for rewriting ifmarkthreads > 1, otherwise no parallelism will be employed. that's literally what it says, don't come for me.exclude=<>β do not include reads in the output that have any of the given flags set. the flags are given separated by commas. the valid flags are:PAIRED: read was paired in sequencingPROPER_PAIR: read has been mapped as part of a proper pairUNMAP: read was not mappedMUNMAP: mate of read was not mappedREVERSE: read was mapped to the reverse strandMREVERSE: mate of read was mapped to the reverse strandREAD1: read was first read of a pair during sequencingREAD2: read was second read of a pair during sequencingSECONDARY: alignment is secondary, i.e. an alternative mapping to the primary alignment in the same fileQCFAIL: read as marked as having failed quality controlDUP: read is marked as a duplicate of another read in the same file (seebammarkduplicates)SUPPLEMENTARY: read is marked as supplementary alignment
tmpfile=<filename>β prefix for temporary files. by default the temporary files are created in the current directory. (yes, your cwd, right there, minding its own business π«Ά)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.
md5filenameβ file 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.
indexfilenameβ file name for BAM index ifindex=1.
π AUTHOR π
Written by German Tischler. icon behaviour honestly.
π REPORTING BUGS π
Report bugs to <germant@miltenyibiotec.de>. if something's cursed, tell them, not me π
π 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. (say it louder for the people in the back π£οΈ)
and that's the whole page bestie, you ate π β¨ this little gem comes to you from BIOBAMBAM, dated August 2013, living its best life as BAMFILTERFLAGS(1) β go filter some flags, you've got this π¦π
π¦ 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