public interface CRAMReferenceSource
Modifier and Type | Method and Description |
---|---|
byte[] |
getReferenceBases(SAMSequenceRecord sequenceRecord,
boolean tryNameVariants)
Get the reference bases for an entire reference contig.
|
byte[] |
getReferenceBasesByRegion(SAMSequenceRecord sequenceRecord,
int zeroBasedStart,
int requestedRegionLength)
Get the reference bases for a region of a reference contig.
|
byte[] getReferenceBases(SAMSequenceRecord sequenceRecord, boolean tryNameVariants)
sequenceRecord
- the SAMSequenceRecord identifying the reference being requestedtryNameVariants
- if true, attempt to match the requested sequence name against the reference by
using common name variations, such as adding or removing a leading "chr" prefix
from the requested name. if false, use exact matchUtils.normalizeBase(byte)
)
bases representing the requested sequence, or null if the sequence cannot be foundbyte[] getReferenceBasesByRegion(SAMSequenceRecord sequenceRecord, int zeroBasedStart, int requestedRegionLength)
requestedRegionLength
. It is the caller's responsibility to detect and handle
this case.sequenceRecord
- the SAMSequenceRecord for the reference contig being requestedzeroBasedStart
- the zero based offset of the starting reference base, must be >= 0requestedRegionLength
- the length of the requested reference region