@sjcrh/proteinpaint-server 2.84.0 → 2.85.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 +4 -5
- package/routes/_template_.js +14 -11
- package/routes/brainImaging.js +5 -14
- package/routes/brainImagingSamples.js +3 -3
- package/routes/burden.js +27 -59
- package/routes/dataset.js +9 -17
- package/routes/dsdata.js +11 -14
- package/routes/dzimages.js +11 -16
- package/routes/gdc.maf.js +8 -23
- package/routes/gdc.mafBuild.js +9 -9
- package/routes/gdc.topMutatedGenes.js +7 -7
- package/routes/genelookup.js +16 -34
- package/routes/genesetEnrichment.js +18 -14
- package/routes/genesetOverrepresentation.js +9 -14
- package/routes/healthcheck.js +26 -32
- package/routes/hicdata.js +7 -28
- package/routes/hicgenome.js +6 -27
- package/routes/hicstat.js +4 -22
- package/routes/isoformlst.js +8 -11
- package/routes/ntseq.js +8 -11
- package/routes/pdomain.js +8 -11
- package/routes/sampledzimages.js +12 -12
- package/routes/samplewsimages.js +6 -10
- package/routes/snp.js +8 -10
- package/routes/termdb.DE.js +8 -10
- package/routes/termdb.boxplot.js +8 -9
- package/routes/termdb.categories.js +4 -45
- package/routes/termdb.cluster.js +9 -9
- package/routes/termdb.cohort.summary.js +5 -8
- package/routes/termdb.cohorts.js +3 -7
- package/routes/{termdb.getdescrstats.js → termdb.descrstats.js} +8 -45
- package/routes/termdb.numericcategories.js +51 -0
- package/routes/{termdb.getpercentile.js → termdb.percentile.js} +4 -46
- package/routes/{termdb.getrootterm.js → termdb.rootterm.js} +4 -24
- package/routes/{termdb.getSampleImages.js → termdb.sampleImages.js} +9 -9
- package/routes/termdb.singleSampleMutation.js +3 -7
- package/routes/termdb.singlecellDEgenes.js +8 -8
- package/routes/termdb.singlecellData.js +4 -8
- package/routes/termdb.singlecellSamples.js +8 -8
- package/routes/{termdb.gettermchildren.js → termdb.termchildren.js} +8 -28
- package/routes/termdb.termsbyids.js +9 -16
- package/routes/{termdb.getTopTermsByType.js → termdb.topTermsByType.js} +9 -10
- package/routes/termdb.topVariablyExpressedGenes.js +8 -8
- package/routes/termdb.violin.js +8 -46
- package/routes/tileserver.js +5 -10
- package/routes/wsimages.js +10 -9
- package/src/app.js +1286 -2148
- package/routes/termdb.getnumericcategories.js +0 -91
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import * as termdbsql from "#src/termdb.sql.js";
|
|
2
|
-
const api = {
|
|
3
|
-
endpoint: "termdb/numericcategories",
|
|
4
|
-
methods: {
|
|
5
|
-
get: {
|
|
6
|
-
init,
|
|
7
|
-
request: {
|
|
8
|
-
typeId: "getnumericcategoriesRequest"
|
|
9
|
-
},
|
|
10
|
-
response: {
|
|
11
|
-
typeId: "getnumericcategoriesResponse"
|
|
12
|
-
},
|
|
13
|
-
examples: [
|
|
14
|
-
{
|
|
15
|
-
request: {
|
|
16
|
-
body: {
|
|
17
|
-
genome: "hg38-test",
|
|
18
|
-
dslabel: "TermdbTest",
|
|
19
|
-
embedder: "localhost",
|
|
20
|
-
tid: "aaclassic_5",
|
|
21
|
-
filter: {
|
|
22
|
-
type: "tvslst",
|
|
23
|
-
in: true,
|
|
24
|
-
join: "",
|
|
25
|
-
lst: [
|
|
26
|
-
{
|
|
27
|
-
tag: "cohortFilter",
|
|
28
|
-
type: "tvs",
|
|
29
|
-
tvs: {
|
|
30
|
-
term: {
|
|
31
|
-
name: "Cohort",
|
|
32
|
-
type: "categorical",
|
|
33
|
-
values: { ABC: { label: "ABC" }, XYZ: { label: "XYZ" } },
|
|
34
|
-
id: "subcohort",
|
|
35
|
-
isleaf: false,
|
|
36
|
-
groupsetting: { disabled: true }
|
|
37
|
-
},
|
|
38
|
-
values: [{ key: "ABC", label: "ABC" }]
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
response: {
|
|
46
|
-
header: { status: 200 }
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
post: {
|
|
52
|
-
alternativeFor: "get",
|
|
53
|
-
init
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
function init({ genomes }) {
|
|
58
|
-
return async (req, res) => {
|
|
59
|
-
const q = req.query;
|
|
60
|
-
try {
|
|
61
|
-
const g = genomes[req.query.genome];
|
|
62
|
-
if (!g)
|
|
63
|
-
throw "invalid genome name";
|
|
64
|
-
const ds = g.datasets[req.query.dslabel];
|
|
65
|
-
if (!ds)
|
|
66
|
-
throw "invalid dataset name";
|
|
67
|
-
const tdb = ds.cohort.termdb;
|
|
68
|
-
if (!tdb)
|
|
69
|
-
throw "invalid termdb object";
|
|
70
|
-
await trigger_getnumericcategories(q, res, tdb, ds);
|
|
71
|
-
} catch (e) {
|
|
72
|
-
res.send({ error: e instanceof Error ? e.message : e });
|
|
73
|
-
if (e instanceof Error && e.stack)
|
|
74
|
-
console.log(e);
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
async function trigger_getnumericcategories(q, res, tdb, ds) {
|
|
79
|
-
if (!q.tid)
|
|
80
|
-
throw ".tid missing";
|
|
81
|
-
const arg = {
|
|
82
|
-
ds,
|
|
83
|
-
term_id: q.tid,
|
|
84
|
-
filter: q.filter
|
|
85
|
-
};
|
|
86
|
-
const lst = await termdbsql.get_summary_numericcategories(arg);
|
|
87
|
-
res.send({ lst });
|
|
88
|
-
}
|
|
89
|
-
export {
|
|
90
|
-
api
|
|
91
|
-
};
|