Fasta module: transcribing DNA
Phase 2 March 11th, 2008A long time ago when the blog was still based on the Perl book we have seen how to transcribe DNA to RNA. This entry serves only to remember the method and add a function to the fasta module in the repositoty.
It is really simple to transcribe in Python, by employing the replace method on strings. Our function looks like
def transcribe(seq):
RNA = seq.replace('T', 'U')
return RNA
Some other functions will be added to the module in the next couple of weeks. After that we will divert the focus on optimizing our GenBank parsing script.
Recent Comments