From c62be5c57e61e47ef7070f74be33ff365b642dae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Dom=C3=ADnguez?= Date: Wed, 11 Oct 2023 12:19:13 +0200 Subject: [PATCH] Single Cell subdomain: fix categories recycled from Human Cell Atlas subdomain not showing up in the toolbox --- templates/galaxy/config/global_host_filters.py.j2 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/templates/galaxy/config/global_host_filters.py.j2 b/templates/galaxy/config/global_host_filters.py.j2 index 0cc1f609e..871535842 100644 --- a/templates/galaxy/config/global_host_filters.py.j2 +++ b/templates/galaxy/config/global_host_filters.py.j2 @@ -104,6 +104,7 @@ DOMAIN_SECTIONS = { "hca_sc_sc3_tools", "hca_sc_sccaf_tools", "hca_sc_scater_tools", + "hca_sc_seurat_tools", "hicexplorer", "single-cell", "single-cell-section-scdata", @@ -147,12 +148,13 @@ def per_host_tool_sections( context, section ): host = context.trans.request.host subdomain = host.replace('.usegalaxy.eu', '') - # hide HCA tools from other subdomains than humancellatlas, do not confuse users by duplicated tools - if section.id in human_cell_atlas_sections: - if 'humancellatlas' in host: - return True - else: - return False + # hide HCA tools from other subdomains than humancellatlas or singlecell, + # do not confuse users by duplicated tools + if section.id in human_cell_atlas_sections and not {subdomain} & { + "humancellatlas", + "singlecell", + }: + return False # show single cell tools only in that subdomain if section.id.startswith("single-cell-section"):