BAMFILTERMC(1)
π BAMFILTERMC π
okay so bestie, welcome to bamfiltermc(1), a little general commands manual page that is lowkey a lifesaver and I'm obsessed with it, let's get into it π«Ά
β¨ NAME β¨
bamfiltermc β literally just here to remove MC aux fields for reads with unmapped mates π§Ήπ
β¨ SYNOPSIS β¨
bamfilterflags [options]
(no cap, that's exactly what it says, and yes it says bamfilterflags, we don't make the rules, we just report them π)
β¨ DESCRIPTION β¨
So here's the vibe: bamfiltermc reads a SAM/BAM/CRAM file from standard input, removes MC aux fields for reads with unmapped mates β which, btw, were erroneously inserted by earlier versions of biobambam2 (not our fault, we fixed it, slay β¨) β and then writes the resulting alignments out to a SAM/BAM/CRAM file on the standard output stream. In and out, main character energy, periodt. π
The following key=value pairs can be given, bestie, write these down π:
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) 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, a little bonus queen:
11β igzip compression
numthreads=<1>β number of worker threads. πͺinputthreads=<1>β number of input threads.outputthreads=<1>β number of output threads.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.
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.outputformat=<bam>β output file format. All versions of bamsort come with support for the BAM output format. If the program in addition is linked to the io_lib package, then the following options are valid:bamβ BAM (see http://samtools.sourceforge.net/SAM1.pdf)samβ SAM (see http://samtools.sourceforge.net/SAM1.pdf)cramβ CRAM (see http://www.ebi.ac.uk/ena/about/cram_toolkit). This format is not advisable for data sorted by query name. β οΈ
inputformat=<bam>β input file format. All versions of bamsort come with support for the BAM input format. If the program in addition is linked to the io_lib package, then the following options are valid:bamβ BAM (see http://samtools.sourceforge.net/SAM1.pdf)samβ SAM (see http://samtools.sourceforge.net/SAM1.pdf)cramβ CRAM (see http://www.ebi.ac.uk/ena/about/cram_toolkit)
π AUTHOR π
Written by German Tischler. (ty king π)
π REPORTING BUGS π
Found a bug? Not the vibe, but okay, report it to <germant@miltenyibiotec.de> π
π COPYRIGHT π
Copyright Β© 2009-2016 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. π (fr fr, that's what it says)
and that's the whole page bestie, you ate this πΈπ this little icon is from the BIOBAMBAM2 era, dated July 2016, and it's still serving. mwah π β¨π¦
π¦ 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