Package edu.cnm.deepdive
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 Summary
Modifier and Type Method Description static String
complement(String sequence)
Converts and returns the DNA complement ofsequence
, with each nucleobase symbol (character) replaced by its complementary symbol.
-
Method Details
-
complement
Converts and returns the DNA complement ofsequence
, with each nucleobase symbol (character) replaced by its complementary symbol.- Parameters:
sequence
- DNA sequence.- Returns:
- Complementary DNA sequence.
-