SAMBAMBA-MERGE(1)
π SAMBAMBA-MERGE π
okay bestie, welcome to the sambamba-merge page of the manual β it's the one that lives in section 1, and it's literally just here to help you smoosh a bunch of BAM files together into one. no cap. π«Ά
β¨ NAME β¨
sambamba-merge β the tool for merging several BAM files into one. that's it. that's the whole job. iconic. π
β¨ SYNOPSIS β¨
sambamba merge OPTIONS <output.bam> <input1.bam> <input2.bam> [...]
β¨ DESCRIPTION β¨
so sambamba merge is what you reach for when you've got a whole squad of sorted BAM files and you want them to become one sorted BAM file. the way that this works is: the sorting order of all the files has to be the same, and whatever that order is, it gets maintained in the output file. like, it's not gonna re-sort your life for you, it just keeps the vibe consistent. π
SAM headers? merged automatically, same energy as the Picard merging tool. so you don't have to hand-craft anything, it just handles it. slay. β¨
β¨ OPTIONS β¨
-t,--nthreads=NTHREADSβ tell it how many threads to use for the compression/decompression tasks. more threads = more goblins working on it. π§-l,--compression-level=COMPRESSION_LEVELβ set the compression level of the output file, as a number from0to9. yes, a number.0through9. those exact ones. π-H,--headerβ outputs only the merged header, tostdout, in SAM format β super handy for debugging purposes. and listen: when you use this, the other options are ignored. ignored!! they just don't get a turn. π-p,--show-progressβ shows a progressbar inSTDERR, so you can watch the whole thing happen in real time instead of staring at a blank terminal like ποΈπποΈ. for more info on the original samtools MERGE behaviour, check out the samtools documentation athttp://samtools.sourceforge.net/samtools.shtml
fr fr: the sorting order of every input file must match, or this whole plan falls apart. no cap.
and that's the page, bestie π this one came from February 2015 and it's filed under SAMBAMBA-MERGE(1) β go forth and merge, you absolute main character. ππΈπ¦
π¦ where this page comes from
- debian bookworm: sambamba 1.0+dfsg-1 Β· GPL-2.0-or-later
- debian trixie: sambamba 1.0.1+dfsg-2+b1 Β· GPL-2.0-or-later
- ubuntu jammy: sambamba 0.8.2+dfsg-2 Β· GPL-2.0-or-later
- ubuntu noble: sambamba 1.0.1+dfsg-1build3 Β· GPL-2.0-or-later
- ubuntu questing: sambamba 1.0.1+dfsg-2build1
- ubuntu resolute: sambamba 1.0.1+dfsg-3ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: sambamba 1.0.1+dfsg-3ubuntu3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms