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 theCRAMReferenceSource
for these options.setReferencePath
(IOPath referencePath) Set the reference path for these options.setReferenceSource
(CRAMReferenceSource referenceSource) Set theCRAMReferenceSource
for these options.
-
Constructor Details
-
CRAMDecoderOptions
public CRAMDecoderOptions()
-
-
Method Details
-
getReferenceSource
Get theCRAMReferenceSource
for these options.- Returns:
- the
CRAMReferenceSource
for these options, or Optional.empty() if none
-
setReferenceSource
Set theCRAMReferenceSource
for these options. Mutually exclusive withsetReferencePath(IOPath)
, which must be set to null in order to set aCRAMReferenceSource
.- Parameters:
referenceSource
- theCRAMReferenceSource
for 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
-