I want to use some type of e-utility tool to obtain the fasta mRNA sequence file of a gene. First I'm getting the uid from Gene with the code below
from Bio import Entrez Entrez.email="email@example.com handle = Entrez.esearch(db="gene", term="Acan[Gene Name] AND Homo sapiens[Organism]", rettype='fasta')" record = Entrez.read(handle) id = record["IdList"]
Then I would like to use this uid to get the fasta sequence for the mRNA gene. I would also like to obtain the bp positions of the exons in this gene and the bp positions of the longest off. This is how I'm trying to use efetch
Entrez.efetch(db="nucleotide", term=id+"[uid]", rettype="fasta")
It is not working and I don't know how to specify to get the exon positions either. I know the exon positions are there because I can see them on the website.