public final class RandomAccessPairedFastqReader extends Object implements SequenceReader<PairedRead>, AutoCloseable
| Constructor and Description |
|---|
RandomAccessPairedFastqReader(RandomAccessFastqReader reader1,
RandomAccessFastqReader reader2) |
RandomAccessPairedFastqReader(RandomAccessFile file1,
FileIndex index1,
RandomAccessFile file2,
FileIndex index2) |
RandomAccessPairedFastqReader(RandomAccessFile file1,
FileIndex index1,
RandomAccessFile file2,
FileIndex index2,
boolean replaceWildcards,
boolean lazyReads) |
RandomAccessPairedFastqReader(String file1,
String index1,
String file2,
String index2) |
RandomAccessPairedFastqReader(String file1,
String index1,
String file2,
String index2,
boolean replaceWildcards,
boolean lazyReads) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getNumberOfReads()
For sequential readers returns the number of reads read till this moment, after reader is exhausted returns total
number of reads.
|
void |
seekToRecord(long recordNumber) |
PairedRead |
take() |
PairedRead |
take(long recordNumber) |
public RandomAccessPairedFastqReader(String file1, String index1, String file2, String index2) throws IOException
IOExceptionpublic RandomAccessPairedFastqReader(RandomAccessFile file1, FileIndex index1, RandomAccessFile file2, FileIndex index2) throws IOException
IOExceptionpublic RandomAccessPairedFastqReader(String file1, String index1, String file2, String index2, boolean replaceWildcards, boolean lazyReads) throws IOException
IOExceptionpublic RandomAccessPairedFastqReader(RandomAccessFile file1, FileIndex index1, RandomAccessFile file2, FileIndex index2, boolean replaceWildcards, boolean lazyReads) throws IOException
IOExceptionpublic RandomAccessPairedFastqReader(RandomAccessFastqReader reader1, RandomAccessFastqReader reader2)
public long getNumberOfReads()
SequenceReaderThis method is thread-safe.
getNumberOfReads in interface SequenceReader<PairedRead>public void seekToRecord(long recordNumber)
throws IOException
IOExceptionpublic PairedRead take(long recordNumber)
public PairedRead take()
take in interface cc.redberry.pipe.OutputPort<PairedRead>public void close()
close in interface AutoCloseableCopyright © 2018. All rights reserved.