public class FASTAFileReaderImpl extends net.sf.kerner.utils.io.buffered.AbstractBufferedReader implements FASTAFileReader
| Modifier and Type | Field and Description |
|---|---|
protected char[] |
alphabet
Alphabet that is used for sequence validity checking.
|
static char[] |
DNA_ALPHABET
A default alphabet for DNA.
|
static char[] |
DNA_ALPHABET_IGNORE_CASE
A default alphabet for DNA.
|
static char[] |
DNA_ALPHABET_IGNORE_CASE_STRICT
A default alphabet for DNA.
|
static char[] |
DNA_ALPHABET_STRICT
A default alphabet for DNA.
|
| Constructor and Description |
|---|
FASTAFileReaderImpl(BufferedReader reader)
Builds a new
FASTAFileReaderImpl. |
FASTAFileReaderImpl(BufferedReader reader,
char[] alphabet) |
FASTAFileReaderImpl(File file)
Builds a new
FASTAFileReaderImpl. |
FASTAFileReaderImpl(File file,
char[] alphabet) |
FASTAFileReaderImpl(InputStream stream)
Builds a new
FASTAFileReaderImpl. |
FASTAFileReaderImpl(InputStream stream,
char[] alphabet) |
FASTAFileReaderImpl(Reader reader)
Builds a new
FASTAFileReaderImpl. |
FASTAFileReaderImpl(Reader reader,
char[] alphabet) |
| Modifier and Type | Method and Description |
|---|---|
FASTAElementIterator |
getIterator() |
FASTAFile |
read()
Reads all
FASTAElements at once in one FASTAFile. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic static final char[] DNA_ALPHABET_IGNORE_CASE
{ 'A', 'a', 'T', 't','G', 'g', 'C', 'c', 'N', 'n' }
public static final char[] DNA_ALPHABET_IGNORE_CASE_STRICT
{ 'A', 'a', 'T', 't','G', 'g', 'C', 'c'}
public static final char[] DNA_ALPHABET
{ 'A', 'T', 'G', 'C', 'N' }
public static final char[] DNA_ALPHABET_STRICT
{ 'A', 'T', 'G', 'C' }
protected final char[] alphabet
public FASTAFileReaderImpl(BufferedReader reader)
FASTAFileReaderImpl. this
FASTAFileReaderImpl will not perform any sequence validation.reader - reader from which stream is readpublic FASTAFileReaderImpl(BufferedReader reader, char[] alphabet)
public FASTAFileReaderImpl(File file) throws IOException
FASTAFileReaderImpl. this
FASTAFileReaderImpl will not perform any sequence validation.file - file from which stream is readIOExceptionpublic FASTAFileReaderImpl(File file, char[] alphabet) throws IOException
IOExceptionpublic FASTAFileReaderImpl(InputStream stream)
FASTAFileReaderImpl. this
FASTAFileReaderImpl will not perform any sequence validation.stream - stream from which is readpublic FASTAFileReaderImpl(InputStream stream, char[] alphabet)
public FASTAFileReaderImpl(Reader reader)
FASTAFileReaderImpl. this
FASTAFileReaderImpl will not perform any sequence validation.reader - reader from which stream is readpublic FASTAFileReaderImpl(Reader reader, char[] alphabet)
public FASTAElementIterator getIterator() throws IOException
getIterator in interface FASTAFileReadergetIterator in interface net.sf.kerner.utils.io.buffered.IOIterable<FASTAElement>IOExceptionpublic FASTAFile read() throws IOException
FASTAFileReaderFASTAElements at once in one FASTAFile.
Use this with care, since FASTA files can be huge!
read in interface FASTAFileReaderFASTAFile that has been readIOExceptionCopyright © 2013. All Rights Reserved.