Sha256: 13959dd0c0ca3a9d5fe09b7317452ff78483b7fe57e45a34ec90cb3a3e9db3fd
Contents?: true
Size: 333 Bytes
Versions: 217
Compression:
Stored size: 333 Bytes
Contents
function! NucleotideCount(strand) abort let counts = { \ 'A': 0, \ 'C': 0, \ 'G': 0, \ 'T': 0, \ } if a:strand =~# '[^ACGT]' throw 'invalid nucleotide in strand' endif for nucleotide in split(a:strand, '\zs') let counts[nucleotide] += 1 endfor return counts endfunction
Version data entries
217 entries across 217 versions & 1 rubygems