Covering the bioinformatics niche and much more

Fasta Module: Transcribing DNA

| Comments

A 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 repository. 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.