How to access specific gene data from the NCBI Gene database with Biopython
I'm trying to get the all the gene synonyms for a certain gene in NCBI with Biopython.
from Bio import Entrez Entrez.email = "[email protected]" handle = Entrez.efetch(db="gene", id="3675", rettype="", retmode="") results = handle.read()
This code will return all the data related to a certain gene in the format ASN.1 (check here for the possible formats being returned).
I have now looked in the whole Biopython documentation there's no way to easily access components of this returned asn.1 string, no parser nothing. I even tried a couple of python asn.1 packages but they seem to only decode binary asn.1 files.
Ideally I'd like to have dictionary format or similar to access elements by key. What's the best way to approach this?
Thanks a lot!
• 111 views