BAM12SPLIT(1)
β¨ NAME β¨
bam12split β bestie, this is the little tool that takes rank pairs (the ones bamcollate2 made) and projects them into single ranks per read. We're going from duo to solo, main-character style π
It's from the General Commands Manual, so you know it's legit.
π¦ SYNOPSIS π¦
bam12split [options]
π DESCRIPTION π
Okay so here's the tea: bam12split reads a BAM file from standard input, projects rank pairs produced by bamcollate2 to single ranks per read, and writes the resulting data as a BAM file. In through the front door, out through the back, glow-up complete β¨
The way this works is: when the name A_B_C was produced for a pair of reads by
bamcollate2 collate=2
then bam12split produces the name A_C for the first read of the pair and B_C for the second read of the pair. Like, it splits the pair name up and hands each read its own lil rank. So fair, so iconic π«Ά
The following key=value pairs can be given:
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 an additional valid value, and it's kind of a big deal:
11β igzip compression π₯
verbose=<1>β valid values are:1β print progress report on standard error0β do not print progress report
tmpfile=<filename>β prefix for temporary files. By default the temporary files are created in the current directory.md5=<0|1>β md5 checksum creation for the 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. (yes bestie, even though you said 1. it's giving "you had one job" π)
md5filenameβ file name for md5 checksum ifmd5=1.index=<0|1>β compute BAM index for the 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.
β οΈ Heads up bestie: for bothmd5=1andindex=1, the file only actually gets written if you also set the matching...filenamekey. Set the flag, set the name, or the output just doesn't happen. No cap.
π AUTHOR π
Written by German Tischler. King behaviour π
π REPORTING BUGS π
Report bugs to <germant@miltenyibiotec.de>. Don't be shy, they wanna hear it fr fr π
π 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. (Read that one again. There is no warranty, bestie. Protect yourself π)
okay and that's the whole page, you ate that π This was BIOBAMBAM, dated July 2013 β ancient, yes, but still serving looks. Go split some ranks, 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