Skip to content
Snippets Groups Projects
Select Git revision
  • 7842838516e232ce84154c6b9b7f3314962706f9
  • master default protected
2 results

vectors.c

Blame
  • Counting DNA Nucleotides.ipynb 1.34 KiB

    Rosalind Challenges

    Counting DNA Nucleotides

    In [2]:
    with open('Counting DNA Nucleotides Data.txt') as f:
        dnastr = f.readline()
    In [3]:
    A=0;T=0;G=0;C=0;
    for symb in dnastr:
        if(symb=='A'): A += 1
        if(symb=='T'): T += 1
        if(symb=='G'): G += 1
        if(symb=='C'): C += 1
    
    print(A,C,G,T)
    Out [3]:
    5 4 5 3