Skip to content

Commit

Permalink
Merge pull request #943 from kysrpex/single_cell_subdomain_sections
Browse files Browse the repository at this point in the history
Single Cell subdomain: fix categories recycled from Human Cell Atlas subdomain not showing up in the toolbox
  • Loading branch information
kysrpex authored Oct 11, 2023
2 parents 71fc51a + c62be5c commit 9ad1da8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions templates/galaxy/config/global_host_filters.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"):
Expand Down

0 comments on commit 9ad1da8

Please sign in to comment.