Off topic:Need Help with splicing exons on Python
0
0
Entering edit mode
5.3 years ago

When mRNA is transcribed from the chromosome, it briefly includes not only the exons with the protein coding information - but the introns as well. The genes you have include both exons and introns. In this challenge I want you to be the spliceosome! Use the exon coordinates (exons) to extract the exons and splice (join) them together to make a protein coding gene!

Do not reverse complement the sequence - in bioinformatics the strand of DNA with the coding sequence on it is usually reported so that you can see the gene sequence from 5' to 3'

Instructions:

Store your spliced gene as a string in a variable named spliced_gene

Hints

If you want to practice being good at coding use a for loop involving your list of exon coordinates from above You can add onto the end of a string to make it grow. You do that like this: my_string = my_string + new_stuff The exon boundaries at the top of this document were in the usual 'Human readable' form which starts counting from 1 and includes the last number. Don't forget that indices in Python start from 0, include the start and exclude the end.

my_string = [my_gene[0:352] + my_gene[636:805] + my_gene[1127:1293] + my_gene[1902:2142] + my_gene[3131:3251]]

for n in my_string:

  print(n)
exon gene • 2.0k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2885 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6