Collections:
Global Query on All NCBI Databases with Bio.Entrez.egquery()
How to Global Query on All NCBI Databases with Bio.Entrez.egquery() function?
✍: FYIcenter.com
Bio.Entrez.egquery() function allows you to perform a global search on
all NCBI Databases for a given key word.
It uses the Entrez Web services provided by www.ncbi.nlm.nih.gov.
Here is an example on how to do a global search with the Bio.Entrez.efetch() function.
fyicenter$ python >>> from Bio import Entrez >>> Entrez.email = "A.N.Other@example.com" >>> handle = Entrez.egquery(term="biopython") >>> record = Entrez.read(handle) >>> record.keys() dict_keys(['Term', 'eGQueryResult']) >>> for row in record["eGQueryResult"]: ... print(row["DbName"], row["Count"]) ... pubmed 41 pmc 2708 mesh 0 books 2 pubmedhealth Error omim 0 ncbisearch 1 nuccore 2 nucgss 0 nucest 0 protein 0 genome 0 structure 0 taxonomy 0 snp 0 dbvar 0 gene 0 sra 1377 biosystems Error unigene 0 cdd 0 clone 0 popset 0 geoprofiles 0 gds 17 homologene 0 pccompound 0 pcsubstance 0 pcassay 0 nlmcatalog 0 probe 0 gap 0 proteinclusters 0 bioproject 1 biosample 0 biocollections 0
Review those 2 matches in the "books" database.
>>> books = record["eGQueryResult"][3]
>>> books
{'DbName': 'books', 'MenuName': 'Books', 'Count': '2', 'Status': 'Ok'}
⇒ Search History with Bio.Entrez for Subsequent Calls
⇐ Search for Related Items in NCBI with Bio.Entrez.elink()
2023-08-25, 751🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1001813 SMILES: CC1CCC2CC(C(=CC=CC=CC(CC (C(=O)C(C(C(=CC(C(=O)CC( OC(=O)C3CC...
Molecule Summary: ID: FYI-1002585 Names: InChIKey: YTPCRCJHZLRLGU-SFHVURJKS A-NSMILES: O=C3c1ccccc1[...
Molecule Summary: ID: FYI-1006471 Names: InChIKey: RCECLYLHCKYVQV-UHFFFAOYS A-NSMILES: CCCCc3nc(c1cc...
Molecule Summary: ID: FYI-1002226 Names: InChIKey: RJNJNLPEYZFHEL-HKWRFOASS A-NSMILES: CC5=C(C(N)=O)...
Molecule Summary: ID: FYI-1003601 Names: InChIKey: VZMTZOXNCWXPEM-UHFFFAOYS A-NSMILES: Cn1nccc1c2cc(...