@sjcrh/proteinpaint-server 2.34.0 → 2.34.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-server",
3
- "version": "2.34.0",
3
+ "version": "2.34.1",
4
4
  "description": "a genomics visualization tool for exploring a cohort's genotype and phenotype data",
5
5
  "main": "server.js",
6
6
  "bin": "start.js",
@@ -8,14 +8,10 @@ import got from 'got'
8
8
  import serverconfig from '#src/serverconfig.js'
9
9
 
10
10
  // TODO make it general purpose based on ds.queries.geneExpression.topVariablyExpressedGenes{}; wait till case/gene link changes are done
11
-
12
- // TODO change when api is released to prod
13
- //const apihost = process.env.PP_GDC_HOST || 'https://api.gdc.cancer.gov'
14
- const apihost = 'https://uat-portal.gdc.cancer.gov/auth/api/v0/gene_expression/gene_selection'
15
- // temporarily hardcode to use the direct API URL,
16
- // previously hardcoded to use 'https://uat-portal.gdc.cancer.gov/auth/api/v0/'
17
- const geneExpHost = 'https://uat-api.gdc.cancer.gov'
18
11
  // https://github.com/NCI-GDC/gdcapi/blob/develop/openapi/gene-expression.yaml
12
+ const apihost = process.env.PP_GDC_HOST || 'https://api.gdc.cancer.gov'
13
+ // may override the geneExpHost for developers without access to qa/portal environments
14
+ const geneExpHost = serverconfig.features?.geneExpHost || apihost
19
15
 
20
16
  const gdcGenome = 'hg38'
21
17
  const gdcDslabel = 'GDC'
@@ -93,7 +93,7 @@ function validateSamplesNative(S: SingleCellSamplesNative, ds: any) {
93
93
  samples.push({ sample: ds.cohort.termdb.q.id2sampleName(id) })
94
94
  }
95
95
  if (samples.length == 0) throw 'no sample with sc data'
96
- // getter returns array of {name:<samplename>, files:[]} where files is gdc specific. each sample is an obj and allows to add ds-specific stuff
96
+ // getter returns array of {sample:<samplename>, files:[]} where files is gdc specific. each sample is an obj and allows to add ds-specific stuff
97
97
  S.get = () => samples
98
98
  }
99
99