How to get all transcript and CDS from gene_id in biopython?
0
1
Entering edit mode
6.0 years ago
ishenweiyan ▴ 10

I got the gene name and species, how can I retrieve all its transcript and CDS by the gene_id in python?

For example I get the gene symbol of TP53 (Gene ID: 7157),and I want to retrieve all its transcript and CDS sequences. How could I do it? Thank you very much.

from Bio import Entrez
Entrez.email = 'A.N.Other@example.com'
handle = Entrez.efetch(db="nucleotide", id=Accession_number, rettype="fasta", retmode="text")
record = handle.read()
gene biopython • 2.1k views
ADD COMMENT
0
Entering edit mode

Could you develop what you want please

Is this what you are looking for ?

ADD REPLY
0
Entering edit mode

"asscess" == "Accession" ?

ADD REPLY
0
Entering edit mode

Yes, it should be Accession Number. Thanks for your kindly reminder.

ADD REPLY
0
Entering edit mode

You can take a look here

ADD REPLY

Login before adding your answer.

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