Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ensembl/production/metadata/api/models/genome.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_public_path(self, dataset_type='all', release=None):

# Defining path templates
path_templates = {
'genebuild': f"{common_path}/genebuild/{genebuild_version}",
'genebuild': f"{common_path}/geneset/{genebuild_version}",
'assembly': f"{common_path}/genome",
'homologies': f"{common_path}/homology/{genebuild_version}",
'regulation': f"{common_path}/regulation",
Expand Down
4 changes: 2 additions & 2 deletions src/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_get_public_path(self, multi_dbs):
assert len(paths) == 4
# assert all("/genebuild/" in path for path in paths)
path = genome.get_public_path(dataset_type='genebuild')
assert path[0]['path'] == 'Saccharomyces_cerevisiae_S288c/GCA_000146045.2/ensembl/genebuild/2018_10'
assert path[0]['path'] == 'Saccharomyces_cerevisiae_S288c/GCA_000146045.2/ensembl/geneset/2018_10'
path = genome.get_public_path(dataset_type='assembly')
assert path[0]['path'] == 'Saccharomyces_cerevisiae_S288c/GCA_000146045.2/ensembl/genome'
path = genome.get_public_path(dataset_type='variation')
Expand All @@ -58,7 +58,7 @@ def test_default_public_path(self, multi_dbs):
assert len(paths) == 5
# assert all("/genebuild/" in path for path in paths)
path = genome.get_public_path(dataset_type='genebuild')
assert path[0]['path'] == 'Homo_sapiens/GCA_000001405.29/ensembl/genebuild/2023_03'
assert path[0]['path'] == 'Homo_sapiens/GCA_000001405.29/ensembl/geneset/2023_03'
path = genome.get_public_path(dataset_type='assembly')
assert path[0]['path'] == 'Homo_sapiens/GCA_000001405.29/ensembl/genome'
path = genome.get_public_path(dataset_type='variation')
Expand Down