34 lines
1.0 KiB
Java
34 lines
1.0 KiB
Java
|
|
/*
|
||
|
|
* The Broad Institute
|
||
|
|
* SOFTWARE COPYRIGHT NOTICE AGREEMENT
|
||
|
|
* This software and its documentation are copyright 2009 by the
|
||
|
|
* Broad Institute/Massachusetts Institute of Technology. All rights are reserved.
|
||
|
|
*
|
||
|
|
* This software is supplied without any warranty or guaranteed support whatsoever. Neither
|
||
|
|
* the Broad Institute nor MIT can be responsible for its use, misuse, or functionality.
|
||
|
|
*/
|
||
|
|
package edu.mit.broad.sam;
|
||
|
|
|
||
|
|
class BAMFileConstants {
|
||
|
|
/**
|
||
|
|
* The beginning of a BAMRecord is a fixed-size block of 8 int32s
|
||
|
|
*/
|
||
|
|
static final int FIXED_BLOCK_SIZE = 8 * 4;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Sanity check -- we never expect BAMRecords to be as big as this.
|
||
|
|
*/
|
||
|
|
static final int MAXIMUM_RECORD_LENGTH = 1024 * 1024;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* BAM file magic number. This is what is present in the gunzipped version of the file,
|
||
|
|
* which never exists on disk.
|
||
|
|
*/
|
||
|
|
|
||
|
|
static final byte[] BAM_MAGIC = "BAM\1".getBytes();
|
||
|
|
/**
|
||
|
|
* BAM index file magic number.
|
||
|
|
*/
|
||
|
|
static final byte[] BAM_INDEX_MAGIC = "BAI\1".getBytes();
|
||
|
|
}
|