SAMBAMBA-INDEX(1)
SAMBAMBA-INDEX(1) β the manual page, but make it make sense π
okay bestie, so this is the sambamba-index(1) manual page, and honestly? it's a short one. which is great news for us because it means you'll actually remember it. π
β¨ NAME β¨
sambamba-index β the tool that builds standard index files for BAM data. that's it, that's the whole job, and it does it beautifully. π
πΈ SYNOPSIS πΈ
sambamba index [-p|--show-progress] [-t|--nthreads=NTHREADS] <input.bam>
[<output.bai>]
copy that exactly, don't freestyle it. π
π¦ DESCRIPTION π¦
sambamba index builds an index for a BAM file that's sorted by coordinate. and why do we care?? because this step is required for effective region querying in most of the tools that work with BAM data. no index, no region queries, no slay. that's just the vibe. π€
So where does the index go, you ask? by default it gets written to a file with the same filename except with .bai tacked onto the end. cute, right? but here's the thing β you're not stuck with that. you can absolutely override the default by handing over the output filename you actually want as an optional command-line argument. main character energy: you decide. β¨
π OPTIONS π
-p,--show-progressβ shows a wget-like progressbar over in STDERR. so you can sit there and watch it do its thing instead of wondering if it's frozen. we've all been there. π«Ά-t,--nthreads=NTHREADSβ the number of threads to use. more threads, more friends helping. π₯
π EXAMPLES π
build an index file example.bam.bai given a sorted BAM file example.bam:
$ sambamba index example.bam
build the index file at a custom location AND show progress, because we love transparency:
$ sambamba index --show-progress example.bam /tmp/example.bam.bai
see? iconic behaviour. no notes. π
π SEE ALSO π
want the lore on how the original samtools INDEX behaves? go check out the samtools documentation, fr fr:
http://samtools.sourceforge.net/samtools.shtml
and that's a wrap, bestie!! this page is from the 2016-10-24 era, straight out of the SAMBAMBA-INDEX(1) manual. now go index something and be great. π§π
π¦ 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