BAMFLAGSPLIT(1)
π NAME π
bamflagsplit β sort BAM files by coordinate or query name β¨
πΈ SYNOPSIS πΈ
bamflagsplit [options]
π¦ DESCRIPTION π¦
okay bestie, here's the whole vibe: bamflagsplit reads a name collated BAM, SAM or CRAM file and then distributes all the reads inside it into a whole set of BAM files. like a sorting hat but for sequencing reads, and honestly? it ate π
here's exactly where everything lands:
- single β single end reads get placed in the
singlefile - unmapped β (partially) unmapped read pairs (pairs where at least one of the two mates is unmapped) get placed in the
unmappedfile - orphan β orphan reads (pairs where the other mate is missing in the file π) get placed in the
orphanfile - supplementary β supplementary mappings (mappings which have the supplementary flag set) get placed in the
supplementaryfile - split β split pair reads (pairs such that the two ends map to different reference sequences/chromosomes) get placed in the
splitfile - samestrand β read pairs such that both ends map to the same strand get placed in the
samestrandfile - improper β improperly mapped read pairs (read pairs where the mapped as a proper pair flag is not set) get placed in the
improperfile - proper β properly mapped pairs get placed in the
properfile π
the following key=value pairs can be given:
I=<[stdin]>β input filename, and it's standard input if you leave it unsetlevel=<-1|0|1|9|11>β set the compression level of the output BAM files. the 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 one more valid value:
11: igzip compression
verbose=<1>β valid values are:1: print progress report on standard error0: do not print progress report
disablevalidation=<0|1>β sets whether input validation is performed. valid values are:0: validation is enabled (default)1: validation is disabled
single=<filename>β file name for thesinglefilesinglemd5=<0|1>β md5 checksum creation for the single output file. valid values are:0: do not compute checksum. this is the default.1: compute checksum. if thesplitmd5filenamekey is set, then the checksum is written to the given file. ifsplitmd5filename, then no checksum will be computed.
unmapped=<filename>β file name for theunmappedfileunmappedmd5=<0|1>β md5 checksum creation for the unmapped output file. valid values are:0: do not compute checksum. this is the default.1: compute checksum. if thesplitmd5filenamekey is set, then the checksum is written to the given file. ifsplitmd5filename, then no checksum will be computed.
orphan=<filename>β file name for theorphanfileorphanmd5=<0|1>β md5 checksum creation for the orphan output file. valid values are:0: do not compute checksum. this is the default.1: compute checksum. if thesplitmd5filenamekey is set, then the checksum is written to the given file. ifsplitmd5filename, then no checksum will be computed.
supplementary=<filename>β file name for thesupplementaryfilesupplementarymd5=<0|1>β md5 checksum creation for the supplementary output file. valid values are:0: do not compute checksum. this is the default.1: compute checksum. if thesplitmd5filenamekey is set, then the checksum is written to the given file. ifsplitmd5filename, then no checksum will be computed.
split=<filename>β file name for thesplitfilesplitmd5=<0|1>β md5 checksum creation for the split output file. valid values are:0: do not compute checksum. this is the default.1: compute checksum. if thesplitmd5filenamekey is set, then the checksum is written to the given file. ifsplitmd5filename, then no checksum will be computed.
samestrand=<filename>β file name for thesamestrandfilesamestrandmd5=<0|1>β md5 checksum creation for the samestrand output file. valid values are:0: do not compute checksum. this is the default.1: compute checksum. if thesamestrandmd5filenamekey is set, then the checksum is written to the given file. ifsamestrandmd5filename, then no checksum will be computed.
improper=<filename>β file name for theimproperfileimpropermd5=<0|1>β md5 checksum creation for the improper output file. valid values are:0: do not compute checksum. this is the default.1: compute checksum. if theimpropermd5filenamekey is set, then the checksum is written to the given file. ifimpropermd5filename, then no checksum will be computed.
proper=<filename>β file name for theproperfilepropermd5=<0|1>β md5 checksum creation for the proper output file. valid values are:0: do not compute checksum. this is the default.1: compute checksum. if thepropermd5filenamekey is set, then the checksum is written to the given file. ifpropermd5filename, then no checksum will be computed.
inputformat=<bam>β input file format. all versions ofbamflagsplitcome with support for the BAM input format. if the program in addition is linked to the io_lib package, 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)
π AUTHOR π
Written by German Tischler. (genius behaviour, no cap π«Ά)
π 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.
fr fr, read that last line again β NO WARRANTY, bestie, so back up your files π
that's the whole page!! this one came from the BIOBAMBAM crew and it's dated June 2014. go forth and split some reads, you absolute icon πβ
π¦ 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