Package htsjdk.samtools
Class SAMFileSource
java.lang.Object
htsjdk.samtools.SAMFileSource
Represents the origin of a SAM record.
-
Constructor Summary
ConstructorDescriptionSAMFileSource
(SamReader reader, SAMFileSpan filePointer) Create a new SAMFileSource with the given reader and file pointer. -
Method Summary
Modifier and TypeMethodDescriptionA pointer to the region on disk from which the read originated.Retrieves the reader from which this read was initially retrieved.
-
Constructor Details
-
SAMFileSource
Create a new SAMFileSource with the given reader and file pointer.- Parameters:
reader
- reader.filePointer
- File pointer.
-
-
Method Details
-
getReader
Retrieves the reader from which this read was initially retrieved.- Returns:
- The reader.
-
getFilePointer
A pointer to the region on disk from which the read originated.- Returns:
- A pointer within the file.
-