Package htsjdk.samtools.sra
Class SRAAlignmentIterator
java.lang.Object
htsjdk.samtools.sra.SRAAlignmentIterator
- All Implemented Interfaces:
CloseableIterator<SAMRecord>,Closeable,AutoCloseable,Iterator<SAMRecord>
Iterator for aligned reads.
Is used from SRAIterator.
Created by andrii.nikitiuk on 9/3/15.
-
Constructor Summary
ConstructorsConstructorDescriptionSRAAlignmentIterator(SRAAccession accession, ngs.ReadCollection run, SAMFileHeader header, ReferenceCache cachedReferences, SRAIterator.RecordRangeInfo recordRangeInfo, Chunk chunk) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Should be implemented to close/release any underlying resources.booleanhasNext()next()voidremove()voidsetValidationStringency(ValidationStringency validationStringency) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface htsjdk.samtools.util.CloseableIterator
stream, toListMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
SRAAlignmentIterator
public SRAAlignmentIterator(SRAAccession accession, ngs.ReadCollection run, SAMFileHeader header, ReferenceCache cachedReferences, SRAIterator.RecordRangeInfo recordRangeInfo, Chunk chunk) - Parameters:
run- opened read collectionheader- sam headercachedReferences- list of cached references shared among all iterators from a single SRAFileReaderrecordRangeInfo- info about record ranges withing SRA archivechunk- used to determine which alignments the iterator should return
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
setValidationStringency
-
close
public void close()Description copied from interface:CloseableIteratorShould be implemented to close/release any underlying resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceCloseableIterator<SAMRecord>
-