BAMMDNM(1)
π NAME π
bammdnm β bestie, it computes the MD and NM fields, that's the whole job, and it does it flawlessly β¨
π¦ SYNOPSIS π¦
bammdnm [options]
πΈ DESCRIPTION πΈ
okay so here's the vibe: bammdnm reads a coordinate sorted BAM file straight from standard input, fills in the MD and NM auxiliary fields for every mapped read fragment, and then writes the whole thing out as a BAM file on standard output. that's it. that's the girl. π
and then you can hand it these key=value pairs, one by one, no cap:
reference=<>β the file name of your reference, in either uncompressed or compressed FastA format. this one is REQUIRED, like fr fr, the program will literally quit if you don't give it. Uncompressed FastA is expected in general FastA file format, and you need a FastA index (a.faifile) β you can make that index while you reformat your input file usingnormalisefasta. Now, compressed FastA comes in two forms, bestie, pay attention π«Ά. Form one is the format generated by therazipprogram β for that you need arazffile plus a corresponding FastA index file (.fai). Form two can be generated bynormalisefastausing the settingbgzf=1β and for that one, the index thatnormalisefastaoptionally creates when you set theindexkey is required bybammdnm. That index file has to be stored asref.fa.bgzf.idxwhen your compressed reference file name isref.fa.bgzf. iykyk π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 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 you get one extra valid value, lucky you:
11: igzip compression
verbose=<0|1>β print a progress report while processing the file. valid values:0: do not print progress report1: print progress report (default)
disablevalidation=<0|1>β disable input validation. valid values:0: check validity of input data (default)1: do not check validity of input data
tmpfile=<filename>β prefix for temporary files. by default, temporary files are created in the current directory.md5=<0|1>β md5 checksum creation for the output file. valid values: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: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 index file ifindex=1.recompindetonly=<0|1>β only compute/recompute the MD and NM fields if the read or the reference in the relevant region contain indeterminate (non A, C, G or T) bases. valid values:0: compute/recompute all MD and NM fields. this is the default.1: only recompute if indeterminate bases are involved
warnchange=<0|1>β warn if values for the MD and NM fields are already present but different from the newly computed ones. valid values:0: do not warn about changes. this is the default.1: print a warning message when changing previously stored values
ioblocksize=<128k>β block size used for I/O operations
π AUTHOR π
Written by German Tischler. π
π REPORTING BUGS π
Report bugs to <germant@miltenyibiotec.de>
β 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.
ok that's the whole page, you ate that bestie π this was BIOBAMBAM, March 2014, and yes this manual is literally BAMMDNM(1) π
β¨
π¦ 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