BAMVALIDATE(1)
π BAMVALIDATE β validating your BAM like the queen you are π
okay so bestie, this is bamvalidate from the General Commands Manual section (that's section 1, the "commands you just type" section, iykyk). Buckle up, we're doing alignment validation today and honestly it's giving main character energy. β¨
πΈ NAME πΈ
bamvalidate β validate BAM file. that's it. that's the whole job. no cap. π
π¦ SYNOPSIS π¦
bamvalidate [options]
like, that's the entire usage. options only, no positional args, we love a clean interface.
π DESCRIPTION π
bamvalidate reads a BAM, SAM or CRAM file and checks the alignments inside it for validity. that's the vibe check. π«Ά
if all the alignments in the source file pass validation, the program exits with code 0. if not? non-zero exit code, and honestly it deserved it. π
by default, no data is produced on the standard output channel. but if you set the passthrough parameter to 1, then the alignments get recoded to standard output according to whatever output parameters you gave it. slay.
the following key=value pairs can be given:
verbose=<0|1>β print stats or don't. valid values are:1: print statistics on the standard error channel at the end of a successful run0: do not print statistics
passthrough=<0|1>β recode alignments to standard output ifpassthrough=1. default ispassthrough=0.level=<-1|0|1|9|11>β set 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
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
tmpfile=<filename>β set the prefix for temporary file names.md5=<0|1>β md5 checksum creation for the output file. this option can only be given ifoutputformat=bam. 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.
md5filenameβ file name for md5 checksum ifmd5=1.index=<0|1>β compute BAM index for the output file. this option can only be given ifoutputformat=bam. 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 output BAM index ifindex=1.inputformat=<bam>β input file format. all versions of bamsort come with support for the BAM input format. if the program is in addition linked to the io_lib package, then the following options are valid:bam: BAM (seehttp://samtools.sourceforge.net/SAM1.pdf)sam: SAM (seehttp://samtools.sourceforge.net/SAM1.pdf)cram: CRAM (seehttp://www.ebi.ac.uk/ena/about/cram_toolkit)
outputformat=<bam>β output file format. all versions of bamsort come with support for the BAM output format. if the program is in addition linked to the io_lib package, then the following options are valid:bam: BAM (seehttp://samtools.sourceforge.net/SAM1.pdf)sam: SAM (seehttp://samtools.sourceforge.net/SAM1.pdf)cram: CRAM (seehttp://www.ebi.ac.uk/ena/about/cram_toolkit). this format is not advisable for data sorted by query name. π
I=<[stdin]>β input filename, standard input if unset.O=<[stdout]>β output filename, standard output if unset.inputthreads=<[1]>β input helper threads, only valid forinputformat=bam.outputthreads=<[1]>β output helper threads, only valid foroutputformat=bam.reference=<[]>β reference FastA file forinputformat=cramandoutputformat=cram. an index file (.fai) is required. don't forget it bestie, it will simply not work. πrange=<>β input range to be processed. this option is only valid if the input is a coordinate sorted and indexed BAM file.basequalhist=<[0]>β compute base quality histogram and output this histogram on the standard error channel after a successful validation run. the histogram lines are prefixed with[H]. there is one line for each occurring base quality value, and two lines at the end specifying the minimum and maximum occurring quality value. the lines contain tabulator symbol separated columns.
the occurring base quality lines have 5 columns after the [H] column. these designate:
- the numerical quality level
- the ASCII character representation of this level (e.g.
!for quality 0 orIfor 40) - the absolute number of occurrences of the value
- the fraction of the occurrences of the value (the absolute number for this value divided by the sum of the occurrences over all values)
- the cumulative fraction for all values up to and including the current value
the minimum and maximum value lines have min and max respectively in the second column. the third and fourth column contain the numerical value and the ASCII representation of this value. for all lines the ASCII representation of a base quality value may be empty if the numerical quality value does not correspond to a printable ASCII code. it's giving ghost column, iconic. β¨
π AUTHOR π
written by German Tischler. periodt. π
π REPORTING BUGS π
report bugs to <germant@miltenyibiotec.de> β be nice, be specific, include the receipts. π«Ά
π 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. read that again bestie, no warranty, so pls don't come for anyone. π
β SEE ALSO β
(no SEE ALSO section in the original, so nothing to link here β go read the PDFs if you're curious, they're literally linked up in inputformat and outputformat.)
that's the whole page, you're validated, you're thriving, go check your BAMs πβ¨ππ¦πΈπ π«Άπ₯ππβπ
this cutie came to you from BIOBAMBAM, dated October 2014, filed under BAMVALIDATE(1) in the General Commands Manual. byeeee π
π¦ 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