Forked from c-guzman/rosalind_counting_DNA_nucleotides.nim
Created
February 28, 2016 23:49
-
-
Save def-/1c7210ff7858d2d20374 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC" | |
var A, C, G, T = 0 | |
for letter in data: | |
case letter | |
of 'A': inc A | |
of 'C': inc C | |
of 'G': inc G | |
of 'T': inc T | |
else: discard | |
echo A, " ", C, " ", G, " ", T |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment