org.biojava.bio.program.fastq
public final class SangerFastqReader extends Object
FastqVariant.FASTQ_SANGER formatted sequences.| Constructor and Description |
|---|
SangerFastqReader() |
| Modifier and Type | Method and Description |
|---|---|
protected FastqVariant |
getVariant()
Return the FASTQ sequence format variant for this reader.
|
Iterable<Fastq> |
read(File file)
Read zero or more FASTQ formatted sequences from the specified file.
|
Iterable<Fastq> |
read(InputStream inputStream)
Read zero or more FASTQ formatted sequences from the specified input stream.
|
Iterable<Fastq> |
read(URL url)
Read zero or more FASTQ formatted sequences from the specified url.
|
protected void |
validateDescription(FastqBuilder builder,
String description,
int lineNumber)
Validate the specified description.
|
protected void |
validateQuality(FastqBuilder builder,
String quality,
int lineNumber)
Validate the specified quality scores.
|
protected void |
validateRepeatDescription(FastqBuilder builder,
String repeatDescription,
int lineNumber)
Validate the specified repeat description.
|
protected void |
validateSequence(FastqBuilder builder,
String sequence,
int lineNumber)
Validate the specified sequence.
|
protected FastqVariant getVariant()
protected void validateDescription(FastqBuilder builder, String description, int lineNumber) throws IOException
builder - FASTQ formatted sequence builder, will not be nulldescription - description to validate, will not be nulllineNumber - current line number in input streamIOException - if the specified description is not validprotected void validateSequence(FastqBuilder builder, String sequence, int lineNumber) throws IOException
builder - FASTQ formatted sequence builder, will not be nullsequence - sequence to validate, will not be nulllineNumber - current line number in input streamIOException - if the specified sequence is not validprotected void validateRepeatDescription(FastqBuilder builder, String repeatDescription, int lineNumber) throws IOException
builder - FASTQ formatted sequence builder, will not be nullrepeatDescription - repeat description to validate, will not be nulllineNumber - current line number in input streamIOException - if the specified repeat description is not validprotected void validateQuality(FastqBuilder builder, String quality, int lineNumber) throws IOException
builder - FASTQ formatted sequence builder, will not be nullquality - quality scores to validate, will not be nulllineNumber - current line number in input streamIOException - if the specified quality scores are not validpublic final Iterable<Fastq> read(File file) throws IOException
read in interface FastqReaderfile - file to read from, must not be nullIOException - if an IO error occurspublic final Iterable<Fastq> read(URL url) throws IOException
read in interface FastqReaderurl - URL to read from, must not be nullIOException - if an IO error occurspublic final Iterable<Fastq> read(InputStream inputStream) throws IOException
read in interface FastqReaderinputStream - input stream to read from, must not be nullIOException - if an IO error occurs