public class CRAMRecordReadFeatures
extends java.lang.Object
CRAMCompressionRecord
.Constructor and Description |
---|
CRAMRecordReadFeatures()
Create a CRAMRecordReadFeatures with no actual read features (i.e.
|
CRAMRecordReadFeatures(java.util.List<ReadFeature> readFeatures)
Create a CRAMRecordReadFeatures from a list of read features consumed from a stream.
|
CRAMRecordReadFeatures(SAMRecord samRecord,
byte[] bamReadBases,
byte[] refBases)
Create the read features for a given SAMRecord.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getAlignmentEnd(int alignmentStart,
int readLength) |
Cigar |
getCigarForReadFeatures(int readLength)
Get a Cigar fo this set of read features.
|
java.util.List<ReadFeature> |
getReadFeaturesList() |
int |
hashCode() |
static byte[] |
restoreReadBases(java.util.List<ReadFeature> readFeatures,
boolean isUnknownBases,
int readAlignmentStart,
int readLength,
byte[] referenceBases,
int zeroBasedReferenceOffset,
SubstitutionMatrix substitutionMatrix)
Get the set of readBases given these read features.
|
public CRAMRecordReadFeatures()
public CRAMRecordReadFeatures(java.util.List<ReadFeature> readFeatures)
readFeatures
- public CRAMRecordReadFeatures(SAMRecord samRecord, byte[] bamReadBases, byte[] refBases)
samRecord
- the SAMRecord
for which to create read featuresbamReadBases
- a modifiable copy of the readbases from the original SAM/BAM record, with the individual
bases mapped to BAM bases (upper case)refBases
- the reference bases for the entire reference contig to which this record is mappedpublic final java.util.List<ReadFeature> getReadFeaturesList()
public int getAlignmentEnd(int alignmentStart, int readLength)
public Cigar getCigarForReadFeatures(int readLength)
readLength
- public static byte[] restoreReadBases(java.util.List<ReadFeature> readFeatures, boolean isUnknownBases, int readAlignmentStart, int readLength, byte[] referenceBases, int zeroBasedReferenceOffset, SubstitutionMatrix substitutionMatrix)
isUnknownBases
- readAlignmentStart
- 1-based alignment start for this recordreadLength
- referenceBases
- zeroBasedReferenceOffset
- substitutionMatrix
- public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object