Package htsjdk.beta.codecs.reads.cram
Class CRAMDecoderOptions
java.lang.Object
htsjdk.beta.codecs.reads.cram.CRAMDecoderOptions
Decoder options specific to CRAM decoders.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the reference path for these options.Get theCRAMReferenceSourcefor these options.setReferencePath(IOPath referencePath) Set the reference path for these options.setReferenceSource(CRAMReferenceSource referenceSource) Set theCRAMReferenceSourcefor these options.
-
Constructor Details
-
CRAMDecoderOptions
public CRAMDecoderOptions()
-
-
Method Details
-
getReferenceSource
Get theCRAMReferenceSourcefor these options.- Returns:
- the
CRAMReferenceSourcefor these options, or Optional.empty() if none
-
setReferenceSource
Set theCRAMReferenceSourcefor these options. Mutually exclusive withsetReferencePath(IOPath), which must be set to null in order to set aCRAMReferenceSource.- Parameters:
referenceSource- theCRAMReferenceSourcefor these options. May be null.- Returns:
- updated CRAMDecoderOptions
- Throws:
IllegalArgumentException- if a reference path is already set on these options
-
getReferencePath
Get the reference path for these options.- Returns:
- the reference path for these options, or Optional.empty() if none.
-
setReferencePath
Set the reference path for these options. Mutually exclusive withsetReferenceSource(CRAMReferenceSource), which must be set to null in order to set a reference path.- Parameters:
referencePath- The path to use. may be null.- Returns:
- updated CRAMDecoderOptions
- Throws:
IllegalArgumentException- if a reference source is already set on these options
-