public class FASTQ<T extends NucleicAcid> extends ReadableSeqFormatBase<T> implements WritableSeqFormat<T>
"A FASTQ file normally uses four lines per sequence. Line 1 begins with a '@' character and is followed by a sequence identifier and an optional description (like a FASTA title line). Line 2 is the raw sequence letters. Line 3 begins with a '+' character and is optionally followed by the same sequence identifier (and any description) again. Line 4 encodes the quality values for the sequence in Line 2, and must contain the same number of symbols as letters in the sequence."
Constructor and Description |
---|
FASTQ() |
FASTQ(BioSequenceFactory<T> inSeqFactory) |
Modifier and Type | Method and Description |
---|---|
SeqQualityScoreScheme |
getScheme() |
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) |
protected void |
parseHeaderLine(String inLine,
T inSeq) |
T |
readRecord(BufferedReader inReader) |
FASTQ<T> |
setScheme(SeqQualityScoreScheme inValue) |
String |
write(T inSeq) |
void |
write(T inSeq,
OutputStream inStream) |
void |
write(T inSeq,
Writer inWriter) |
getBioSequenceFactory, read, read, readRecord
public FASTQ()
public FASTQ(BioSequenceFactory<T> inSeqFactory)
public FASTQ<T> setScheme(SeqQualityScoreScheme inValue)
public SeqQualityScoreScheme getScheme()
public T readRecord(BufferedReader inReader) throws SeqIOException
readRecord
in interface ReadableSeqFormat<T extends NucleicAcid>
SeqIOException
public boolean isEndOfRecord(String inLine)
isEndOfRecord
in interface ReadableSeqFormat<T extends NucleicAcid>
public boolean hasJanusDelimiter()
ReadableSeqFormat
hasJanusDelimiter
in interface ReadableSeqFormat<T extends NucleicAcid>
public String write(T inSeq) throws SeqIOException
write
in interface WritableSeqFormat<T extends NucleicAcid>
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 NucleicAcid>
SeqIOException
protected void parseHeaderLine(String inLine, T inSeq)
jataylor@hairyfatguy.com