Skip to content

Commit

Permalink
Fix retraction matching string
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaris committed Dec 14, 2023
1 parent ca4bc05 commit 33ac85c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indra/literature/pubmed_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ def generate_retractions_file(xml_path: str):
tree = ET.XML(xml_str, parser=UTB())
for article in tree.findall('.//PubmedArticle'):
pub_types = get_publication_types(article)
if 'Retraction' in pub_types:
if "Retracted Publication" in pub_types:
pmid = int(article.find('.//PMID').text)
retractions.add(pmid)

Expand Down

0 comments on commit 33ac85c

Please sign in to comment.