public final class FastqTools extends Object
Modifier and Type | Method and Description |
---|---|
static SymbolList |
createDNA(Fastq fastq)
Create and return a new DNA
SymbolList from the specified FASTQ formatted sequence. |
static Sequence |
createDNASequence(Fastq fastq)
Create and return a new DNA
Sequence from the specified FASTQ formatted sequence. |
static PhredSequence |
createPhredSequence(Fastq fastq)
Create and return a new
PhredSequence from the specified FASTQ formatted sequence. |
static SymbolList |
createQualityScores(Fastq fastq)
Create and return a new
SymbolList of quality scores from the specified FASTQ formatted sequence. |
static Distribution[] |
createSymbolDistribution(Fastq fastq)
Create and return a new array of symbol
Distribution s from the specified FASTQ formatted sequence. |
static Iterable<Double> |
errorProbabilities(Fastq fastq)
Return the error probabilities from the specified FASTQ formatted sequence.
|
static double[] |
errorProbabilities(Fastq fastq,
double[] errorProbabilities)
Copy the error probabilities from the specified FASTQ formatted sequence into the specified double array.
|
static Iterable<Integer> |
qualityScores(Fastq fastq)
Return the quality scores from the specified FASTQ formatted sequence.
|
static int[] |
qualityScores(Fastq fastq,
int[] qualityScores)
Copy the quality scores from the specified FASTQ formatted sequence into the specified int array.
|
public static SymbolList createDNA(Fastq fastq) throws IllegalSymbolException
SymbolList
from the specified FASTQ formatted sequence.fastq
- FASTQ formatted sequence, must not be nullSymbolList
from the specified FASTQ formatted sequenceIllegalSymbolException
- if an illegal symbol is foundpublic static SymbolList createQualityScores(Fastq fastq) throws IllegalSymbolException
SymbolList
of quality scores from the specified FASTQ formatted sequence.fastq
- FASTQ formatted sequence, must not be nullSymbolList
of quality scores from the specified FASTQ formatted sequenceIllegalSymbolException
- if an illegal symbol is foundpublic static Sequence createDNASequence(Fastq fastq) throws IllegalSymbolException
Sequence
from the specified FASTQ formatted sequence.fastq
- FASTQ formatted sequence, must not be nullSequence
from the specified FASTQ formatted sequenceIllegalSymbolException
- if an illegal symbol is foundpublic static PhredSequence createPhredSequence(Fastq fastq) throws IllegalAlphabetException, IllegalSymbolException
PhredSequence
from the specified FASTQ formatted sequence.
Only Sanger variant FASTQ formatted sequences are supported.fastq
- FASTQ formatted sequence, must not be null and must be Sanger variantPhredSequence
from the specified FASTQ formatted sequenceIllegalAlphabetException
- if an illegal alphabet is usedIllegalSymbolException
- if an illegal symbol is foundpublic static Distribution[] createSymbolDistribution(Fastq fastq) throws IllegalAlphabetException, IllegalSymbolException
Distribution
s from the specified FASTQ formatted sequence.
Only Sanger variant FASTQ formatted sequences are supported.fastq
- FASTQ formatted sequence, must not be null and must be Sanger variantDistribution
s from the specified FASTQ formatted sequenceIllegalAlphabetException
- if an illegal alphabet is usedIllegalSymbolException
- if an illegal symbol is foundpublic static Iterable<Integer> qualityScores(Fastq fastq)
fastq
- FASTQ formatted sequence, must not be nullpublic static int[] qualityScores(Fastq fastq, int[] qualityScores)
fastq
- FASTQ formatted sequence, must not be nullqualityScores
- int array of quality scores, must not be null and must be the same
length as the FASTQ formatted sequence qualitypublic static Iterable<Double> errorProbabilities(Fastq fastq)
fastq
- FASTQ formatted sequence, must not be nullpublic static double[] errorProbabilities(Fastq fastq, double[] errorProbabilities)
fastq
- FASTQ formatted sequence, must not be nullerrorProbabilities
- double array of error probabilities, must not be null and must be the same
length as the FASTQ formatted sequence qualityCopyright © 2014 BioJava. All rights reserved.