dna.py

1
2
3
4
5
6
7
from string import maketrans

dna2rna = maketrans('GCTA', 'CGAU')


def to_rna(nucleotides):
    return nucleotides.translate(dna2rna)

@heinrique thinks this looks great

Comments


You're not logged in right now. Please login via GitHub to comment