diff --git a/VERSION b/VERSION index 50aea0e..0444f32 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.0 \ No newline at end of file +3.2.1 \ No newline at end of file diff --git a/src/ensembl/production/metadata/api/models/genome.py b/src/ensembl/production/metadata/api/models/genome.py index 5b2ec6b..764e53a 100644 --- a/src/ensembl/production/metadata/api/models/genome.py +++ b/src/ensembl/production/metadata/api/models/genome.py @@ -81,6 +81,19 @@ def get_public_path(self, dataset_type='all', release=None): if 'regulatory_features' == dataset_type or 'regulation_build' == dataset_type: dataset_type = 'regulation' + # if any of these three values are in unique_dataset_types + discarded_homology_types = {'homology_load', 'homology_compute', 'homology_ftp'} + if unique_dataset_types.intersection(discarded_homology_types): + # discard them + unique_dataset_types.difference_update(discarded_homology_types) + # and add 'homologies' if it doesn't exist + unique_dataset_types.add('homologies') + + discarded_web_types = {'web_genesearch', 'web_genomediscovery'} + if unique_dataset_types.intersection(discarded_web_types): + # we are just discarding them for now + unique_dataset_types.difference_update(discarded_web_types) + # Defining path templates path_templates = { 'genebuild': f"{common_path}/geneset/{genebuild_version}",