@sjcrh/proteinpaint-types 2.188.1 → 2.190.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.
- package/README.md +8 -20
- package/dist/index.js +422 -553
- package/dist/index.js.map +7 -0
- package/package.json +13 -25
- package/dist/aiProjectAdmin.js +0 -11
- package/dist/aiProjectSelectedWSImages.js +0 -11
- package/dist/aiProjectTrainModel.js +0 -11
- package/dist/alphaGenome.js +0 -11
- package/dist/alphaGenomeTypes.js +0 -11
- package/dist/brainImaging.js +0 -11
- package/dist/brainImagingSamples.js +0 -11
- package/dist/burden.js +0 -11
- package/dist/chunk-2744ACBX.js +0 -126
- package/dist/chunk-2BCLGYAG.js +0 -96
- package/dist/chunk-2C4X5B6N.js +0 -62
- package/dist/chunk-2VJRTZE2.js +0 -287
- package/dist/chunk-46YIGVUP.js +0 -908
- package/dist/chunk-4EAGOSMN.js +0 -128
- package/dist/chunk-5H2LJKPX.js +0 -104
- package/dist/chunk-5L4VF3ZL.js +0 -266
- package/dist/chunk-5N7V62ZL.js +0 -231
- package/dist/chunk-62XTWOVJ.js +0 -273
- package/dist/chunk-6GKG55BT.js +0 -232
- package/dist/chunk-7MUISZHS.js +0 -61
- package/dist/chunk-7OA6G77M.js +0 -113
- package/dist/chunk-AGMCAWBR.js +0 -454
- package/dist/chunk-BCBSHTHS.js +0 -75
- package/dist/chunk-BZVFHGN3.js +0 -350
- package/dist/chunk-CQXBQY2H.js +0 -161
- package/dist/chunk-D7AKQKDG.js +0 -238
- package/dist/chunk-DDKGTDDB.js +0 -6739
- package/dist/chunk-DI4Q26E7.js +0 -16
- package/dist/chunk-DUCWIRPX.js +0 -311
- package/dist/chunk-EIJT53QB.js +0 -240
- package/dist/chunk-EOKM345J.js +0 -222
- package/dist/chunk-FK7OCBPT.js +0 -341
- package/dist/chunk-FMC4G5BP.js +0 -62
- package/dist/chunk-G4MMYXP6.js +0 -405
- package/dist/chunk-GTS2G4R4.js +0 -62
- package/dist/chunk-HQV2A7JV.js +0 -62
- package/dist/chunk-IS74WYQF.js +0 -207
- package/dist/chunk-JDF7A2LY.js +0 -361
- package/dist/chunk-JEQGBUK2.js +0 -5993
- package/dist/chunk-K4FSDTDW.js +0 -109
- package/dist/chunk-KCMPDEH7.js +0 -62
- package/dist/chunk-LC6KLHCJ.js +0 -8903
- package/dist/chunk-LQYSPLDQ.js +0 -3613
- package/dist/chunk-LRVF7U64.js +0 -62
- package/dist/chunk-MHDQO7R5.js +0 -195
- package/dist/chunk-MKYLCBTP.js +0 -5475
- package/dist/chunk-MNT3GF7M.js +0 -3628
- package/dist/chunk-MVB7LQS5.js +0 -3986
- package/dist/chunk-P25WDNMD.js +0 -171
- package/dist/chunk-PTE2I7DF.js +0 -91
- package/dist/chunk-Q3HGHP3J.js +0 -174
- package/dist/chunk-QNH3PKJK.js +0 -343
- package/dist/chunk-RPX4TVMD.js +0 -14
- package/dist/chunk-RXJNXOZC.js +0 -326
- package/dist/chunk-SDZIGJY3.js +0 -5931
- package/dist/chunk-SZZXZZKO.js +0 -3991
- package/dist/chunk-TD4YLTHL.js +0 -158
- package/dist/chunk-TEXOICIS.js +0 -11810
- package/dist/chunk-THQOFV2K.js +0 -205
- package/dist/chunk-TQQWSHFM.js +0 -5980
- package/dist/chunk-U3BTVE5T.js +0 -111
- package/dist/chunk-UBOVHONH.js +0 -62
- package/dist/chunk-ULKGA7YY.js +0 -158
- package/dist/chunk-UYJA4UM7.js +0 -97
- package/dist/chunk-V3JDD3ZG.js +0 -3671
- package/dist/chunk-VJB6F2HL.js +0 -309
- package/dist/chunk-VUKRI3TG.js +0 -164
- package/dist/chunk-W3F3CLYP.js +0 -61
- package/dist/chunk-X4JBWMXY.js +0 -130
- package/dist/chunk-X5E72ZXA.js +0 -5979
- package/dist/chunk-YNHC5SXO.js +0 -1780
- package/dist/chunk-YPEFUAJW.js +0 -62
- package/dist/chunk-YSTMGNYR.js +0 -113
- package/dist/chunk-YW5G4M5D.js +0 -158
- package/dist/chunk-Z3IYM5OK.js +0 -296
- package/dist/chunk-ZCV62ELK.js +0 -96
- package/dist/chunk-ZIOJDN75.js +0 -197
- package/dist/chunk-ZMDZYG5B.js +0 -4224
- package/dist/clearwsisession.js +0 -78
- package/dist/clearwsisessions.js +0 -13
- package/dist/correlationVolcano.js +0 -11
- package/dist/dataset.js +0 -11
- package/dist/deleteWSITileSelection.js +0 -11
- package/dist/dsdata.js +0 -11
- package/dist/dzimages.js +0 -11
- package/dist/gdc.grin2.js +0 -17
- package/dist/gdc.maf.js +0 -11
- package/dist/gdc.mafBuild.js +0 -11
- package/dist/genelookup.js +0 -11
- package/dist/genesetEnrichment.js +0 -11
- package/dist/genesetOverrepresentation.js +0 -11
- package/dist/grin2.js +0 -11
- package/dist/healthcheck.js +0 -11
- package/dist/hicdata.js +0 -11
- package/dist/hicgenome.js +0 -11
- package/dist/hicstat.js +0 -11
- package/dist/img.js +0 -11
- package/dist/isoformlst.js +0 -11
- package/dist/ntseq.js +0 -11
- package/dist/pdomain.js +0 -11
- package/dist/samplewsimages.js +0 -13
- package/dist/saveWSIAnnotation.js +0 -11
- package/dist/snp.js +0 -11
- package/dist/termdb.DE.js +0 -11
- package/dist/termdb.categories.js +0 -11
- package/dist/termdb.chat.js +0 -3631
- package/dist/termdb.chat2.js +0 -15
- package/dist/termdb.cluster.js +0 -11
- package/dist/termdb.cohort.summary.js +0 -11
- package/dist/termdb.cohorts.js +0 -11
- package/dist/termdb.dapVolcano.js +0 -11
- package/dist/termdb.descrstats.js +0 -11
- package/dist/termdb.diffMeth.js +0 -11
- package/dist/termdb.dmr.js +0 -11
- package/dist/termdb.filterTermValues.js +0 -11
- package/dist/termdb.isoformAvailability.js +0 -11
- package/dist/termdb.numericcategories.js +0 -11
- package/dist/termdb.percentile.js +0 -11
- package/dist/termdb.profileFormScores.js +0 -11
- package/dist/termdb.profileForms2Scores.js +0 -11
- package/dist/termdb.profileScores.js +0 -11
- package/dist/termdb.proteome.js +0 -11
- package/dist/termdb.rootterm.js +0 -11
- package/dist/termdb.runChart.js +0 -13
- package/dist/termdb.sampleImages.js +0 -11
- package/dist/termdb.sampleScatter.js +0 -11
- package/dist/termdb.singleSampleMutation.js +0 -11
- package/dist/termdb.singlecellDEgenes.js +0 -11
- package/dist/termdb.singlecellData.js +0 -11
- package/dist/termdb.singlecellSamples.js +0 -11
- package/dist/termdb.termchildren.js +0 -11
- package/dist/termdb.termsbyids.js +0 -11
- package/dist/termdb.topMutatedGenes.js +0 -11
- package/dist/termdb.topTermsByType.js +0 -11
- package/dist/termdb.topVariablyExpressedGenes.js +0 -11
- package/dist/termdb.violinBox.js +0 -17
- package/dist/tileserver.js +0 -11
- package/dist/wsimages.js +0 -11
- package/dist/wsisamples.js +0 -11
- package/src/Mclass.ts +0 -8
- package/src/dataset.ts +0 -2186
- package/src/docs.json +0 -16417
- package/src/fileOrUrl.ts +0 -15
- package/src/filter.ts +0 -110
- package/src/genome.ts +0 -129
- package/src/index.ts +0 -94
- package/src/routes/aiProjectAdmin.ts +0 -37
- package/src/routes/aiProjectSelectedWSImages.ts +0 -48
- package/src/routes/aiProjectTrainModel.ts +0 -20
- package/src/routes/alphaGenome.ts +0 -27
- package/src/routes/alphaGenomeTypes.ts +0 -21
- package/src/routes/brainImaging.ts +0 -47
- package/src/routes/brainImagingSamples.ts +0 -25
- package/src/routes/burden.ts +0 -113
- package/src/routes/clearwsisessions.ts +0 -19
- package/src/routes/correlationVolcano.ts +0 -51
- package/src/routes/dataset.ts +0 -14
- package/src/routes/deleteWSITileSelection.ts +0 -25
- package/src/routes/dsdata.ts +0 -14
- package/src/routes/dzimages.ts +0 -25
- package/src/routes/errorResponse.ts +0 -6
- package/src/routes/filter.gdc.ts +0 -15
- package/src/routes/gdc.grin2.ts +0 -246
- package/src/routes/gdc.maf.ts +0 -52
- package/src/routes/gdc.mafBuild.ts +0 -20
- package/src/routes/genelookup.ts +0 -22
- package/src/routes/genesetEnrichment.ts +0 -116
- package/src/routes/genesetOverrepresentation.ts +0 -48
- package/src/routes/grin2.ts +0 -173
- package/src/routes/healthcheck.ts +0 -80
- package/src/routes/hicdata.ts +0 -48
- package/src/routes/hicgenome.ts +0 -50
- package/src/routes/hicstat.ts +0 -57
- package/src/routes/img.ts +0 -23
- package/src/routes/isoformlst.ts +0 -14
- package/src/routes/ntseq.ts +0 -14
- package/src/routes/pdomain.ts +0 -14
- package/src/routes/routeApi.ts +0 -47
- package/src/routes/samplewsimages.ts +0 -44
- package/src/routes/saveWSIAnnotation.ts +0 -25
- package/src/routes/snp.ts +0 -13
- package/src/routes/termdb.DE.ts +0 -220
- package/src/routes/termdb.categories.ts +0 -74
- package/src/routes/termdb.chat2.ts +0 -190
- package/src/routes/termdb.cluster.ts +0 -134
- package/src/routes/termdb.cohort.summary.ts +0 -14
- package/src/routes/termdb.cohorts.ts +0 -14
- package/src/routes/termdb.dapVolcano.ts +0 -35
- package/src/routes/termdb.descrstats.ts +0 -75
- package/src/routes/termdb.diffMeth.ts +0 -63
- package/src/routes/termdb.dmr.ts +0 -121
- package/src/routes/termdb.filterTermValues.ts +0 -23
- package/src/routes/termdb.isoformAvailability.ts +0 -22
- package/src/routes/termdb.numericcategories.ts +0 -32
- package/src/routes/termdb.percentile.ts +0 -67
- package/src/routes/termdb.profileFormScores.ts +0 -26
- package/src/routes/termdb.profileForms2Scores.ts +0 -25
- package/src/routes/termdb.profileScores.ts +0 -27
- package/src/routes/termdb.proteome.ts +0 -13
- package/src/routes/termdb.rootterm.ts +0 -49
- package/src/routes/termdb.runChart.ts +0 -66
- package/src/routes/termdb.sampleImages.ts +0 -26
- package/src/routes/termdb.sampleScatter.ts +0 -60
- package/src/routes/termdb.singleSampleMutation.ts +0 -51
- package/src/routes/termdb.singlecellDEgenes.ts +0 -50
- package/src/routes/termdb.singlecellData.ts +0 -75
- package/src/routes/termdb.singlecellSamples.ts +0 -50
- package/src/routes/termdb.termchildren.ts +0 -49
- package/src/routes/termdb.termsbyids.ts +0 -26
- package/src/routes/termdb.topMutatedGenes.ts +0 -51
- package/src/routes/termdb.topTermsByType.ts +0 -32
- package/src/routes/termdb.topVariablyExpressedGenes.ts +0 -54
- package/src/routes/termdb.violinBox.ts +0 -230
- package/src/routes/tileserver.ts +0 -14
- package/src/routes/wsimages.ts +0 -34
- package/src/routes/wsisamples.ts +0 -25
- package/src/termdb.matrix.ts +0 -57
- package/src/terms/categorical.ts +0 -18
- package/src/terms/condition.ts +0 -73
- package/src/terms/date.ts +0 -20
- package/src/terms/dnaMethylation.ts +0 -28
- package/src/terms/geneExpression.ts +0 -38
- package/src/terms/geneVariant.ts +0 -132
- package/src/terms/isoformExpression.ts +0 -36
- package/src/terms/metaboliteIntensity.ts +0 -30
- package/src/terms/numeric.ts +0 -278
- package/src/terms/proteomeAbundance.ts +0 -38
- package/src/terms/q.ts +0 -105
- package/src/terms/qualitative.ts +0 -73
- package/src/terms/samplelst.ts +0 -34
- package/src/terms/singleCellCellType.ts +0 -18
- package/src/terms/singleCellGeneExpression.ts +0 -32
- package/src/terms/snp.ts +0 -24
- package/src/terms/snps.ts +0 -111
- package/src/terms/ssGSEA.ts +0 -26
- package/src/terms/term.ts +0 -60
- package/src/terms/termCollection.ts +0 -139
- package/src/terms/tw.ts +0 -64
- package/src/termsetting.ts +0 -201
- package/src/test/numeric.type.spec.ts +0 -275
- package/src/vocab.ts +0 -37
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
import type { Filter } from '../filter.ts'
|
|
3
|
-
import type { TermWrapper } from '../terms/tw.ts'
|
|
4
|
-
|
|
5
|
-
export type DescrStatsRequest = {
|
|
6
|
-
/** genome label in the serverconfig.json */
|
|
7
|
-
genome: string
|
|
8
|
-
/** dataset label for the given genome */
|
|
9
|
-
dslabel: string
|
|
10
|
-
embedder: string
|
|
11
|
-
/** wrapper of a numeric term, q.mode can be any as getData() will always pull sample-level values for summarizing */
|
|
12
|
-
tw: TermWrapper
|
|
13
|
-
/** if true, the (violin) plot is in log scale and must exclude 0-values from the stat */
|
|
14
|
-
logScale?: boolean
|
|
15
|
-
/** optional pp filter */
|
|
16
|
-
filter?: Filter
|
|
17
|
-
/** optional gdc filter */
|
|
18
|
-
filter0?: any
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type DescrStats = {
|
|
22
|
-
[key: string]: {
|
|
23
|
-
key: string
|
|
24
|
-
label: string
|
|
25
|
-
value: number
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type DescrStatsResponse = DescrStats
|
|
30
|
-
|
|
31
|
-
export const descrStatsPayload: RoutePayload = {
|
|
32
|
-
request: {
|
|
33
|
-
typeId: 'DescrStatsRequest'
|
|
34
|
-
},
|
|
35
|
-
response: {
|
|
36
|
-
typeId: 'DescrStatsResponse'
|
|
37
|
-
},
|
|
38
|
-
examples: [
|
|
39
|
-
{
|
|
40
|
-
request: {
|
|
41
|
-
body: {
|
|
42
|
-
genome: 'hg38-test',
|
|
43
|
-
dslabel: 'TermdbTest',
|
|
44
|
-
embedder: 'localhost',
|
|
45
|
-
tw: { term: { id: 'hrtavg' }, q: { mode: 'continuous' } },
|
|
46
|
-
filter: {
|
|
47
|
-
type: 'tvslst',
|
|
48
|
-
in: true,
|
|
49
|
-
join: '',
|
|
50
|
-
lst: [
|
|
51
|
-
{
|
|
52
|
-
tag: 'cohortFilter',
|
|
53
|
-
type: 'tvs',
|
|
54
|
-
tvs: {
|
|
55
|
-
term: {
|
|
56
|
-
name: 'Cohort',
|
|
57
|
-
type: 'categorical',
|
|
58
|
-
values: { ABC: { label: 'ABC' }, XYZ: { label: 'XYZ' } },
|
|
59
|
-
id: 'subcohort',
|
|
60
|
-
isleaf: false,
|
|
61
|
-
groupsetting: { disabled: true }
|
|
62
|
-
},
|
|
63
|
-
values: [{ key: 'ABC', label: 'ABC' }]
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
response: {
|
|
71
|
-
header: { status: 200 }
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
import type { DataEntry, VolcanoData, VolcanoRenderRequest } from './termdb.DE.js'
|
|
3
|
-
|
|
4
|
-
export type DiffMethRequest = {
|
|
5
|
-
/** Genome build name */
|
|
6
|
-
genome: string
|
|
7
|
-
/** Dataset label */
|
|
8
|
-
dslabel: string
|
|
9
|
-
/** Object containing two arrays of samples for differential methylation analysis */
|
|
10
|
-
samplelst: any
|
|
11
|
-
/** Minimum non-NA samples required per group (default 3) */
|
|
12
|
-
min_samples_per_group?: number
|
|
13
|
-
/** Term for confounding variable 1 (if present) */
|
|
14
|
-
tw?: any
|
|
15
|
-
/** Term for confounding variable 2 (if present) */
|
|
16
|
-
tw2?: any
|
|
17
|
-
/** Option to return early with actual number of samples with methylation values */
|
|
18
|
-
preAnalysis?: boolean
|
|
19
|
-
/** Parameters for the server-side `da` Rust renderer. Always required — the
|
|
20
|
-
* server always returns a rendered PNG plus the threshold-passing rows. */
|
|
21
|
-
volcanoRender: VolcanoRenderRequest
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/** Response when DiffMethRequest.preAnalysis === true. Returns per-group
|
|
25
|
-
* sample counts (keyed by group name) plus an optional validation alert. */
|
|
26
|
-
export type DiffMethPreAnalysisResponse = {
|
|
27
|
-
data: Record<string, number | string>
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/** Response for a full differential methylation run (preAnalysis absent/false). */
|
|
31
|
-
export type DiffMethFullResponse = {
|
|
32
|
-
/** The volcano payload — per-promoter interactive dots + PNG + extents +
|
|
33
|
-
* totals. See VolcanoData for details. */
|
|
34
|
-
data: VolcanoData<DiffMethEntry>
|
|
35
|
-
/** Effective sample size for group 1 */
|
|
36
|
-
sample_size1: number
|
|
37
|
-
/** Effective sample size for group 2 */
|
|
38
|
-
sample_size2: number
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export type DiffMethResponse = DiffMethPreAnalysisResponse | DiffMethFullResponse
|
|
42
|
-
|
|
43
|
-
export type DiffMethEntry = DataEntry & {
|
|
44
|
-
/** ENCODE CRE promoter ID (e.g. EH38E3756858) */
|
|
45
|
-
promoter_id: string
|
|
46
|
-
/** Gene symbol(s) associated with the promoter (comma-separated if multiple) */
|
|
47
|
-
gene_name: string
|
|
48
|
-
/** Chromosome (e.g. "chr1") */
|
|
49
|
-
chr: string
|
|
50
|
-
/** Promoter start coordinate (0-based) */
|
|
51
|
-
start: number
|
|
52
|
-
/** Promoter end coordinate (exclusive) */
|
|
53
|
-
stop: number
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export const diffMethPayload: RoutePayload = {
|
|
57
|
-
request: {
|
|
58
|
-
typeId: 'DiffMethRequest'
|
|
59
|
-
},
|
|
60
|
-
response: {
|
|
61
|
-
typeId: 'DiffMethResponse'
|
|
62
|
-
}
|
|
63
|
-
}
|
package/src/routes/termdb.dmr.ts
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import type { Filter } from '../filter.ts'
|
|
2
|
-
import type { RoutePayload } from './routeApi.ts'
|
|
3
|
-
|
|
4
|
-
export type TermdbDmrRequest = {
|
|
5
|
-
genome: string
|
|
6
|
-
dslabel: string
|
|
7
|
-
/** list of samples from each group */
|
|
8
|
-
group1: Sample[]
|
|
9
|
-
group2: Sample[]
|
|
10
|
-
/** query region */
|
|
11
|
-
chr: string
|
|
12
|
-
start: number
|
|
13
|
-
stop: number
|
|
14
|
-
/** DMRCate lambda parameter: Gaussian kernel bandwidth in nucleotides (default 1000) */
|
|
15
|
-
lambda?: number
|
|
16
|
-
/** DMRCate C parameter: scaling factor for kernel width (default 2) */
|
|
17
|
-
C?: number
|
|
18
|
-
/** FDR cutoff for CpG significance (default 0.05) */
|
|
19
|
-
fdr_cutoff?: number
|
|
20
|
-
/** display name for group1 (e.g. from volcano plot) */
|
|
21
|
-
group1Name?: string
|
|
22
|
-
/** display name for group2 (e.g. from volcano plot) */
|
|
23
|
-
group2Name?: string
|
|
24
|
-
/** Block width in CSS pixels for server-side track rendering (default 800) */
|
|
25
|
-
blockWidth?: number
|
|
26
|
-
/** Device pixel ratio for server-side track rendering (default 1) */
|
|
27
|
-
devicePixelRatio?: number
|
|
28
|
-
/** Maximum region size (bp) to show LOESS curves (default 50000) */
|
|
29
|
-
maxLoessRegion?: number
|
|
30
|
-
/** Group/DMR colors for server-side track rendering */
|
|
31
|
-
colors?: { group1: string; group2: string; hyper: string; hypo: string }
|
|
32
|
-
/** Backend engine: 'rust' (genome-wide eBayes, default) or 'r' (DMRCate via cached limma) */
|
|
33
|
-
backend?: 'rust' | 'r'
|
|
34
|
-
filter?: Filter
|
|
35
|
-
__protected__?: any
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
type Sample = {
|
|
39
|
-
sampleId: number | string
|
|
40
|
-
sample: string
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export type DmrLoessCurves = {
|
|
44
|
-
/** Evenly spaced genomic positions where LOESS was evaluated */
|
|
45
|
-
positions: number[]
|
|
46
|
-
/** LOESS fitted values for group 1 (control) */
|
|
47
|
-
group1_fitted: number[]
|
|
48
|
-
/** Lower 95% CI bound for group 1 */
|
|
49
|
-
group1_ci_lower: number[]
|
|
50
|
-
/** Upper 95% CI bound for group 1 */
|
|
51
|
-
group1_ci_upper: number[]
|
|
52
|
-
/** LOESS fitted values for group 2 (case) */
|
|
53
|
-
group2_fitted: number[]
|
|
54
|
-
/** Lower 95% CI bound for group 2 */
|
|
55
|
-
group2_ci_lower: number[]
|
|
56
|
-
/** Upper 95% CI bound for group 2 */
|
|
57
|
-
group2_ci_upper: number[]
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export type DmrDiagnostic = {
|
|
61
|
-
probes: {
|
|
62
|
-
positions: number[]
|
|
63
|
-
mean_group1: (number | null)[]
|
|
64
|
-
mean_group2: (number | null)[]
|
|
65
|
-
fdr: number[]
|
|
66
|
-
logFC: (number | null)[]
|
|
67
|
-
}
|
|
68
|
-
probe_spacings: number[]
|
|
69
|
-
/** LOESS smoothed curves with 95% CI for both groups */
|
|
70
|
-
loess?: DmrLoessCurves
|
|
71
|
-
/** Total probes analyzed genome-wide for eBayes */
|
|
72
|
-
total_probes_analyzed?: number
|
|
73
|
-
/** Peak RSS memory in MB */
|
|
74
|
-
peak_memory_mb?: number
|
|
75
|
-
/** Starting RSS memory in MB */
|
|
76
|
-
start_memory_mb?: number
|
|
77
|
-
/** Total elapsed time in milliseconds */
|
|
78
|
-
elapsed_ms?: number
|
|
79
|
-
/** Server-rendered track PNG as data URI (Rust backend only) */
|
|
80
|
-
track_png?: string | null
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export type TermdbDmrSuccessResponse = {
|
|
84
|
-
status: 'ok'
|
|
85
|
-
dmrs: {
|
|
86
|
-
chr: string
|
|
87
|
-
start: number
|
|
88
|
-
stop: number
|
|
89
|
-
/** Number of CpG sites in this DMR */
|
|
90
|
-
no_cpgs: number
|
|
91
|
-
/** Minimum FDR from the kernel-smoothed estimate across the region */
|
|
92
|
-
min_smoothed_fdr: number
|
|
93
|
-
/** Harmonic mean of individual CpG FDR-corrected p-values */
|
|
94
|
-
HMFDR: number
|
|
95
|
-
/** Maximum methylation difference (beta-scale) within the DMR */
|
|
96
|
-
maxdiff: number
|
|
97
|
-
/** Mean methylation difference across the DMR */
|
|
98
|
-
meandiff: number
|
|
99
|
-
/** hyper = case hypermethylated relative to control; hypo = opposite */
|
|
100
|
-
direction: 'hyper' | 'hypo'
|
|
101
|
-
/** Comma-separated gene symbols overlapping the DMR */
|
|
102
|
-
overlapping_genes?: string | null
|
|
103
|
-
}[]
|
|
104
|
-
/** Diagnostic data: per-CpG probe means and statistics */
|
|
105
|
-
diagnostic?: DmrDiagnostic
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export type TermdbDmrErrorResponse = {
|
|
109
|
-
error: string
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export type TermdbDmrResponse = TermdbDmrSuccessResponse | TermdbDmrErrorResponse
|
|
113
|
-
|
|
114
|
-
export const TermdbDmrPayload: RoutePayload = {
|
|
115
|
-
request: {
|
|
116
|
-
typeId: 'TermdbDmrRequest'
|
|
117
|
-
},
|
|
118
|
-
response: {
|
|
119
|
-
typeId: 'TermdbDmrResponse'
|
|
120
|
-
}
|
|
121
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.ts'
|
|
2
|
-
|
|
3
|
-
export type FilterTermValuesRequest = {
|
|
4
|
-
terms: any[]
|
|
5
|
-
filters: { [termid: string]: any[] }
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export type FilterTermValuesResponse = {
|
|
9
|
-
[termId: string]: {
|
|
10
|
-
label: string
|
|
11
|
-
value: string
|
|
12
|
-
disabled?: boolean
|
|
13
|
-
}[]
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const FilterTermValuesPayload: RoutePayload = {
|
|
17
|
-
request: {
|
|
18
|
-
typeId: 'FilterTermValuesRequest'
|
|
19
|
-
},
|
|
20
|
-
response: {
|
|
21
|
-
typeId: 'FilterTermValuesResponse'
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.ts'
|
|
2
|
-
|
|
3
|
-
export type TermdbIsoformAvailabilityRequest = {
|
|
4
|
-
genome: string
|
|
5
|
-
dslabel: string
|
|
6
|
-
/** candidate ENST IDs to check */
|
|
7
|
-
isoforms: string[]
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type TermdbIsoformAvailabilityResponse = {
|
|
11
|
-
/** subset of input isoforms that have data in the HDF5 */
|
|
12
|
-
available: string[]
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const TermdbIsoformAvailabilityPayload: RoutePayload = {
|
|
16
|
-
request: {
|
|
17
|
-
typeId: 'TermdbIsoformAvailabilityRequest'
|
|
18
|
-
},
|
|
19
|
-
response: {
|
|
20
|
-
typeId: 'TermdbIsoformAvailabilityResponse'
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
import type { Filter } from '../filter.ts'
|
|
3
|
-
|
|
4
|
-
export type NumericCategoriesRequest = {
|
|
5
|
-
/** a user-defined genome label in the serverconfig.json, hg38, hg19, mm10, etc */
|
|
6
|
-
genome: string
|
|
7
|
-
/** a user-defined dataset label in the serverconfig.json, such as ClinVar, SJLife, GDC, etc */
|
|
8
|
-
dslabel: string
|
|
9
|
-
embedder: string
|
|
10
|
-
/** term id string */
|
|
11
|
-
tid: string
|
|
12
|
-
filter?: Filter
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface entries {
|
|
16
|
-
value: number
|
|
17
|
-
samplecount: number
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type NumericCategoriesResponse = {
|
|
21
|
-
lst: entries[]
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const numericCategoriesPayload: RoutePayload = {
|
|
25
|
-
request: {
|
|
26
|
-
typeId: 'NumericCategoriesRequest'
|
|
27
|
-
},
|
|
28
|
-
response: {
|
|
29
|
-
typeId: 'NumericCategoriesResponse'
|
|
30
|
-
},
|
|
31
|
-
// examples: []
|
|
32
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
import type { Filter } from '../filter.ts'
|
|
3
|
-
import type { Term } from '../terms/term.ts'
|
|
4
|
-
|
|
5
|
-
export type PercentileRequest = {
|
|
6
|
-
/** a user-defined genome label in the serverconfig.json, hg38, hg19, mm10, etc */
|
|
7
|
-
genome: string
|
|
8
|
-
/** a user-defined dataset label in the serverconfig.json, such as ClinVar, SJLife, GDC, etc */
|
|
9
|
-
dslabel: string
|
|
10
|
-
embedder: string
|
|
11
|
-
getpercentile: number[]
|
|
12
|
-
/** term id string */
|
|
13
|
-
term: Term
|
|
14
|
-
filter?: Filter
|
|
15
|
-
filter0?: any
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type PercentileResponse = {
|
|
19
|
-
values: number[]
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const percentilePayload: RoutePayload = {
|
|
23
|
-
request: {
|
|
24
|
-
typeId: 'PercentileRequest'
|
|
25
|
-
},
|
|
26
|
-
response: {
|
|
27
|
-
typeId: 'PercentileResponse'
|
|
28
|
-
},
|
|
29
|
-
examples: [
|
|
30
|
-
{
|
|
31
|
-
request: {
|
|
32
|
-
body: {
|
|
33
|
-
genome: 'hg38-test',
|
|
34
|
-
dslabel: 'TermdbTest',
|
|
35
|
-
embedder: 'localhost',
|
|
36
|
-
getpercentile: [50],
|
|
37
|
-
term: { id: 'agedx' },
|
|
38
|
-
filter: {
|
|
39
|
-
type: 'tvslst',
|
|
40
|
-
in: true,
|
|
41
|
-
join: '',
|
|
42
|
-
lst: [
|
|
43
|
-
{
|
|
44
|
-
tag: 'cohortFilter',
|
|
45
|
-
type: 'tvs',
|
|
46
|
-
tvs: {
|
|
47
|
-
term: {
|
|
48
|
-
name: 'Cohort',
|
|
49
|
-
type: 'categorical',
|
|
50
|
-
values: { ABC: { label: 'ABC' }, XYZ: { label: 'XYZ' } },
|
|
51
|
-
id: 'subcohort',
|
|
52
|
-
isleaf: false,
|
|
53
|
-
groupsetting: { disabled: true }
|
|
54
|
-
},
|
|
55
|
-
values: [{ key: 'ABC', label: 'ABC' }]
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
response: {
|
|
63
|
-
header: { status: 200 }
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
|
|
3
|
-
export type ProfileFormScoresRequest = {
|
|
4
|
-
scoreTerms: any[]
|
|
5
|
-
scScoreTerms?: any[]
|
|
6
|
-
filter?: any
|
|
7
|
-
userSites?: string[]
|
|
8
|
-
site?: string
|
|
9
|
-
isAggregate?: boolean
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type ProfileFormScoresResponse = {
|
|
13
|
-
term2Score: { [termId: string]: { [key: string]: number } }
|
|
14
|
-
sites: { label: string; value: string }[]
|
|
15
|
-
hospital?: string
|
|
16
|
-
n: number
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const ProfileFormScoresPayload: RoutePayload = {
|
|
20
|
-
request: {
|
|
21
|
-
typeId: 'ProfileFormScoresRequest'
|
|
22
|
-
},
|
|
23
|
-
response: {
|
|
24
|
-
typeId: 'ProfileFormScoresResponse'
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
|
|
3
|
-
export type ProfileForms2ScoresRequest = {
|
|
4
|
-
// q is optional: term wrappers from getMultivalueTWs() carry no q field,
|
|
5
|
-
// and JSON.stringify drops `q: undefined`, so the field may be absent on the wire.
|
|
6
|
-
scoreTerms: { term: { id: string }; q?: any }[]
|
|
7
|
-
scScoreTerms?: { term: { id: string }; q?: any }[]
|
|
8
|
-
filter?: any
|
|
9
|
-
filterByUserSites?: boolean
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type ProfileForms2ScoresResponse = {
|
|
13
|
-
term2Score: { [termId: string]: { [category: string]: number } }
|
|
14
|
-
sites: { label: string; value: string }[]
|
|
15
|
-
n: number
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const ProfileForms2ScoresPayload: RoutePayload = {
|
|
19
|
-
request: {
|
|
20
|
-
typeId: 'ProfileForms2ScoresRequest'
|
|
21
|
-
},
|
|
22
|
-
response: {
|
|
23
|
-
typeId: 'ProfileForms2ScoresResponse'
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
|
|
3
|
-
export type ProfileScoresRequest = {
|
|
4
|
-
scoreTerms: { score: any; maxScore?: any }[]
|
|
5
|
-
filter?: any
|
|
6
|
-
isRadarFacility?: boolean
|
|
7
|
-
userSites?: string[]
|
|
8
|
-
sites?: string[]
|
|
9
|
-
isAggregate?: boolean
|
|
10
|
-
facilityTW?: any
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type ProfileScoresResponse = {
|
|
14
|
-
term2Score: { [termId: string]: number }
|
|
15
|
-
sites: { label: string; value: string }[]
|
|
16
|
-
hospital?: string
|
|
17
|
-
n: number
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const ProfileScoresPayload: RoutePayload = {
|
|
21
|
-
request: {
|
|
22
|
-
typeId: 'ProfileScoresRequest'
|
|
23
|
-
},
|
|
24
|
-
response: {
|
|
25
|
-
typeId: 'ProfileScoresResponse'
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
|
|
3
|
-
export type TermdbProteomeRequest = any
|
|
4
|
-
export type TermdbProteomeResponse = any
|
|
5
|
-
|
|
6
|
-
export const termdbProteomePayload: RoutePayload = {
|
|
7
|
-
request: {
|
|
8
|
-
typeId: 'TermdbProteomeRequest'
|
|
9
|
-
},
|
|
10
|
-
response: {
|
|
11
|
-
typeId: 'TermdbProteomeResponse'
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
|
|
3
|
-
export type RootTermRequest = {
|
|
4
|
-
/** a user-defined genome label in the serverconfig.json, hg38, hg19, mm10, etc */
|
|
5
|
-
genome: string
|
|
6
|
-
/** a user-defined dataset label in the serverconfig.json, such as ClinVar, SJLife, GDC, etc */
|
|
7
|
-
dslabel: string
|
|
8
|
-
embedder: string
|
|
9
|
-
default_rootterm: number
|
|
10
|
-
cohortValues: string
|
|
11
|
-
treeFilter: string
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface Entries {
|
|
15
|
-
name: string
|
|
16
|
-
id: string
|
|
17
|
-
isleaf: boolean
|
|
18
|
-
included_types: string[]
|
|
19
|
-
child_types: string[]
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type RootTermResponse = {
|
|
23
|
-
lst: Entries[]
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export const rootTermPayload: RoutePayload = {
|
|
27
|
-
request: {
|
|
28
|
-
typeId: 'RootTermRequest'
|
|
29
|
-
},
|
|
30
|
-
response: {
|
|
31
|
-
typeId: 'RootTermResponse'
|
|
32
|
-
},
|
|
33
|
-
examples: [
|
|
34
|
-
{
|
|
35
|
-
request: {
|
|
36
|
-
body: {
|
|
37
|
-
genome: 'hg38-test',
|
|
38
|
-
dslabel: 'TermdbTest',
|
|
39
|
-
embedder: 'localhost',
|
|
40
|
-
default_rootterm: 1,
|
|
41
|
-
cohortValues: 'ABC'
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
response: {
|
|
45
|
-
header: { status: 200 }
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.ts'
|
|
2
|
-
|
|
3
|
-
export type RunChartRequest = {
|
|
4
|
-
genome: string
|
|
5
|
-
dslabel: string
|
|
6
|
-
/**
|
|
7
|
-
* term wrapper for x axis: { term, q }.
|
|
8
|
-
* runChart2: q.mode='continuous' → 1 series.
|
|
9
|
-
* runChart2Period: q.mode='discrete' (with bins) → multiple series by period.
|
|
10
|
-
*/
|
|
11
|
-
xtw: { term: { id: string }; q?: { mode?: 'continuous' | 'discrete' }; $id?: string }
|
|
12
|
-
/** term wrapper for y axis: { term, q }. When omitted, chart renders as frequency (count per time bucket). */
|
|
13
|
-
ytw?: { term: { id: string }; q?: { mode?: string }; $id?: string }
|
|
14
|
-
aggregation?: 'median'
|
|
15
|
-
/** When true (frequency mode only), series Y values are cumulative counts. */
|
|
16
|
-
showCumulativeFrequency?: boolean
|
|
17
|
-
filter?: any
|
|
18
|
-
__protected__?: any // auth token for accessing protected data
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type RunChartSeries = {
|
|
22
|
-
/** period/series identifier */
|
|
23
|
-
seriesId?: string
|
|
24
|
-
/** calculated Y median value for this curve */
|
|
25
|
-
median: number
|
|
26
|
-
points: Point[]
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type RunChartSuccessResponse = {
|
|
30
|
-
status: 'ok'
|
|
31
|
-
/** each series is one curve, with a median. a runchart may show 1 or multiple curves */
|
|
32
|
-
series: RunChartSeries[]
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export type RunChartErrorResponse = {
|
|
36
|
-
error: string
|
|
37
|
-
/** Always empty on error; present so response shape is consistent for clients/checkers. */
|
|
38
|
-
series: RunChartSeries[]
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/** Discriminated union: server returns success shape on 200 or error shape with series: []. */
|
|
42
|
-
export type RunChartResponse = RunChartSuccessResponse | RunChartErrorResponse
|
|
43
|
-
|
|
44
|
-
export function isRunChartSuccess(r: RunChartResponse): r is RunChartSuccessResponse {
|
|
45
|
-
return 'status' in r && r.status === 'ok'
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
type Point = {
|
|
49
|
-
/** decimal year, e.g. 2024.21321321 */
|
|
50
|
-
x: number
|
|
51
|
-
/** text of human-readable x value, e.g. "Jan 2024" which may be by the months, depends on dataset customization */
|
|
52
|
-
xName: string
|
|
53
|
-
/** timeline, e.g. number of days */
|
|
54
|
-
y: number
|
|
55
|
-
/** number of samples with this timeline at this time point */
|
|
56
|
-
sampleCount: number
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export const runChartPayload: RoutePayload = {
|
|
60
|
-
request: {
|
|
61
|
-
typeId: 'RunChartRequest'
|
|
62
|
-
},
|
|
63
|
-
response: {
|
|
64
|
-
typeId: 'RunChartResponse'
|
|
65
|
-
}
|
|
66
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
|
|
3
|
-
export type TermdbSampleImagesRequest = {
|
|
4
|
-
genome: string
|
|
5
|
-
/** Ds label */
|
|
6
|
-
dslabel: string
|
|
7
|
-
sampleId: number
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type Image = {
|
|
11
|
-
src: any
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type TermdbSampleImagesResponse = {
|
|
15
|
-
images: Image[]
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const termdbSampleImagesPayload: RoutePayload = {
|
|
19
|
-
request: {
|
|
20
|
-
typeId: 'TermdbSampleImagesRequest'
|
|
21
|
-
},
|
|
22
|
-
response: {
|
|
23
|
-
typeId: 'TermdbSampleImagesResponse'
|
|
24
|
-
}
|
|
25
|
-
//examples: []
|
|
26
|
-
}
|