<html><head></head><body><div class="ydp3c6bf57eyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:10px;"><div></div>
<div dir="ltr" data-setdir="false">Have you looked at the raw Medline data returned by Entrez?</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Best,</div><div dir="ltr" data-setdir="false">-Michiel<br></div><div><br></div>
</div><div id="yahoo_quoted_5153056421" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Thursday, January 4, 2024 at 05:59:02 AM GMT+9, Iddo Friedberg <idoerg@gmail.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv0861508357"><div dir="ltr"><div>Hi,</div><div><br></div><div>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?<br></div><div><br></div><div>See snippet below. Outputs are in boldface.<br><br></div><div><span style="font-family:monospace;">from Bio import Entrez, Medline <br></span></div><div><span style="font-family:monospace;">Entrez.email="<a rel="nofollow noopener noreferrer" ymailto="mailto:my_email@myplace.com" target="_blank" href="mailto:my_email@myplace.com">my_email@myplace.com</a>"<br></span></div><div><span style="font-family:monospace;">handle = Entrez.efetch(db="pubmed", id="37739408", rettype="medline", retmode="text")</span></div><div><span style="font-family:monospace;">paper_list = list(Medline.parse(handle))<br>len(paper_list[0]['AD']) # of affiliations<br></span></div><div><span style="font-family:monospace;"><b>13</b><br>len(paper_list[0]['FAU']) # of authors<br></span></div><div><span style="font-family:monospace;"><b>8</b><br><br>paper_list[0]['FAU']<br>[<b>'Mahlich, Yannick', 'Zhu, Chengsheng', 'Chung, Henri', 'Velaga, Pavan K', 'De Paolis Kaluza, M Clara', 'Radivojac, Predrag', 'Friedberg, Iddo', 'Bromberg, Yana']</b><br>paper_list[0]['AD']<br>[<b>'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.']</b></span></div><div><br></div><div><br></div><div>Thanks,</div><div><br></div><div>Iddo<br></div><span class="yiv0861508357gmail_signature_prefix">-- </span><br><div dir="ltr" class="yiv0861508357gmail_signature"><div dir="ltr"><div>Iddo Friedberg</div><div><br>++++++++++[>+++>++++++>++++++++>++++++++++>+++++++++++<<<<<-]>>>>++++.><br>++++++..----.<<<<++++++++++++++++++++++++++++.-----------..>>>+.-----.<br>.>-.<<<<--.>>>++.>+++.<+++.----.-.<++++++++++++++++++.>+.>.<++.<<<+.>><br>>>----.<--.>++++++.<<<<------------------------------------.<br></div></div></div></div>
</div>_______________________________________________<br>Biopython mailing list - <a ymailto="mailto:Biopython@biopython.org" href="mailto:Biopython@biopython.org">Biopython@biopython.org</a><br><a href="https://mailman.open-bio.org/mailman/listinfo/biopython" target="_blank">https://mailman.open-bio.org/mailman/listinfo/biopython</a><br></div>
</div>
</div></body></html>