Package htsjdk.samtools.cram.build
Class Sam2CramRecordFactory
- java.lang.Object
-
- htsjdk.samtools.cram.build.Sam2CramRecordFactory
-
public class Sam2CramRecordFactory extends Object
-
-
Field Summary
Fields Modifier and Type Field Description booleancaptureAllTagsSet<String>captureTagsSet<String>ignoreTagsbooleanpreserveReadNames
-
Constructor Summary
Constructors Constructor Description Sam2CramRecordFactory(byte[] refBases, SAMFileHeader samFileHeader, Version version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CramCompressionRecordcreateCramRecord(SAMRecord record)Create a CramCompressionRecord.longgetBaseCount()longgetFeatureCount()Map<String,Integer>getReadGroupMap()byte[]getRefBases()voidsetRefBases(byte[] refBases)
-
-
-
Constructor Detail
-
Sam2CramRecordFactory
public Sam2CramRecordFactory(byte[] refBases, SAMFileHeader samFileHeader, Version version)
-
-
Method Detail
-
createCramRecord
public CramCompressionRecord createCramRecord(SAMRecord record)
Create a CramCompressionRecord.- Parameters:
record- If the input record does not have an associated SAMFileHeader, it will be updated with the header used for the factory in order to allow reference indices to be resolved.- Returns:
- CramCompressionRecord
-
getRefBases
public byte[] getRefBases()
-
setRefBases
public void setRefBases(byte[] refBases)
-
getBaseCount
public long getBaseCount()
-
getFeatureCount
public long getFeatureCount()
-
-