Package org.biojava.nbio.genome.io.fastq
Enum FastqVariant
- All Implemented Interfaces:
 Serializable,Comparable<FastqVariant>,java.lang.constant.Constable
FASTQ sequence format variant.
- Since:
 - 3.0.3
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> - 
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIllumina FASTQ sequence format variant.Sanger FASTQ sequence format variant.Solexa FASTQ sequence format variant. - 
Method Summary
Modifier and TypeMethodDescriptionprotected intconstrain(double qualityScore) Constrain the specified quality score in double precision to the minimum and maximum quality scores in int precision.doubleerrorProbability(char c) Convert the specified quality in ASCII format to an error probability.abstract doubleerrorProbability(int qualityScore) Calculate the error probability given the specified quality score.Return the description of this FASTQ sequence format variant.booleanReturn true if this FASTQ sequence format variant isFASTQ_ILLUMINA.booleanisSanger()Return true if this FASTQ sequence format variant isFASTQ_SANGER.booleanisSolexa()Return true if this FASTQ sequence format variant isFASTQ_SOLEXA.Return the name of this FASTQ sequence format variant inlowercase-with-dashesstyle.abstract intReturn the maximum quality score for this FASTQ sequence format variant.abstract intReturn the minimum quality score for this FASTQ sequence format variant.static FastqVariantparseFastqVariant(String name) Return the FASTQ sequence format variant with the specified name, if any.abstract charquality(int qualityScore) Convert the specified quality score to a quality in ASCII format.abstract intqualityScore(char c) Convert the specified quality in ASCII format to a quality score.abstract intqualityScore(double errorProbability) Convert the specified error probability to a quality score.static FastqVariantReturns the enum constant of this type with the specified name.static FastqVariant[]values()Returns an array containing the constants of this enum type, in the order they are declared. 
- 
Enum Constant Details
- 
FASTQ_SANGER
Sanger FASTQ sequence format variant. - 
FASTQ_SOLEXA
Solexa FASTQ sequence format variant. - 
FASTQ_ILLUMINA
Illumina FASTQ sequence format variant. 
 - 
 - 
Method Details
- 
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
 - an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
 name- the name of the enum constant to be returned.- Returns:
 - the enum constant with the specified name
 - Throws:
 IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
 - 
getDescription
Return the description of this FASTQ sequence format variant. The description will not be null.- Returns:
 - the description of this FASTQ sequence format variant
 
 - 
isSanger
Return true if this FASTQ sequence format variant isFASTQ_SANGER.- Returns:
 - true if this FASTQ sequence format variant is 
FASTQ_SANGER 
 - 
isSolexa
Return true if this FASTQ sequence format variant isFASTQ_SOLEXA.- Returns:
 - true if this FASTQ sequence format variant is 
FASTQ_SOLEXA 
 - 
isIllumina
Return true if this FASTQ sequence format variant isFASTQ_ILLUMINA.- Returns:
 - true if this FASTQ sequence format variant is 
FASTQ_ILLUMINA 
 - 
minimumQualityScore
Return the minimum quality score for this FASTQ sequence format variant.- Returns:
 - the minimum quality score for this FASTQ sequence format variant.
 
 - 
maximumQualityScore
Return the maximum quality score for this FASTQ sequence format variant.- Returns:
 - the maximum quality score for this FASTQ sequence format variant.
 
 - 
qualityScore
Convert the specified quality in ASCII format to a quality score.- Parameters:
 c- quality in ASCII format- Returns:
 - the specified quality in ASCII format converted to a quality score
 
 - 
qualityScore
Convert the specified error probability to a quality score.- Parameters:
 errorProbability- error probability- Returns:
 - the specified error probability converted to a quality score
 - Since:
 - 4.2
 
 - 
quality
Convert the specified quality score to a quality in ASCII format.- Parameters:
 qualityScore- quality score, must be>= minimumQualityScore()and<= maximumQualityScore()- Returns:
 - the quality in ASCII format converted from the specified quality score
 - Since:
 - 3.0.6
 
 - 
errorProbability
Convert the specified quality in ASCII format to an error probability.- Parameters:
 c- quality in ASCII format- Returns:
 - the specified quality in ASCII format converted to an error probability
 
 - 
errorProbability
Calculate the error probability given the specified quality score.- Parameters:
 qualityScore- quality score- Returns:
 - the error probability given the specified quality score
 
 - 
lowercaseName
Return the name of this FASTQ sequence format variant inlowercase-with-dashesstyle.- Returns:
 - the name of this FASTQ sequence format variant in 
lowercase-with-dashesstyle 
 - 
constrain
Constrain the specified quality score in double precision to the minimum and maximum quality scores in int precision.- Parameters:
 qualityScore- quality score in double precision- Returns:
 - the specified quality score in double precision constrained to the minimum and maximum quality scores in int precision
 - Since:
 - 4.2
 
 - 
parseFastqVariant
Return the FASTQ sequence format variant with the specified name, if any. The name may be specified in eitherUPPERCASE_WITH_UNDERSCORESorlowercase-with-dashesstyle.- Parameters:
 name- name- Returns:
 - the FASTQ sequence format variant with the specified name, or 
nullif no such FASTQ sequence format variant exists 
 
 -