bamsplitdiv(1)

bamsplitdiv1

Split bam file into a set of bam files

Usage

bamsplitdiv [options]

Overview

bamsplitdiv reads a BAM file via standard input and creates a set of output BAM files containing the alignments in the input. Given a positive natural number div bamsplitdiv will create div files. The alignments in the input file will be distributed to the output files in a round robin type scheme, i.e. entries 0, div, 2div, 3div, etc. will be written to the first output file, 1,div+1,2div+1, 3div+1, etc. to the second etc.

The following key=value pairs can be given:

div=<1>: number of output files

prefix=<filename> prefix for the create files. The created files will have names ${prefix}_000000.bam, ${prefix}_000001.bam, etc.

level=<-1|0|1|9|11>: set compression level of the output BAM file. Valid values are

-1:

zlib/gzip default compression level

0:

uncompressed

1:

zlib/gzip level 1 (fast) compression

9:

zlib/gzip level 9 (best) compression

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 an additional valid value is

11:

igzip compression

verbose=<1>: Valid values are

1:

print progress report on standard error

0:

do not print progress report

Releases

Unchanged in 3 releases since Debian 11 (Bullseye).

  1. 11–13

Author

Written by German Tischler.

Reporting bugs

Report bugs to <[email protected]>

From biobambam2 2.0.185+ds-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.