Python: rna_transcription

This commit is contained in:
Dmitry Kokorin 2021-07-05 19:03:17 +03:00
parent fa43e334cc
commit 3b9a4d0bbb
4 changed files with 100 additions and 0 deletions

View file

@ -0,0 +1,4 @@
RNA_TRANSLATION = ''.maketrans('GCTA', 'CGAU')
def to_rna(dna_strand):
return dna_strand.translate(RNA_TRANSLATION)