public class FastXReader extends Object implements Iterator<FastXEntry>, Iterable<FastXEntry>, Closeable
FastXEntry over and
over for reading the file, so don't directly store it. If you need to store the
resultant FastXEntry object, use the FastXEntry.clone()
method to duplicate the FastXEntry object.
For FASTQ this parser assumes the # of quality symbols is the same (or more,
but should be the same) than the # of sequence characters. The position of linefeeds
makes NO DIFFERENCE to this parser in the sequence or quality characters.| Constructor and Description |
|---|
FastXReader(InputStream is)
Create the FASTX reader.
|
FastXReader(String file)
Create the FASTX reader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the reader.
|
String |
getFileType()
Get the file type (extension for file).
|
boolean |
hasNext()
Check if there are more FASTA entries to read.
|
boolean |
isUseCasavaQualityFilter() |
Iterator<FastXEntry> |
iterator()
Iterator for FASTA entries.
|
FastXEntry |
next()
Return the next FASTA entries.
|
void |
remove()
Does nothing.
|
void |
setUseCasavaQualityFilter(boolean useCasavaQualityFilter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingforEach, spliteratorpublic FastXReader(String file) throws IOException
file - the file that contains the FASTA / FASTQ dataIOException - error reading or the input stream doesn't support "mark"public FastXReader(InputStream is) throws IOException
is - the input stream that contains FASTA / FASTQ data.IOException - error reading or the input stream doesn't support "mark"public String getFileType()
public boolean hasNext()
hasNext in interface Iterator<FastXEntry>public FastXEntry next()
next in interface Iterator<FastXEntry>public boolean isUseCasavaQualityFilter()
public void setUseCasavaQualityFilter(boolean useCasavaQualityFilter)
public void remove()
remove in interface Iterator<FastXEntry>public Iterator<FastXEntry> iterator()
iterator in interface Iterable<FastXEntry>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException - error closingCopyright © 2018 Campagne Laboratory. All rights reserved.