Python: rna_transcription fixed
This commit is contained in:
parent
3b9a4d0bbb
commit
6475e73ac4
1 changed files with 1 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
RNA_TRANSLATION = ''.maketrans('GCTA', 'CGAU')
|
RNA_TRANSLATION = str.maketrans('GCTA', 'CGAU')
|
||||||
|
|
||||||
def to_rna(dna_strand):
|
def to_rna(dna_strand):
|
||||||
return dna_strand.translate(RNA_TRANSLATION)
|
return dna_strand.translate(RNA_TRANSLATION)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue