Sha256: 5cc23950f3a715ba8cddaddbbe7c1daa410e9ec3226c58d085e066b33f53eac3
Contents?: true
Size: 259 Bytes
Versions: 257
Compression:
Stored size: 259 Bytes
Contents
function count_nucleotides(strand::AbstractString) counter = Dict('A' => 0, 'C' => 0, 'G' => 0, 'T' => 0) for sym in strand sym in keys(counter) || error("Invalid nucleotide in strand") counter[sym] += 1 end return counter end
Version data entries
257 entries across 257 versions & 1 rubygems