find position of 3' utr at entrez
0
0
Entering edit mode
5.2 years ago
paumarc ▴ 20

Hi

I am using the BIOPYTHON library Bio to retrieve sequences from Entrez, I need to know the ending position of 5' UTR and the starting position of 3' UTR. How do I get them?

thank you

p

sequence Entrez biopython • 1.2k views
ADD COMMENT
0
Entering edit mode

Are you fetching the records in the Genbank format? If yes then you can parse the features to identify the UTR tags.

ADD REPLY
0
Entering edit mode

Can you tell me any example of how to get or tutorial them? it is driving me mad

thanks

ADD REPLY
0
Entering edit mode

Following code can be modified to check for UTR instead of CDS for example:

from Bio import SeqIO
records = SeqIO.parse("sequence.gb", "genbank")
for seq_record in records:
    for feature in seq_record.features:
        if 'CDS' in (feature.type):
            if 'methyltransferase' in str(feature.qualifiers["product"]):
                print(feature.qualifiers["locus_tag"],feature.qualifiers['product'])

See more on the BioPython webpages: http://biopython.org/DIST/docs/tutorial/Tutorial.html#htoc130

ADD REPLY

Login before adding your answer.

Traffic: 2478 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