Python: rna_transcription
This commit is contained in:
parent
fa43e334cc
commit
3b9a4d0bbb
4 changed files with 100 additions and 0 deletions
4
python/rna-transcription/rna_transcription.py
Normal file
4
python/rna-transcription/rna_transcription.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
RNA_TRANSLATION = ''.maketrans('GCTA', 'CGAU')
|
||||
|
||||
def to_rna(dna_strand):
|
||||
return dna_strand.translate(RNA_TRANSLATION)
|
||||
Loading…
Add table
Add a link
Reference in a new issue