gcContent method
Returns the percentage of Guanine and Cytosine nucleotides in this sequence.
Implementation
double gcContent() {
int gcCount = 0;
this.seq.split('').forEach((nuc) {
if (nuc == 'G' || nuc == 'C') {
gcCount++;
}
});
return double.parse(
((gcCount / this._len) * 100).toStringAsFixed(2),
);
}