Class DNA

java.lang.Object
edu.cnm.deepdive.DNA

public abstract class DNA
extends Object
Includes the static method complement(String), which implements a simple string converter that replaces the nucleobase symbols (A,T, C, and G), with their respective complements (T, A, G, and C, respectively), in a string representing a DNA sequence/subsequence. Implementation of these methods is included in the practical exam materials of the Deep Dive Coding Java training programs.
  • Method Details

    • complement

      public static String complement​(String sequence)
      Converts and returns the DNA complement of sequence, with each nucleobase symbol (character) replaced by its complementary symbol.
      Parameters:
      sequence - DNA sequence.
      Returns:
      Complementary DNA sequence.