Class FastqFileIterator
java.lang.Object
org.snpeff.fileIterator.FastqFileIterator
- All Implemented Interfaces:
Iterable<org.biojava.nbio.genome.io.fastq.Fastq>, Iterator<org.biojava.nbio.genome.io.fastq.Fastq>
public class FastqFileIterator
extends Object
implements Iterable<org.biojava.nbio.genome.io.fastq.Fastq>, Iterator<org.biojava.nbio.genome.io.fastq.Fastq>
Opens a fastq file and iterates over all fastq sequences in the file
Unlike BioJava's version, this one does NOT load all sequences in
memory. Thus it allows to process much larger files
- Author:
- pcingola
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFastqFileIterator(InputStream inStream, org.biojava.nbio.genome.io.fastq.FastqVariant variant) FastqFileIterator(String fastqFileName) FastqFileIterator(String fastqFileName, org.biojava.nbio.genome.io.fastq.FastqVariant variant) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
debug
public static boolean debug
-
-
Constructor Details
-
FastqFileIterator
public FastqFileIterator(InputStream inStream, org.biojava.nbio.genome.io.fastq.FastqVariant variant) -
FastqFileIterator
-
FastqFileIterator
public FastqFileIterator(String fastqFileName, org.biojava.nbio.genome.io.fastq.FastqVariant variant)
-
-
Method Details
-
close
public void close()Close file -
getLineNum
public int getLineNum() -
hasNext
-
iterator
-
next
-
remove
-