complementary method
Returns the complementary strand to this sequence.
Return the reversed complementary strand by setting rev
to true
.
Implementation
String complementary({bool rev = false}) {
String compSeq = this
.seq
.split('')
.map((nuc) => this.type == kDNA ? dnaCompNucs[nuc] : rnaCompNucs[nuc])
.join();
return rev ? super._reversed(seq: compSeq) : compSeq;
}