Package htsjdk.samtools.reference
Class ReferenceSequenceFileWalker
java.lang.Object
htsjdk.samtools.reference.ReferenceSequenceFileWalker
- All Implemented Interfaces:
Closeable
,AutoCloseable
Manages a ReferenceSequenceFile. Loads the requested sequence, ensuring that
access is in order, and confirming that sequence name and index agree.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ReferenceSequenceFileWalker
-
ReferenceSequenceFileWalker
-
ReferenceSequenceFileWalker
-
-
Method Details
-
get
Ensure that the requested sequence is loaded. Throws an exception if out-of-order request is made, or if there is a mismatch between the requested name and the name found in the ReferenceSequenceFile -
get
Get reference sequence without validating name or length. This is OK if the entire sequence dictionary was validated before reading sequences. -
getSequenceDictionary
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-