Enum Class Nucleotide
- All Implemented Interfaces:
Serializable, Comparable<Nucleotide>, Constable
Nucleotide bases for DNA/RNA.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the Watson-Crick complement.static NucleotidefromSymbol(char symbol) Looks up nucleotide by symbol.static doubleCalculates GC content of a DNA sequence.doublegetName()getType()booleanisInDNA()booleanisInRNA()booleanisPurine()booleanstatic doublemeltingTemperature(String sequence, double saltMolar) Estimates melting temperature (>14 bp, salt-adjusted).static doublemeltingTemperatureSimple(String sequence) Estimates melting temperature of short DNA (invalid input: '<' 14 bp).static StringreverseComplement(String sequence) Generates reverse complement of a DNA sequence.toRNA()Returns RNA transcript base.static Stringtranscribe(String dnaSequence) Transcribes DNA to RNA.static NucleotideReturns the enum constant of this class with the specified name.static Nucleotide[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADENINE
-
GUANINE
-
CYTOSINE
-
THYMINE
-
URACIL
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getSymbol
-
getName
-
getType
-
getBaseMass
public double getBaseMass() -
isInDNA
public boolean isInDNA() -
isInRNA
public boolean isInRNA() -
isPurine
public boolean isPurine() -
isPyrimidine
public boolean isPyrimidine() -
complement
Returns the Watson-Crick complement. -
toRNA
Returns RNA transcript base. -
fromSymbol
Looks up nucleotide by symbol. -
gcContent
Calculates GC content of a DNA sequence. -
meltingTemperatureSimple
Estimates melting temperature of short DNA (invalid input: '<' 14 bp). Tm = 2(A+T) + 4(G+C) °C -
meltingTemperature
Estimates melting temperature (>14 bp, salt-adjusted). Tm = 81.5 + 16.6*log10([Na+]) + 0.41*(%GC) - 675/length -
reverseComplement
-
transcribe
-