From d41b76db145c647e2b6fc1231480790248f2710f Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Fri, 29 Sep 2023 12:52:00 -0400 Subject: [PATCH] fix: correct gene info file glob typo --- gene/etl/ncbi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gene/etl/ncbi.py b/gene/etl/ncbi.py index a818788b..fd5cde69 100644 --- a/gene/etl/ncbi.py +++ b/gene/etl/ncbi.py @@ -185,7 +185,7 @@ def _gene_file_is_up_to_date(self, gene_file: Path) -> bool: :raise GeneFileVersionError: if parsing version from local file fails """ try: - version = re.match(r"ncbi_history_(\d+).tsv", gene_file.name).groups()[0] + version = re.match(r"ncbi_info_(\d+).tsv", gene_file.name).groups()[0] except (IndexError, AttributeError): raise GeneFileVersionError( f"Unable to parse version from NCBI gene file: {gene_file.absolute()}"