converted method
(en) Gets a new array whose type has been converted. Orientation does not change. Also, nucleotideInfo is returned as empty.
(ja) 型を変換した新しい配列を取得します。向きは変化しません。 また、nucleotideInfoは空のものが返されます。
type
: return sequence type. DNA or RNA.
Implementation
NucleotideSequence converted(EnumNucleotideSequenceType type) {
List<Nucleotide> rSeq = [];
for (Nucleotide i in sequence) {
rSeq.add(i.converted(type));
}
return NucleotideSequence.fromSeq(rSeq, type: type, direction: direction);
}