complemented method

Nucleotide complemented(
  1. EnumNucleotideSequenceType type
)

Convert to a new complementary base.

  • type : return base type. DNA or RNA.

Implementation

Nucleotide complemented(EnumNucleotideSequenceType type) {
  if (type == EnumNucleotideSequenceType.dna) {
    return Nucleotide(base.complementDNA());
  } else {
    return Nucleotide(base.complementRNA());
  }
}