@sjcrh/proteinpaint-server 2.33.0 → 2.34.1-0

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.
@@ -24,9 +24,9 @@ exports.default = {
24
24
  }
25
25
  ]
26
26
  },
27
- variantUrl: {
27
+ ssmUrl: {
28
28
  base: 'https://www.ncbi.nlm.nih.gov/clinvar/variation/',
29
- key: 'vcf_id',
29
+ namekey: 'vcf_id',
30
30
  linkText: 'ClinVar',
31
31
  shownSeparately: true
32
32
  },
@@ -42,9 +42,9 @@ exports.default = {
42
42
  }
43
43
  ]
44
44
  },
45
- variantUrl: {
45
+ ssmUrl: {
46
46
  base: 'https://www.ncbi.nlm.nih.gov/clinvar/variation/',
47
- key: 'vcf_id',
47
+ namekey: 'vcf_id',
48
48
  linkText: 'ClinVar',
49
49
  shownSeparately: true
50
50
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-server",
3
- "version": "2.33.0",
3
+ "version": "2.34.1-0",
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",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@sjcrh/augen": "2.32.2-0",
60
- "@sjcrh/proteinpaint-rust": "2.33.0",
60
+ "@sjcrh/proteinpaint-rust": "2.34.0",
61
61
  "better-sqlite3": "^7.5.3",
62
62
  "body-parser": "^1.15.2",
63
63
  "canvas": "~2.9.3",
@@ -8,14 +8,8 @@ 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'
19
13
 
20
14
  const gdcGenome = 'hg38'
21
15
  const gdcDslabel = 'GDC'
@@ -71,7 +65,7 @@ async function getGenes(q: GdcTopVariablyExpressedGenesRequest, ds: any, genome:
71
65
  }
72
66
 
73
67
  // change to this when api is available on prod
74
- const url = path.join(geneExpHost, '/gene_expression/gene_selection')
68
+ const url = path.join(apihost, '/gene_expression/gene_selection')
75
69
 
76
70
  try {
77
71
  const response = await got.post(url, {
@@ -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