[Biopython] author affiliations in Entrez / Medline

Michiel de Hoon mjldehoon at yahoo.com
Wed Jan 3 18:51:17 EST 2024


 Have you looked at the raw Medline data returned by Entrez?
Best,-Michiel

    On Thursday, January 4, 2024 at 05:59:02 AM GMT+9, Iddo Friedberg <idoerg at gmail.com> wrote:  
 
 Hi,
Does anyone know how to map author institutional affiliations in the Entrez module? Since one author can have several affiliations in a paper, the affiliations list can be longer than the author list, but there is no one-to-many mappings of the authors to the affiliations that I could see using Biopython?

See snippet below. Outputs are in boldface.

from Bio import Entrez, Medline 
Entrez.email="my_email at myplace.com"
handle = Entrez.efetch(db="pubmed", id="37739408", rettype="medline", retmode="text")paper_list = list(Medline.parse(handle))
len(paper_list[0]['AD']) # of affiliations
13
len(paper_list[0]['FAU']) # of authors
8

paper_list[0]['FAU']
['Mahlich, Yannick', 'Zhu, Chengsheng', 'Chung, Henri', 'Velaga, Pavan K', 'De Paolis Kaluza, M Clara', 'Radivojac, Predrag', 'Friedberg, Iddo', 'Bromberg, Yana']
paper_list[0]['AD']
['Department of Biochemistry and Microbiology, Rutgers University, 76 Lipman Dr, New Brunswick, NJ 08873, USA.', 'Department of Biochemistry and Microbiology, Rutgers University, 76 Lipman Dr, New Brunswick, NJ 08873, USA.', 'Xbiome Inc., 1 Broadway, 14th fl, Cambridge, MA 02142, USA.', 'Department of Veterinary Microbiology and Preventive Medicine, Iowa State University, Ames, IA 50011, USA.', 'Interdepartmental program in Bioinformatics and Computational Biology, Iowa State University, Ames, IA 50011, USA.', 'Department of Biochemistry and Microbiology, Rutgers University, 76 Lipman Dr, New Brunswick, NJ 08873, USA.', 'Khoury College of Computer Sciences, Northeastern University, 177 Huntington Avenue, Boston, MA 02115, USA.', 'Khoury College of Computer Sciences, Northeastern University, 177 Huntington Avenue, Boston, MA 02115, USA.', 'Department of Veterinary Microbiology and Preventive Medicine, Iowa State University, Ames, IA 50011, USA.', 'Interdepartmental program in Bioinformatics and Computational Biology, Iowa State University, Ames, IA 50011, USA.', 'Department of Biochemistry and Microbiology, Rutgers University, 76 Lipman Dr, New Brunswick, NJ 08873, USA.', 'Department of Biology, Emory University, 1510 Clifton Road NE, Atlanta, GA 30322, USA.', 'Department of Computer Science, Emory University, 400 Dowman Drive, Atlanta, GA 30322, USA.']

Thanks,
Iddo
-- 
Iddo Friedberg
++++++++++[>+++>++++++>++++++++>++++++++++>+++++++++++<<<<<-]>>>>++++.>
++++++..----.<<<<++++++++++++++++++++++++++++.-----------..>>>+.-----.
.>-.<<<<--.>>>++.>+++.<+++.----.-.<++++++++++++++++++.>+.>.<++.<<<+.>>
>>----.<--.>++++++.<<<<------------------------------------.
_______________________________________________
Biopython mailing list  -  Biopython at biopython.org
https://mailman.open-bio.org/mailman/listinfo/biopython
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/biopython/attachments/20240103/58196696/attachment-0001.htm>


More information about the Biopython mailing list