public class CompressionHeaderFactory extends Object
Modifier and Type | Field | Description |
---|---|---|
static int |
ALL_BYTES_USED |
|
static int |
BYTE_SPACE_SIZE |
Constructor | Description |
---|---|
CompressionHeaderFactory() |
Modifier and Type | Method | Description |
---|---|---|
CompressionHeader |
build(List<CramCompressionRecord> records,
SubstitutionMatrix substitutionMatrix,
boolean sorted) |
Decides on compression methods to use for the given records.
|
public static final int BYTE_SPACE_SIZE
public static final int ALL_BYTES_USED
public CompressionHeader build(List<CramCompressionRecord> records, SubstitutionMatrix substitutionMatrix, boolean sorted)
records
- the data to be compressedsubstitutionMatrix
- a matrix of base substitution frequencies, can be null, in
which case it is re-calculated.sorted
- if true the records are assumed to be sorted by alignment
positionCompressionHeader
object
describing the encoding chosen for the data