BAMFIXMATEINFORMATION(1)
β¨ NAME β¨
bamfixmateinformation β the little icon that fixes up mate pair info in BAM files π
πΈ SYNOPSIS πΈ
bamfixmateinformation [options]
π¦ DESCRIPTION π¦
okay so picture this: you've got a BAM, a SAM or a CRAM file, and the mate pair info on your paired alignments is a whole mess. bamfixmateinformation reads it, fixes the mate pair info, and writes the result back out as BAM, SAM or CRAM. that's it, that's the job, and it ate π
π¨ IMPORTANT π¨ the input file must be sorted by query name β go look at bamsort if you need that done first. don't skip this step bestie, it's not optional.
so for paired reads that have aligned mates, it goes in and modifies these fields:
- mate alignment reference sequence id
- mate alignment position on reference sequence
- mate unmapped/mate mapped to reverse strand flags
MQauxiliary tag denoting the mapping quality of the mapped mate- inferred template length
periodt. those are the fields, and it fixes them. moving on π
π OPTIONS π
the following key=value pairs can be given, bestie. read them all, there are no skips here:
level=<-1|0|1|9|11>β sets the compression level of the output BAM file. the 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 was 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
verbose=<1>β valid values are:1β print progress report on standard error0β do not print progress report
disablevalidation=<0|1>β sets whether input validation is performed. valid values are:0β validation is enabled (this is the default)1β validation is disabled
md5=<0|1>β md5 checksum creation for the output file. this one can only be given ifoutputformat=bam. then the 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 the md5 checksum ifmd5=1.inputformat=<bam>β input file format. all versions ofbamsortcome with support for the BAM input format. if the program in addition is linked to theio_libpackage, then the following options are valid:bamβ BAM (seehttp://samtools.sourceforge.net/SAM1.pdf)samβ SAM (seehttp://samtools.sourceforge.net/SAM1.pdf)cramβ CRAM (seehttp://www.ebi.ac.uk/ena/about/cram_toolkit)
outputformat=<bam>β output file format. all versions ofbamsortcome with support for the BAM output format. if the program in addition is linked to theio_libpackage, then the following options are valid:bamβ BAM (seehttp://samtools.sourceforge.net/SAM1.pdf)samβ SAM (seehttp://samtools.sourceforge.net/SAM1.pdf)cramβ CRAM (seehttp://www.ebi.ac.uk/ena/about/cram_toolkit). this format is not advisable for data sorted by query name. like, just don't π
I=<[stdin]>β input filename, standard input if unset.O=<[stdout]>β output filename, standard output if unset.inputthreads=<[1]>β input helper threads, only valid forinputformat=bam.outputthreads=<[1]>β output helper threads, only valid foroutputformat=bam.reference=<[]>β reference FastA file forinputformat=cramandoutputformat=cram. an index file (.fai) is required. don't forget it bestie, it will not work without it π«Ά
π AUTHOR π
written by German Tischler. king behavior honestly π
π REPORTING BUGS π
found a bug? report it to <germant@miltenyibiotec.de>. be nice, be specific, include the receipts π
β 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. no cap, zero warranty, read the license bestie π
and that's the whole page! this one's from the BIOBAMBAM girlies, dated December 2013 β yeah she's a little vintage but she still slays β¨π¦πΈ
π¦ 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