BAMSTREAMI...DUPLICATES(1)
π NAME π
bamstreamingmarkduplicates β mark duplicate reads. that's the whole gig, and she does it in one pass, section 1 of the General Commands Manual style. π
β¨ SYNOPSIS β¨
bamstreamingmarkduplicates [options]
π¦ DESCRIPTION π¦
okay so. bamstreamingmarkduplicates reads a coordinate sorted BAM, SAM or CRAM file β one that has previously been processed by bamsort using the options fixmates=1 and adddupmarksupport=1 β and then it marks duplicate read pairs and reads, and writes the resulting file back out in BAM, SAM or CRAM format. π
π¨ the preprocessing of the file usingbamsortwith the stated options is mandatory, i.e.bamstreamingmarkduplicateswill fail without it. not a suggestion, bestie. it's giving prerequisite.
now, in contrast to bammarkduplicates and bammarkduplicates2, the streaming variant bamstreamingmarkduplicates processes the file in a single pass. main character efficiency honestly. π₯
and here's the one thing she genuinely cannot do: bamstreamingmarkduplicates cannot handle files containing orphan pair ends (pairs where one of the two ends is missing in the file). π so if your file has those, she's not the one, sorry.
π the key=value pairs π
The following key=value pairs can be given:
M=<>β file name for metrics data. By default the metrics data is written on the standard error channel.level=<-1|0|1|9|11>β set 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) compression11: igzip compression β and this one only exists 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). so like, check before you assume π
verbose=<1>β Valid values are:1: print progress report on standard error0: do not print progress report
tmpfile=<filename>β set the prefix for temporary file names.disablevalidation=<0|1>β sets whether input validation is performed. Valid values are:0: validation is enabled (default)1: validation is disabled
md5=<0|1>β md5 checksum creation for output file. This option can only be given ifoutputformat=bam. Then 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. This option can only be given ifoutputformat=bam. Then 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 output BAM index ifindex=1.inputformat=<bam>β input file format. All versions ofbamstreamingmarkduplicatescome 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 (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)
outputformat=<bam>β output file format. All versions ofbamstreamingmarkduplicatescome 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 (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.
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.tag=<tag>β name of auxiliary field storing tag information in string form. Read fragments or pairs with different tags will not be considered as duplicates, even they would be according to their mapping coordinates. For pairs the tag field information of the first and second mate are concatenated to obtain the tag of the pair.nucltag=<tag>β this option works like thetagoption but is restricted to sequences of nucleotides (A,C,GorT) as tags. The length of each tag sequence is not allowed to exceed 15 bases. All tags are required to have the same length. Each non nucleotide symbol is mapped toA. In contrast to thetagoption,nucltaguses less memory for processing and can be expected to be faster. β‘filterdupmarktags=<[0]>β remove the auxiliary fieldsMC,MQ,MS, andMTused for streaming duplicate marking when producing the output file. By default the fields are not removed.
πΈ 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.
okay that's the whole page, go forth and deduplicate responsibly π«Ά this was the BIOBAMBAM era, August 2014, and yes bestie, that means it's basically vintage πβ¨π
π¦ 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