Enum Class Nucleotide

java.lang.Object
java.lang.Enum<Nucleotide>
org.episteme.natural.chemistry.biochemistry.Nucleotide
All Implemented Interfaces:
Serializable, Comparable<Nucleotide>, Constable

public enum Nucleotide extends Enum<Nucleotide>
Nucleotide bases for DNA/RNA.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Enum Constant Details

  • Method Details

    • values

      public static Nucleotide[] 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

      public static Nucleotide valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getSymbol

      public String getSymbol()
    • getName

      public String getName()
    • getType

      public String getType()
    • getBaseMass

      public double getBaseMass()
    • isInDNA

      public boolean isInDNA()
    • isInRNA

      public boolean isInRNA()
    • isPurine

      public boolean isPurine()
    • isPyrimidine

      public boolean isPyrimidine()
    • complement

      public Nucleotide complement()
      Returns the Watson-Crick complement.
    • toRNA

      public Nucleotide toRNA()
      Returns RNA transcript base.
    • fromSymbol

      public static Nucleotide fromSymbol(char symbol)
      Looks up nucleotide by symbol.
    • gcContent

      public static double gcContent(String sequence)
      Calculates GC content of a DNA sequence.
    • meltingTemperatureSimple

      public static double meltingTemperatureSimple(String sequence)
      Estimates melting temperature of short DNA (invalid input: '<' 14 bp). Tm = 2(A+T) + 4(G+C) °C
    • meltingTemperature

      public static double meltingTemperature(String sequence, double saltMolar)
      Estimates melting temperature (>14 bp, salt-adjusted). Tm = 81.5 + 16.6*log10([Na+]) + 0.41*(%GC) - 675/length
    • reverseComplement

      public static String reverseComplement(String sequence)
      Generates reverse complement of a DNA sequence.
    • transcribe

      public static String transcribe(String dnaSequence)
      Transcribes DNA to RNA.