diff --git a/src/gene/etl/ncbi.py b/src/gene/etl/ncbi.py index 1604c7e6..a136c4b2 100644 --- a/src/gene/etl/ncbi.py +++ b/src/gene/etl/ncbi.py @@ -62,11 +62,9 @@ def _extract_data(self, use_existing: bool) -> None: ) # type: ignore self._info_src = gene_paths.gene_info self._history_src = gene_paths.gene_history - self._gene_url = ( - "ftp.ncbi.nlm.nih.govgene/DATA/GENE_INFO/Mammalia/Homo_sapiens.gene_info.gz" - ) - self._history_url = "ftp.ncbi.nlm.nih.govgene/DATA/gene_history.gz" - self._assembly_url = "ftp.ncbi.nlm.nih.govgenomes/refseq/vertebrate_mammalian/Homo_sapiens/latest_assembly_versions/" + self._gene_url = "ftp.ncbi.nlm.nih.gov/gene/DATA/GENE_INFO/Mammalia/Homo_sapiens.gene_info.gz" + self._history_url = "ftp.ncbi.nlm.nih.gov/gene/DATA/gene_history.gz" + self._assembly_url = "ftp.ncbi.nlm.nih.gov/genomes/refseq/vertebrate_mammalian/Homo_sapiens/latest_assembly_versions/" def _get_prev_symbols(self) -> Dict[str, str]: """Store a gene's symbol history. diff --git a/tests/unit/test_ncbi_source.py b/tests/unit/test_ncbi_source.py index c90c353d..4e384b04 100644 --- a/tests/unit/test_ncbi_source.py +++ b/tests/unit/test_ncbi_source.py @@ -575,9 +575,9 @@ def spg37(): def source_urls(): """Provide source data URLs fixture.""" return { - "info_file": "ftp.ncbi.nlm.nih.govgene/DATA/GENE_INFO/Mammalia/Homo_sapiens.gene_info.gz", - "history_file": "ftp.ncbi.nlm.nih.govgene/DATA/gene_history.gz", - "assembly_file": "ftp.ncbi.nlm.nih.govgenomes/refseq/vertebrate_mammalian/Homo_sapiens/latest_assembly_versions/", + "info_file": "ftp.ncbi.nlm.nih.gov/gene/DATA/GENE_INFO/Mammalia/Homo_sapiens.gene_info.gz", + "history_file": "ftp.ncbi.nlm.nih.gov/gene/DATA/gene_history.gz", + "assembly_file": "ftp.ncbi.nlm.nih.gov/genomes/refseq/vertebrate_mammalian/Homo_sapiens/latest_assembly_versions/", }