Package htsjdk.samtools.cram.structure
Class CramHeader
java.lang.Object
htsjdk.samtools.cram.structure.CramHeader
A CRAM file header, including the file format definition (including CRAM version and content id),
and the SAMFileHeader.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final byte[] -
Constructor Summary
ConstructorsConstructorDescriptionCramHeader(CRAMVersion cramVersion, String id) Create a newCramHeaderobject with the specified version and id. -
Method Summary
-
Field Details
-
MAGIC
public static final byte[] MAGIC -
CRAM_MAGIC_LENGTH
public static final int CRAM_MAGIC_LENGTH -
CRAM_ID_LENGTH
public static final int CRAM_ID_LENGTH- See Also:
-
CRAM_VERSION_LENGTH
public static final int CRAM_VERSION_LENGTH- See Also:
-
CRAM_HEADER_LENGTH
public static final int CRAM_HEADER_LENGTH
-
-
Constructor Details
-
CramHeader
Create a newCramHeaderobject with the specified version and id. The id field by default is guaranteed to be byte[20].- Parameters:
cramVersion- the CRAM version to assumeid- an identifier of the content associated with this header
-
-
Method Details