Skip to content

Commit a9bf74f

Browse files
authored
fix legacy SDF URL
Updated the URL for legacy ChEBI files to point to the SDF format.
1 parent 81c88e7 commit a9bf74f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chebi_utils/downloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def _chebi_obo_url(version: int) -> str:
1616

1717
def _chebi_sdf_url(version: int) -> str:
1818
if version < _CHEBI_LEGACY_VERSION_THRESHOLD:
19-
return f"https://ftp.ebi.ac.uk/pub/databases/chebi/archive/chebi_legacy/archive/rel{version}/ontology/chebi.obo"
19+
return f"https://ftp.ebi.ac.uk/pub/databases/chebi/archive/chebi_legacy/archive/rel{version}/SDF/ChEBI_complete.sdf.gz"
2020
return f"https://ftp.ebi.ac.uk/pub/databases/chebi/archive/rel{version}/SDF/chebi.sdf.gz"
2121

2222

0 commit comments

Comments
 (0)