readingFrames method
Returns six reading frames from this sequence.
Implementation
List<String> readingFrames() {
List<String> readingFrames = [];
for (var i = 0; i < 3; i++) {
// Generate three forwards reading frames.
readingFrames.add(translate(startIdx: i)[kAASeq]);
// Generate three backwards reading frames.
readingFrames.add(translate(revComp: true, startIdx: i)[kAASeq]);
}
return readingFrames;
}