Collections:
Retrieve Record Summary with Bio.Entrez.esummary()
How to Retrieve Record Summary with Bio.Entrez.esummary() function?
✍: FYIcenter.com
Bio.Entrez.esummary() function allows you to retrieve summary information
of a given record in a given NCBI Databas.
It uses the Entrez Web services provided by www.ncbi.nlm.nih.gov.
1. Retrieve summary information from the "nlmcatalog" database for record id of 101660833, which can be obtained by the esearch() function.
fyicenter$ python
>>> from Bio import Entrez
>>> Entrez.email = "A.N.Other@example.com"
>>> handle = Entrez.esummary(db="nlmcatalog", id="101660833")
>>> record = Entrez.read(handle)
>>> info = record[0]["TitleMainList"][0]
>>> print("Journal info\nid: {}\nTitle: {}".format(record[0]["Id"], info["Title"]))
Journal info
id: 101660833
Title: IEEE transactions on computational imaging.
1. Retrieve summary information from the "nucleotide" database for record id of "NC_069974.1", which can be obtained by the esearch() function.
>>> handle = Entrez.esummary(db="nucleotide", id="NC_069974.1")
>>> record = Entrez.read(handle)
>>> len(record)
1
>>> summary = record[0]
>>> summary
{'Item': [], 'Id': '2431509302', 'Caption': 'NC_069974',
'Title': 'Paphiopedilum godefroyae voucher hc19050 chloroplast, complete genome',
'Extra': 'gi|2431509302|ref|NC_069974.1|[2431509302]',
'Gi': IntegerElement(2431509302, attributes={}),
'CreateDate': '2023/01/25', 'UpdateDate': '2023/01/26',
'Flags': IntegerElement(768, attributes={}),
'TaxId': IntegerElement(53089, attributes={}),
'Length': IntegerElement(163128, attributes={}), 'Status': 'live',
'ReplacedBy': '', 'Comment': ' ', 'AccessionVersion': 'NC_069974.1'
}
⇒ Fetch Sequences from NCBI with Bio.Entrez.efetch()
⇐ Search NCBI Databases with Bio.Entrez.esearch()
2023-08-09, 1547🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1003901 Names: InChIKey: BGMRTOQAAVHUOW-CSKARUKUS A-NSMILES: CCOC(=O)/C=C/...
Molecule Summary: ID: FYI-1002258 Names: InChIKey: VCNAPRDMOBJMFG-UHFFFAOYS A-NSMILES: COC2=CC(O)C1=...
Molecule Summary: ID: FYI-1006717 Names: InChIKey: INAMZVNNXPISDS-UHFFFAOYS A-OSMILES: C=C=C=C=C=C=C...
Molecule Summary: ID: FYI-1000229 SMILES: CC12CC(C3=C4CCC(=O)C=C4C CC3C1CCC2(CCCO)O)C5=CC=C (C=C5)N(C)...
Molecule Summary: ID: FYI-1001130 SMILES: CN(C)S(=O)(=O)N1C2=C(C=C (Cl)C=C2)C2=C1N=C1C=CC=C C1=N2Rece...