Scroll to navigation

BAMSEQCHKSUM(1) General Commands Manual BAMSEQCHKSUM(1)

NAME

bamseqchksum - produce checksums for primary data in BAM files

SYNOPSIS

bamseqchksum [options]

DESCRIPTION

bamseqchksum reads a BAM file from stdin, for each record calculates hash digest checksums over

[1]
flags and sequence
[2]
queryname, flags and sequence
[3]
flags, sequence and qualities
[4]
flags, sequence and source data related aux tags

where the flags are the least significant byte of the BAM FLAGS containing only the bits for multiple segments, first segment and last segment. The sequence is reverse complemented, and quality string reversed, before checksumming if the reverse complemented bit is set.

Depending on the chosen hash digest function either the sum modulo some power of 2 or the product modulo a prime number of these checksums is taken over all non-supplementary and non-secondary BAM alignment records. Separate sums or products are reported for combinations of all and QC pass records and for each readgroup.

The following key=value pairs can be given:

verbose=<0>: Valid values are

1:
print progress report on standard error
0:
do not print progress report

inputformat=<bam>: input file format All versions of bamseqchksum come 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 (see http://samtools.sourceforge.net/SAM1.pdf)
SAM (see http://samtools.sourceforge.net/SAM1.pdf)
CRAM (see http://www.ebi.ac.uk/ena/about/cram_toolkit)

reference=: file name of the reference for CRAM input files. If this key is unset, then the CRAM file header will be scanned for obtaining a reference file name.

hash=<crc32prod>: hash digest used to compute checksums. All versions of biobambam support the following functions:

checksums are computed via crc32 and combined over multiple records by multiplication modulo the prime number 2^31-1. This is the default and only option for biobambam versions up to 0.0.174.
checksums are computed via crc32 and combined by summing up modulo 2^32.
checksums are computed via md5 and combined by summing up modulo 2^128.
identical with crc32prod (alternate implementation for testing purposes)
checksums are computed via crc32 and combined over multiple records by multiplication modulo the prime number 2^64-59.
checksums are computed via md5 and combined over multiple records by multiplication modulo the prime number 2^64-59.
checksums are computed via crc32 and combined over multiple records by multiplication modulo the prime number 2^96-17.
checksums are computed via md5 and combined over multiple records by multiplication modulo the prime number 2^96-17.
checksums are computed via crc32 and combined over multiple records by multiplication modulo the prime number 2^128-159.
checksums are computed via md5 and combined over multiple records by multiplication modulo the prime number 2^128-159.
checksums are computed via crc32 and combined over multiple records by multiplication modulo the prime number 2^160-47.
checksums are computed via md5 and combined over multiple records by multiplication modulo the prime number 2^160-47.
checksums are computed via crc32 and combined over multiple records by multiplication modulo the prime number 2^192-237.
checksums are computed via md5 and combined over multiple records by multiplication modulo the prime number 2^192-237.
checksums are computed via crc32 and combined over multiple records by multiplication modulo the prime number 2^224-63.
checksums are computed via md5 and combined over multiple records by multiplication modulo the prime number 2^224-63.
checksums are computed via crc32 and combined over multiple records by multiplication modulo the prime number 2^256-189.
checksums are computed via md5 and combined over multiple records by multiplication modulo the prime number 2^256-189.
no checksums are computed and all checksums in the programs output are 0. This option is for performance testing only.

If libmaus is compiled with support for the nettle library, then the following options are available:

checksums are computed via sha1 and combined by summing up modulo 2^160.
checksums are computed via sha1 and combined over multiple records by multiplication modulo the prime number 2^64-59.
checksums are computed via sha1 and combined over multiple records by multiplication modulo the prime number 2^96-17.
checksums are computed via sha1 and combined over multiple records by multiplication modulo the prime number 2^128-159.
checksums are computed via sha1 and combined over multiple records by multiplication modulo the prime number 2^160-47.
checksums are computed via sha1 and combined over multiple records by multiplication modulo the prime number 2^192-237.
checksums are computed via sha1 and combined over multiple records by multiplication modulo the prime number 2^224-63.
checksums are computed via sha1 and combined over multiple records by multiplication modulo the prime number 2^256-189.
checksums are computed via sha2-224 and combined by summing up modulo 2^224.
checksums are computed via sha2-224 and combined over multiple records by multiplication modulo the prime number 2^64-59.
checksums are computed via sha2-224 and combined over multiple records by multiplication modulo the prime number 2^96-17.
checksums are computed via sha2-224 and combined over multiple records by multiplication modulo the prime number 2^128-159.
checksums are computed via sha2-224 and combined over multiple records by multiplication modulo the prime number 2^160-47.
checksums are computed via sha2-224 and combined over multiple records by multiplication modulo the prime number 2^192-237.
checksums are computed via sha2-224 and combined over multiple records by multiplication modulo the prime number 2^224-63.
checksums are computed via sha2-224 and combined over multiple records by multiplication modulo the prime number 2^256-189.
checksums are computed via sha2-256 and combined by summing up modulo 2^256.
checksums are computed via sha2-256 and combined over multiple records by multiplication modulo the prime number 2^64-59.
checksums are computed via sha2-256 and combined over multiple records by multiplication modulo the prime number 2^96-17.
checksums are computed via sha2-256 and combined over multiple records by multiplication modulo the prime number 2^128-159.
checksums are computed via sha2-256 and combined over multiple records by multiplication modulo the prime number 2^160-47.
checksums are computed via sha2-256 and combined over multiple records by multiplication modulo the prime number 2^192-237.
checksums are computed via sha2-256 and combined over multiple records by multiplication modulo the prime number 2^224-63.
checksums are computed via sha2-256 and combined over multiple records by multiplication modulo the prime number 2^256-189.
checksums are computed via sha2-384 and combined by summing up modulo 2^384.
checksums are computed via sha2-384 and combined over multiple records by multiplication modulo the prime number 2^64-59.
checksums are computed via sha2-384 and combined over multiple records by multiplication modulo the prime number 2^96-17.
checksums are computed via sha2-384 and combined over multiple records by multiplication modulo the prime number 2^128-159.
checksums are computed via sha2-384 and combined over multiple records by multiplication modulo the prime number 2^160-47.
checksums are computed via sha2-384 and combined over multiple records by multiplication modulo the prime number 2^192-237.
checksums are computed via sha2-384 and combined over multiple records by multiplication modulo the prime number 2^224-63.
checksums are computed via sha2-384 and combined over multiple records by multiplication modulo the prime number 2^256-189.
checksums are computed via sha2-512 and combined by summing up modulo 2^512.
checksums are computed via sha2-512 and combined over multiple records by multiplication modulo the prime number 2^64-59.
checksums are computed via sha2-512 and combined over multiple records by multiplication modulo the prime number 2^96-17.
checksums are computed via sha2-512 and combined over multiple records by multiplication modulo the prime number 2^128-159.
checksums are computed via sha2-512 and combined over multiple records by multiplication modulo the prime number 2^160-47.
checksums are computed via sha2-512 and combined over multiple records by multiplication modulo the prime number 2^192-237.
checksums are computed via sha2-512 and combined over multiple records by multiplication modulo the prime number 2^224-63.
checksums are computed via sha2-512 and combined over multiple records by multiplication modulo the prime number 2^256-189.
checksums are computed via sha2-512 and combined over multiple records by adding modulo the Mersenne prime number 2^521-1.
checksums are computed via sha2-512 and combined over multiple records by adding modulo 2^512-75.
checksums are computed via MurmurHash3_x64_128 (see https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp) and combined over multiple records by summing modulo 2^128.
checksums are computed via MurmurHash3_x64_128 (see https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp) and combined over multiple records by summing modulo 2^128+51.

AUTHOR

Written by David Jackson (using code by German Tischler as a template). Extended to hash digests beyond crc32prod by German Tischler.

REPORTING BUGS

Report bugs to <germant@miltenyibiotec.de>

COPYRIGHT

Copyright © 2014-2014 David Jackson, © 2014-2014 Genome Research Limited. Copyright © 2009-2016 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.

March 2014 BIOBAMBAM