Count
class NucleotideCount {
static count(strand) {
def nucleotides = ['A': 0, 'C': 0, 'G': 0, 'T': 0].withDefault {throw new ArithmeticException()}
strand.each { nucleotides[it] += 1}
nucleotides
}
}
class NucleotideCount {
static count(strand) {
def nucleotides = ['A': 0, 'C': 0, 'G': 0, 'T': 0].withDefault {throw new ArithmeticException()}
strand.each { nucleotides[it] += 1}
nucleotides
}
}
Thank you, friend!
I'm @steem.history, who is steem witness.
Thank you for witnessvoting for me.
please click it!
(Go to https://steemit.com/~witnesses and type fbslo at the bottom of the page)
The weight is reduced because of the lack of Voting Power. If you vote for me as a witness, you can get my little vote.