From 33ac85c3f973144dfb205d753ca9e60bdadc4a5f Mon Sep 17 00:00:00 2001 From: kkaris Date: Thu, 14 Dec 2023 07:30:19 -0800 Subject: [PATCH] Fix retraction matching string --- indra/literature/pubmed_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/literature/pubmed_client.py b/indra/literature/pubmed_client.py index ec531b61e9..574d799ed3 100644 --- a/indra/literature/pubmed_client.py +++ b/indra/literature/pubmed_client.py @@ -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)