public class FASTA<T extends BioSequence> extends ReadableSeqFormatBase<T> implements WritableSeqFormat<T>
Constructor and Description |
---|
FASTA() |
FASTA(BioSequenceFactory<T> inSeqFactory) |
Modifier and Type | Method and Description |
---|---|
Integer |
getLineLength() |
static Logger |
getLogger() |
boolean |
hasJanusDelimiter()
A format has a Janus delimiter if the line that indicates that the previous record is over is also part of the
next record.
|
boolean |
isEndOfRecord(String inLine) |
T |
readRecord(BufferedReader inReader) |
FASTA<T> |
setLineLength(Integer inValue) |
FASTA<T> |
setMaxExceptionsPerRecord(int inValue)
Specify the maximum number of Exceptions to tolerate per record.
|
String |
write(Collection<T> inSeqs) |
String |
write(T inSeq) |
void |
write(T inSeq,
OutputStream inStream) |
void |
write(T inSeq,
Writer inWriter) |
getBioSequenceFactory, read, read, readRecord
public FASTA()
public FASTA(BioSequenceFactory<T> inSeqFactory)
public FASTA<T> setMaxExceptionsPerRecord(int inValue)
inValue
- the maximum number of Exceptions to tolerate per recordpublic FASTA<T> setLineLength(Integer inValue)
public Integer getLineLength()
public T readRecord(BufferedReader inReader) throws SeqIOException
readRecord
in interface ReadableSeqFormat<T extends BioSequence>
SeqIOException
public boolean isEndOfRecord(String inLine)
isEndOfRecord
in interface ReadableSeqFormat<T extends BioSequence>
public boolean hasJanusDelimiter()
ReadableSeqFormat
hasJanusDelimiter
in interface ReadableSeqFormat<T extends BioSequence>
public String write(Collection<T> inSeqs) throws SeqIOException
SeqIOException
public String write(T inSeq) throws SeqIOException
write
in interface WritableSeqFormat<T extends BioSequence>
SeqIOException
public void write(T inSeq, OutputStream inStream) throws SeqIOException
SeqIOException
public void write(T inSeq, Writer inWriter) throws SeqIOException
write
in interface WritableSeqFormat<T extends BioSequence>
SeqIOException
jataylor@hairyfatguy.com