Package picard.illumina.parser.readers
Class BarcodeFileReader
java.lang.Object
picard.illumina.parser.readers.BarcodeFileReader
- All Implemented Interfaces:
htsjdk.samtools.util.CloseableIterator<String>
,Closeable
,AutoCloseable
,Iterator<String>
public class BarcodeFileReader
extends Object
implements htsjdk.samtools.util.CloseableIterator<String>
Reads a single barcode file line by line and returns the barcode if there was a match or NULL otherwise.
Barcode.txt file Format (consists of tab delimited columns, 1 record per row)
sequence_read Matched(Y/N) BarcodeSequenceMatched
sequence read - the actual bases at barcode position
Matched(y/n) - Y or N indicating if there was a barcode match
BarcodeSequenceMatched - matched barcode sequence (empty if read did not match one of the barcodes).
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface htsjdk.samtools.util.CloseableIterator
stream, toList
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
BarcodeFileReader
-
-
Method Details
-
next
-
hasNext
public boolean hasNext() -
remove
public void remove() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfacehtsjdk.samtools.util.CloseableIterator<String>
-