A simple, fast program which transcribes a DNA strand into messenger RNA (mRNA), which it then translates into amino acids.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
1.4 KiB

  1. # DNA_transcription_translation
  2. A simple, fast program which transcribes a DNA strand into messenger RNA (mRNA), which it then translates into amino acids.
  3. ## What does it do? ##
  4. It takes in a DNA strand as input and converts this strand to a complementary messenger RNA strand using these mappings:
  5. A → U
  6. T → A
  7. C → G
  8. G → C
  9. For example, `GTACTAGAGCATTT` would be converted to `CAUGAUCUCGUAAA`
  10. After this, it looks for a start codon (AUG) and a stop codon (UAA, UAG, UGA) and it removes anything out of the range from start to stop.
  11. For example, `CAUGAUCUCGUAAA` would be converted to `AUGAUCUCGUAA`
  12. Then, it turns the result of the previous step into a list broken into 3-character items.
  13. For example, `AUGAUCUCGUAA` would be converted to `['AUG', 'AUC', 'UCG', 'UAA']`
  14. Finally, it compares each item in the list to the amino_acids.py file, which is basically a predefined [codon chart.](https://www.google.com/search?q=codon+chart&rlz=1C1CHBF_enUS912US912&tbm=isch&source=iu&ictx=1&fir=SVhfz4tRL5GzVM%252Cx4w9lB13r4FJ7M%252C_&vet=1&usg=AI4_-kSuwWL4sbNFjTZd3fkSLRoPujadRw&sa=X&ved=2ahUKEwi7verdq-7sAhVQSK0KHUXZAp8Q9QF6BAgBEFg&biw=1366&bih=625&safe=active&ssui=on#imgrc=SVhfz4tRL5GzVM)
  15. This returns a list of the amino acids for the codons: `['AUG', 'AUC', 'UCG', 'UAA']` would return `['Methionine', 'Isoleucine', 'Serine', 'STOP']`
  16. **WARNING: I HAVEN'T DONE A LOT OF TESTING, SO USE THIS TOOL AT YOUR OWN RISK.**