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)
If this is a homework/assignment task, you need to show some effort first else this thread will be closed.
Hello scienceemail11!
We believe that this post does not fit the main topic of this site.
Looks like an assignment.
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!