@sjcrh/proteinpaint-server 2.34.1-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
|
@@ -10,6 +10,8 @@ import serverconfig from '#src/serverconfig.js'
|
|
|
10
10
|
// TODO make it general purpose based on ds.queries.geneExpression.topVariablyExpressedGenes{}; wait till case/gene link changes are done
|
|
11
11
|
// https://github.com/NCI-GDC/gdcapi/blob/develop/openapi/gene-expression.yaml
|
|
12
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
|
|
13
15
|
|
|
14
16
|
const gdcGenome = 'hg38'
|
|
15
17
|
const gdcDslabel = 'GDC'
|
|
@@ -65,7 +67,7 @@ async function getGenes(q: GdcTopVariablyExpressedGenesRequest, ds: any, genome:
|
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
// change to this when api is available on prod
|
|
68
|
-
const url = path.join(
|
|
70
|
+
const url = path.join(geneExpHost, '/gene_expression/gene_selection')
|
|
69
71
|
|
|
70
72
|
try {
|
|
71
73
|
const response = await got.post(url, {
|