Package htsjdk.samtools
Class SRAFileReader
java.lang.Object
htsjdk.samtools.SamReader.ReaderImplementation
htsjdk.samtools.SRAFileReader
- All Implemented Interfaces:
SamReader.Indexing,SamReader.PrimitiveSamReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Gets an index tagged with the BrowseableBAMIndex interface.Gets a pointer spanning all reads in the BAM file.getIndex()Retrieves the index for the given file type.getIterator(SAMFileSpan chunks) protected SRAIterator.RecordRangeInfobooleanReturns true if the supported index is browseable, meaning the bins in it can be traversed and chunk data inspected and retrieved.booleanhasIndex()iterator(SAMFileSpan chunks) Iterate through the given chunks in the file.query(QueryInterval[] intervals, boolean contained) queryAlignmentStart(String sequence, int start) type()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface htsjdk.samtools.SamReader.PrimitiveSamReader
isQueryable
-
Constructor Details
-
SRAFileReader
-
-
Method Details
-
type
- Specified by:
typein interfaceSamReader.PrimitiveSamReader
-
hasIndex
public boolean hasIndex()- Specified by:
hasIndexin interfaceSamReader.PrimitiveSamReader
-
getIndex
Description copied from interface:SamReader.IndexingRetrieves the index for the given file type. Ensure that the index is of the specified type.- Specified by:
getIndexin interfaceSamReader.Indexing- Specified by:
getIndexin interfaceSamReader.PrimitiveSamReader- Returns:
- An index of the given type.
-
getFileHeader
- Specified by:
getFileHeaderin interfaceSamReader.PrimitiveSamReader
-
getIterator
- Specified by:
getIteratorin interfaceSamReader.PrimitiveSamReader
-
getIterator
- Specified by:
getIteratorin interfaceSamReader.PrimitiveSamReader
-
getFilePointerSpanningReads
Description copied from interface:SamReader.IndexingGets a pointer spanning all reads in the BAM file.- Specified by:
getFilePointerSpanningReadsin interfaceSamReader.Indexing- Specified by:
getFilePointerSpanningReadsin interfaceSamReader.PrimitiveSamReader- Returns:
- Unbounded pointer to the first record, in chunk format.
-
query
- Specified by:
queryin interfaceSamReader.PrimitiveSamReader
-
queryAlignmentStart
- Specified by:
queryAlignmentStartin interfaceSamReader.PrimitiveSamReader
-
queryUnmapped
- Specified by:
queryUnmappedin interfaceSamReader.PrimitiveSamReader
-
close
public void close()- Specified by:
closein interfaceSamReader.PrimitiveSamReader
-
getValidationStringency
- Specified by:
getValidationStringencyin interfaceSamReader.PrimitiveSamReader
-
hasBrowseableIndex
public boolean hasBrowseableIndex()Returns true if the supported index is browseable, meaning the bins in it can be traversed and chunk data inspected and retrieved.- Specified by:
hasBrowseableIndexin interfaceSamReader.Indexing- Returns:
- True if the index supports the BrowseableBAMIndex interface. False otherwise.
-
getBrowseableIndex
Gets an index tagged with the BrowseableBAMIndex interface. Throws an exception if no such index is available.- Specified by:
getBrowseableIndexin interfaceSamReader.Indexing- Returns:
- An index with a browseable interface, if possible.
- Throws:
SAMException- if no such index is available.
-
iterator
Iterate through the given chunks in the file.- Specified by:
iteratorin interfaceSamReader.Indexing- Parameters:
chunks- List of chunks for which to retrieve data.- Returns:
- An iterator over the given chunks.
-
getRecordsRangeInfo
-