diff --git a/client/mass/nav.js b/client/mass/nav.js index 1ca72e3282..035117d6ee 100644 --- a/client/mass/nav.js +++ b/client/mass/nav.js @@ -277,6 +277,7 @@ function setRenderers(self) { }) self.tabs = [chartTab, groupsTab, filterTab /*, cartTab*/] + if (appState.termdbConfig.hideGroupsTab) self.tabs.splice(1, 1) /** Adds either the COHORT or ABOUT tab * COHORT is added over ABOUT if both are defined */ diff --git a/server/routes/termdb.config.ts b/server/routes/termdb.config.ts index 0d3b36d0a3..4a669e2a64 100644 --- a/server/routes/termdb.config.ts +++ b/server/routes/termdb.config.ts @@ -90,7 +90,8 @@ function make(q, res, ds: Mds3WithCohort, genome) { isGeneSetTermdb: tdb.isGeneSetTermdb, lollipop: tdb.lollipop, urlTemplates: tdb.urlTemplates, - title: 'title' in ds.cohort ? ds.cohort.title : { text: ds.label } + title: 'title' in ds.cohort ? ds.cohort.title : { text: ds.label }, + hideGroupsTab: ds.cohort.hideGroupsTab } // optional attributes // when missing, the attribute will not be present as "key:undefined" diff --git a/server/shared/types/dataset.ts b/server/shared/types/dataset.ts index ef8dde5466..3bcdb4282d 100644 --- a/server/shared/types/dataset.ts +++ b/server/shared/types/dataset.ts @@ -1047,6 +1047,7 @@ type AssayAvailability = { //Shared with genome.ts export type Cohort = { + hideGroupsTab?: boolean allowedChartTypes?: string[] hiddenChartTypes?: string[] renamedChartTypes?: { singleCellPlot?: string; sampleScatter?: string }