Package htsjdk.beta.plugin.reads
Class ReadsDecoderOptions
java.lang.Object
htsjdk.beta.plugin.reads.ReadsDecoderOptions
- All Implemented Interfaces:
HtsDecoderOptions
Reads decoder options (shared/common).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet theBAMDecoderOptionsfor these options.Get theCRAMDecoderOptionsfor these options.Get the channel transformer for the index resource.Get the channel transformer for the reads resource.Get theValidationStringencyused for these options.booleanGet eagerly decoding state used for these options.booleanGet the file based index cache setting used for these options.booleanGet whether mapping indexes is enabled.setBAMDecoderOptions(BAMDecoderOptions bamDecoderOptions) Set theBAMDecoderOptionsused for these options.setCRAMDecoderOptions(CRAMDecoderOptions cramDecoderOptions) Set theCRAMDecoderOptionsfor these ReadsDecoderOptions.setDecodeEagerly(boolean eagerlyDecode) Set the eagerly decoding state used for these options.setFileBasedIndexCached(boolean fileBasedIndexCached) Set id file based index caching is enabled for these options.setIndexChannelTransformer(Function<SeekableByteChannel, SeekableByteChannel> indexChannelTransformer) Set the channel transformer for the index resource.setMemoryMapIndexes(boolean memoryMapIndexes) Set whether memory mapping indexes is enabled.setReadsChannelTransformer(Function<SeekableByteChannel, SeekableByteChannel> readsChannelTransformer) Set the channel transformer for the reads resource.setValidationStringency(ValidationStringency validationStringency) Set theValidationStringencyused for these options.
-
Constructor Details
-
ReadsDecoderOptions
public ReadsDecoderOptions()
-
-
Method Details
-
getValidationStringency
Get theValidationStringencyused for these options. Defaults toValidationStringency.STRICT.- Returns:
- the
ValidationStringencyused for these options
-
setValidationStringency
Set theValidationStringencyused for these options. Defaults value isValidationStringency.STRICT.- Parameters:
validationStringency- theValidationStringencyused for these options- Returns:
- updated ReadsDecoderOptions
-
isDecodeEagerly
public boolean isDecodeEagerly()Get eagerly decoding state used for these options.- Returns:
- true if eager decoding is enabled, otherwise false
-
setDecodeEagerly
Set the eagerly decoding state used for these options.- Parameters:
eagerlyDecode- true if eagerly decode is set, otherwise false- Returns:
- updated ReadsDecoderOptions
-
isFileBasedIndexCached
public boolean isFileBasedIndexCached()Get the file based index cache setting used for these options.- Returns:
- true if caching is enabled for index files, otherwise false
-
setFileBasedIndexCached
Set id file based index caching is enabled for these options.- Parameters:
fileBasedIndexCached- true to enable caching, otherwise false- Returns:
- updated ReadsDecoderOptions
-
isMemoryMapIndexes
public boolean isMemoryMapIndexes()Get whether mapping indexes is enabled. Defaults to true.- Returns:
- true if indexes are memory mapped, otherwise false
-
setMemoryMapIndexes
Set whether memory mapping indexes is enabled. Defaults to true.- Parameters:
memoryMapIndexes- true if indexes are memory mapped, otherwise false- Returns:
- updated ReadsDecoderOptions
-
getBAMDecoderOptions
Get theBAMDecoderOptionsfor these options.- Returns:
- the
BAMDecoderOptionsfor these options
-
setBAMDecoderOptions
Set theBAMDecoderOptionsused for these options.- Parameters:
bamDecoderOptions- theBAMDecoderOptionsfor these ReadsDecoderOptions- Returns:
- updated ReadsDecoderOptions
-
getCRAMDecoderOptions
Get theCRAMDecoderOptionsfor these options.- Returns:
- the
CRAMDecoderOptionsfor these options
-
setCRAMDecoderOptions
Set theCRAMDecoderOptionsfor these ReadsDecoderOptions.- Parameters:
cramDecoderOptions- theCRAMDecoderOptionsfor these ReadsDecoderOptions- Returns:
- updated ReadsDecoderOptions
-
getReadsChannelTransformer
@InternalAPI public Optional<Function<SeekableByteChannel,SeekableByteChannel>> getReadsChannelTransformer()Get the channel transformer for the reads resource. The channel transformer can be used to implement prefetching for the reads input.- Returns:
- the channel transformer for the reads resource if present, otherwise Optional.empty()
-
setReadsChannelTransformer
@InternalAPI public ReadsDecoderOptions setReadsChannelTransformer(Function<SeekableByteChannel, SeekableByteChannel> readsChannelTransformer) Set the channel transformer for the reads resource. The channel transformer can be used to implement prefetching for the reads input.- Parameters:
readsChannelTransformer- the channel transformer to be used. may be null- Returns:
- updated ReadsDecoderOptions
-
getIndexChannelTransformer
@InternalAPI public Optional<Function<SeekableByteChannel,SeekableByteChannel>> getIndexChannelTransformer()Get the channel transformer for the index resource. The channel transformer can be used to implement prefetching for the index input.- Returns:
- the channel transformer for the index resource if present, otherwise Optional.empty()
-
setIndexChannelTransformer
@InternalAPI public ReadsDecoderOptions setIndexChannelTransformer(Function<SeekableByteChannel, SeekableByteChannel> indexChannelTransformer) Set the channel transformer for the index resource. The channel transformer can be used to implement prefetching for the index input.- Parameters:
indexChannelTransformer- the channel transformer to be used. may be null.- Returns:
- updated ReadsDecoderOptions
-