public class CompressionHeaderFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ALL_BYTES_USED |
static int |
BYTE_SPACE_SIZE |
| Constructor and Description |
|---|
CompressionHeaderFactory() |
| Modifier and Type | Method and Description |
|---|---|
CompressionHeader |
build(java.util.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(java.util.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