Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Dec 4, 2023
1 parent b75b868 commit a376a64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/gene/etl/ensembl.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _extract_data(self, use_existing: bool) -> None:
This method is responsible for initializing an instance of a data handler and,
in most cases, setting ``self._data_file`` and ``self._version``.
:param bool use_existing: if True, don't try to fetch latest source data
:param use_existing: if True, don't try to fetch latest source data
"""
self._data_file, raw_version = self._data_source.get_latest(
from_local=use_existing
Expand Down Expand Up @@ -180,7 +180,7 @@ def _add_meta(self) -> None:
"/legal/disclaimer.html",
version=self._version,
data_url={
"genome_annotations": f"ftp://ftp.ensembl.org/pub/current_gff3/homo_sapiens/Homo_sapiens.{self._assembly}.{self._version}.gff3.gz"
"genome_annotations": f"ftp://ftp.ensembl.org/pub/release-{self._version}/gff3/homo_sapiens/Homo_sapiens.{self._assembly}.{self._version}.gff3.gz"
},
rdp_url=None,
data_license_attributes={
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_ensembl_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def test_meta_info(ensembl):
)
assert resp.source_meta_.version == "110"
assert resp.source_meta_.data_url == {
"genome_annotations": "ftp://ftp.ensembl.org/pub/current_gff3/homo_sapiens/Homo_sapiens.GRCh38.110.gff3.gz"
"genome_annotations": "ftp://ftp.ensembl.org/pub/release-110/gff3/homo_sapiens/Homo_sapiens.GRCh38.110.gff3.gz"
}
assert resp.source_meta_.rdp_url is None
assert resp.source_meta_.genome_assemblies == ["GRCh38"]
Expand Down

0 comments on commit a376a64

Please sign in to comment.