complemented method

(en) Get the complementary sequence. Also, nucleotideInfo is returned as empty.

(ja) 相補的な配列を取得します。 また、nucleotideInfoは空のものが返されます。

  • type : return sequence type. DNA or RNA.

Implementation

NucleotideSequence complemented(EnumNucleotideSequenceType type) {
  List<Nucleotide> rSeq = [];
  for (Nucleotide i in sequence) {
    rSeq.add(i.complemented(type));
  }
  return NucleotideSequence.fromSeq(rSeq,
      type: type, direction: direction.reversed());
}