@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,19 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.ts'
|
|
2
|
-
|
|
3
|
-
export type ClearWSImagesSessionsRequest = {
|
|
4
|
-
sessions: Array<any>
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export type ClearWSImagesSessionsResponse = {
|
|
8
|
-
message: string
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const clearWSImagesSessionsPayload: RoutePayload = {
|
|
12
|
-
request: {
|
|
13
|
-
typeId: 'ClearWSImagesSessionsRequest'
|
|
14
|
-
},
|
|
15
|
-
response: {
|
|
16
|
-
typeId: 'ClearWSImagesSessionsResponse'
|
|
17
|
-
}
|
|
18
|
-
// examples: []
|
|
19
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
import type { TermWrapper } from '../terms/tw.ts'
|
|
3
|
-
import type { Filter } from '../filter.ts'
|
|
4
|
-
|
|
5
|
-
/** */
|
|
6
|
-
export type CorrelationVolcanoRequest = {
|
|
7
|
-
genome: string
|
|
8
|
-
dslabel: string
|
|
9
|
-
filter?: Filter
|
|
10
|
-
filter0?: any // gdc
|
|
11
|
-
/** feature tw */
|
|
12
|
-
featureTw: TermWrapper
|
|
13
|
-
/** variables */
|
|
14
|
-
variableTwLst: TermWrapper[]
|
|
15
|
-
/** correlation method */
|
|
16
|
-
correlationMethod: 'pearson' | 'spearman'
|
|
17
|
-
__protected__: any
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type CorrelationVolcanoResponse = {
|
|
21
|
-
/** Terms with not enough vectors to calculate correlation to be shown in legend */
|
|
22
|
-
skippedVariables: {
|
|
23
|
-
/** matching tw $id */
|
|
24
|
-
tw$id: string
|
|
25
|
-
}[]
|
|
26
|
-
/** each element is test result of one variable corresponding to variableTwLst */
|
|
27
|
-
variableItems: VariableItemEntry[]
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type VariableItemEntry = {
|
|
31
|
-
/** correlation coefficient, -1 to 1 */
|
|
32
|
-
correlation: number
|
|
33
|
-
/** pvalue */
|
|
34
|
-
original_pvalue: number
|
|
35
|
-
/** pvalue */
|
|
36
|
-
adjusted_pvalue: number
|
|
37
|
-
/** tw.$id, for client to match the item with variableTwLst */
|
|
38
|
-
tw$id: string
|
|
39
|
-
/** number of samples analyzed. samples not having complete data for all terms will be excluded, thus size may be lower than current cohort */
|
|
40
|
-
sampleSize: number
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export const CorrelationVolcanoPayload: RoutePayload = {
|
|
44
|
-
request: {
|
|
45
|
-
typeId: 'CorrelationVolcanoRequest'
|
|
46
|
-
},
|
|
47
|
-
response: {
|
|
48
|
-
typeId: 'CorrelationVolcanoResponse'
|
|
49
|
-
}
|
|
50
|
-
//examples: []
|
|
51
|
-
}
|
package/src/routes/dataset.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
|
|
3
|
-
export type DatasetRequest = any
|
|
4
|
-
export type DatasetResponse = any
|
|
5
|
-
|
|
6
|
-
export const datasetPayload: RoutePayload = {
|
|
7
|
-
request: {
|
|
8
|
-
typeId: 'DatasetRequest'
|
|
9
|
-
},
|
|
10
|
-
response: {
|
|
11
|
-
typeId: 'DatasetResponse'
|
|
12
|
-
}
|
|
13
|
-
// examples: []
|
|
14
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.ts'
|
|
2
|
-
import type { TileSelection } from './aiProjectSelectedWSImages.ts'
|
|
3
|
-
|
|
4
|
-
export type DeleteWSITileSelectionRequest = {
|
|
5
|
-
genome: string
|
|
6
|
-
dslabel: string
|
|
7
|
-
projectId: number
|
|
8
|
-
tileSelection: TileSelection
|
|
9
|
-
classID: number
|
|
10
|
-
wsimage: string
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type DeleteWSITileSelectionResponse = {
|
|
14
|
-
status: string
|
|
15
|
-
error?: string
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const deleteWSITileSelectionPayload: RoutePayload = {
|
|
19
|
-
request: {
|
|
20
|
-
typeId: 'DeleteWSITileSelectionRequest'
|
|
21
|
-
},
|
|
22
|
-
response: {
|
|
23
|
-
typeId: 'DeleteWSITileSelectionResponse'
|
|
24
|
-
}
|
|
25
|
-
}
|
package/src/routes/dsdata.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
|
|
3
|
-
export type DsDataRequest = any
|
|
4
|
-
export type DsDataResponse = any
|
|
5
|
-
|
|
6
|
-
export const dsDataPayload: RoutePayload = {
|
|
7
|
-
request: {
|
|
8
|
-
typeId: 'DsDataRequest'
|
|
9
|
-
},
|
|
10
|
-
response: {
|
|
11
|
-
typeId: 'DsDataResponse'
|
|
12
|
-
}
|
|
13
|
-
// examples: []
|
|
14
|
-
}
|
package/src/routes/dzimages.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
|
|
3
|
-
export type DZImagesRequest = {
|
|
4
|
-
genome: string
|
|
5
|
-
dslabel: string
|
|
6
|
-
file: string
|
|
7
|
-
|
|
8
|
-
// params: {
|
|
9
|
-
// [key: string]: any
|
|
10
|
-
// }
|
|
11
|
-
sampleId?: string
|
|
12
|
-
sample_id?: string
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type DZImagesResponse = string
|
|
16
|
-
|
|
17
|
-
export const dzImagesPayload: RoutePayload = {
|
|
18
|
-
request: {
|
|
19
|
-
typeId: 'DZImagesRequest'
|
|
20
|
-
},
|
|
21
|
-
response: {
|
|
22
|
-
typeId: 'DZImagesResponse'
|
|
23
|
-
}
|
|
24
|
-
// examples: []
|
|
25
|
-
}
|
package/src/routes/filter.gdc.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/* the gdc cohort filter object
|
|
2
|
-
is invisible on pp ui
|
|
3
|
-
always used as "filter0" property in pp client code and in request to pp back
|
|
4
|
-
pp does not compute on it, on pp backend, it's passed to gdc api queries
|
|
5
|
-
|
|
6
|
-
FIXME type is not properly defined yet
|
|
7
|
-
*/
|
|
8
|
-
export type GdcFilter0 = {
|
|
9
|
-
op: string
|
|
10
|
-
// TODO: this should allow an array of objects, and/or nesting ???
|
|
11
|
-
content: {
|
|
12
|
-
field: string
|
|
13
|
-
value: string
|
|
14
|
-
}
|
|
15
|
-
}
|
package/src/routes/gdc.grin2.ts
DELETED
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Represents a file from GDC API (MAF)
|
|
5
|
-
*/
|
|
6
|
-
export type GdcGRIN2File = {
|
|
7
|
-
/** A string representing the file's UUID, can be accessed via https://api.gdc.cancer.gov/data/<uuid> */
|
|
8
|
-
id: string
|
|
9
|
-
/** A string representing a submitter ID for the case associated with this file */
|
|
10
|
-
case_submitter_id: string
|
|
11
|
-
/** Case UUID */
|
|
12
|
-
case_uuid: string
|
|
13
|
-
/** An integer as the byte size of this file, compressed */
|
|
14
|
-
file_size: number
|
|
15
|
-
/** Array of strings, each is 'tumor descriptor+tissue type', for all samples involved in generating the file */
|
|
16
|
-
sample_types: string[]
|
|
17
|
-
/** A string as the project id of the case */
|
|
18
|
-
project_id: string
|
|
19
|
-
/** The format of the file (MAF) */
|
|
20
|
-
file_format?: 'MAF'
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
type ExperimentalStrategy = {
|
|
24
|
-
wxs: 'WXS'
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Request parameters for GRIN2 file listing
|
|
29
|
-
*/
|
|
30
|
-
export type GdcGRIN2listRequest = {
|
|
31
|
-
/** JSON, optional GDC cohort filter to restrict cases */
|
|
32
|
-
filter0?: any
|
|
33
|
-
|
|
34
|
-
/** Options for MAF file retrieval. Presence indicates MAF files should be returned */
|
|
35
|
-
mafOptions?: {
|
|
36
|
-
/** Name of experimental strategy to get files for */
|
|
37
|
-
experimentalStrategy: ExperimentalStrategy
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/** Options for CNV file retrieval. Presence indicates CNV files should be returned */
|
|
41
|
-
cnvOptions?: {
|
|
42
|
-
/** Data type for CNV analysis */
|
|
43
|
-
dataType?: string
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/** Options for fusion file retrieval. Presence indicates fusion files should be returned (for future use) */
|
|
47
|
-
fusionOptions?: any
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Response for GRIN2 file listing
|
|
52
|
-
*/
|
|
53
|
-
export type GdcGRIN2listResponse = {
|
|
54
|
-
/** all maf-related results when mafOptions is supplied */
|
|
55
|
-
mafFiles?: {
|
|
56
|
-
// TODO suggest to move above maf-related results under mafFiles{}
|
|
57
|
-
/** list of maf files returned to client */
|
|
58
|
-
files: GdcGRIN2File[]
|
|
59
|
-
/** Total number of files found by API (in case bigger than files.length) */
|
|
60
|
-
filesTotal: number
|
|
61
|
-
/** Maximum total size of files allowed, for indicating on UI while selecting files */
|
|
62
|
-
maxTotalSizeCompressed: number
|
|
63
|
-
/** File counts by type */
|
|
64
|
-
fileCounts?: {
|
|
65
|
-
maf: number
|
|
66
|
-
}
|
|
67
|
-
/** Applied filters (for UI reference) */
|
|
68
|
-
appliedFilters?: {
|
|
69
|
-
experimentalStrategy?: ExperimentalStrategy
|
|
70
|
-
}
|
|
71
|
-
/** Deduplication stats */
|
|
72
|
-
deduplicationStats?: {
|
|
73
|
-
originalFileCount: number
|
|
74
|
-
deduplicatedFileCount: number
|
|
75
|
-
duplicatesRemoved: number
|
|
76
|
-
caseDetails?: Array<{ caseName: string; fileCount: number; keptFileSize: number }>
|
|
77
|
-
filteredFiles: Array<{ fileId: string; fileSize: number; reason: string }>
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
/** all cnv-related results when cnvOptions is supplied */
|
|
81
|
-
cnvFiles?: {
|
|
82
|
-
/** list of cnv files returned to client */
|
|
83
|
-
files: GdcGRIN2File[]
|
|
84
|
-
/** Maximum total size of files allowed, for indicating on UI while selecting files */
|
|
85
|
-
maxTotalSizeCompressed: number
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Parameters for running GRIN2 analysis
|
|
91
|
-
*/
|
|
92
|
-
|
|
93
|
-
export type RunGRIN2Request = {
|
|
94
|
-
/** Case files to analyze - maps case ID to file information */
|
|
95
|
-
caseFiles: {
|
|
96
|
-
[caseId: string]: {
|
|
97
|
-
maf?: string
|
|
98
|
-
cnv?: string
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
/** Options for filtering MAF file content */
|
|
102
|
-
mafOptions?: {
|
|
103
|
-
/** Minimum total depth of returned MAF files */
|
|
104
|
-
minTotalDepth?: number // Default: 10
|
|
105
|
-
/** Minimum alternate allele count of returned MAF files */
|
|
106
|
-
minAltAlleleCount?: number // Default: 2
|
|
107
|
-
/** String array of consequence types */
|
|
108
|
-
consequences?: string[]
|
|
109
|
-
/** Maximum mutation count cutoff for highly mutated scenarios */
|
|
110
|
-
hyperMutator?: number
|
|
111
|
-
}
|
|
112
|
-
/** Options for filtering CNV file content*/
|
|
113
|
-
cnvOptions?: {
|
|
114
|
-
/** Threshold for copy number loss detection */
|
|
115
|
-
lossThreshold?: number // Default: -0.4
|
|
116
|
-
/** Threshold for copy number gain detection */
|
|
117
|
-
gainThreshold?: number // Default: 0.3
|
|
118
|
-
/** Maximum segment length to include (0 = no filter) */
|
|
119
|
-
segLength?: number // Default: 0
|
|
120
|
-
/** Hypermutator max cut off for CNVs per case */
|
|
121
|
-
hyperMutator?: number // Default: 500
|
|
122
|
-
}
|
|
123
|
-
/** Device pixel ratio for rendering */
|
|
124
|
-
devicePixelRatio?: number // 2
|
|
125
|
-
/** Plot dimensions */
|
|
126
|
-
plot_width?: number // 1000
|
|
127
|
-
plot_height?: number // 400
|
|
128
|
-
/** Radius of the PNG rendered dots */
|
|
129
|
-
pngDotRadius?: number // 2
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/** Error entry from failed file downloads */
|
|
133
|
-
export type RustErrorEntry = {
|
|
134
|
-
case_id: string
|
|
135
|
-
data_type: string
|
|
136
|
-
error_type: string
|
|
137
|
-
error_details: string
|
|
138
|
-
attempts_made: number
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/** Summary information from Rust processing */
|
|
142
|
-
export type RustSummary = {
|
|
143
|
-
type: 'summary'
|
|
144
|
-
total_files: number
|
|
145
|
-
successful_files: number
|
|
146
|
-
failed_files: number
|
|
147
|
-
errors: RustErrorEntry[]
|
|
148
|
-
filtered_records: number
|
|
149
|
-
filtered_maf_records: number
|
|
150
|
-
filtered_cnv_records: number
|
|
151
|
-
included_maf_records: number
|
|
152
|
-
included_cnv_records: number
|
|
153
|
-
|
|
154
|
-
/** The complex nested structure of the per case object
|
|
155
|
-
* Records filtered by case, with MAF and CNV statistics
|
|
156
|
-
*/
|
|
157
|
-
filtered_records_by_case: Record<
|
|
158
|
-
string,
|
|
159
|
-
{
|
|
160
|
-
maf: {
|
|
161
|
-
matched_consequences: Record<string, any>
|
|
162
|
-
rejected_consequences: Record<string, any>
|
|
163
|
-
t_alt_count: number
|
|
164
|
-
t_depth: number
|
|
165
|
-
invalid_rows: number
|
|
166
|
-
excluded_by_min_depth: number
|
|
167
|
-
excluded_by_min_alt_count: number
|
|
168
|
-
excluded_by_consequence_type: number
|
|
169
|
-
total_processed: number
|
|
170
|
-
total_included: number
|
|
171
|
-
skipped_chromosomes: Record<string, number>
|
|
172
|
-
}
|
|
173
|
-
cnv: {
|
|
174
|
-
segment_mean: number
|
|
175
|
-
seg_length: number
|
|
176
|
-
invalid_rows: number
|
|
177
|
-
excluded_by_loss_threshold: number
|
|
178
|
-
excluded_by_gain_threshold: number
|
|
179
|
-
excluded_by_segment_length: number
|
|
180
|
-
total_processed: number
|
|
181
|
-
total_included: number
|
|
182
|
-
skipped_chromosomes: Record<string, number>
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
>
|
|
186
|
-
|
|
187
|
-
hyper_mutator_records: Record<string, string[]>
|
|
188
|
-
excluded_by_max_record: Record<string, string[]>
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/** Structured output from Rust GRIN2 processing */
|
|
192
|
-
export type RustGRIN2Result = {
|
|
193
|
-
/** String of successful file data */
|
|
194
|
-
successful_data: string
|
|
195
|
-
/** Array of failed file information */
|
|
196
|
-
failed_files: RustErrorEntry[]
|
|
197
|
-
/** Summary statistics */
|
|
198
|
-
summary: RustSummary
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Response for GRIN2 analysis run
|
|
203
|
-
*/
|
|
204
|
-
export type RunGRIN2Response = {
|
|
205
|
-
/** Status of the analysis */
|
|
206
|
-
status: 'success' | 'error'
|
|
207
|
-
/** Error message if status is 'error' */
|
|
208
|
-
error?: string
|
|
209
|
-
/** Path to the generated image if status is 'success' */
|
|
210
|
-
pngImg?: string
|
|
211
|
-
/** Download status */
|
|
212
|
-
download?: any
|
|
213
|
-
/** Table of top genes indentified by analysis */
|
|
214
|
-
topGeneTable?: any
|
|
215
|
-
/** Data from Rust for making the analysis summary div */
|
|
216
|
-
rustResult?: RustGRIN2Result
|
|
217
|
-
/** Timing info from nodejs */
|
|
218
|
-
timing?: {
|
|
219
|
-
/** Time taken to run Rust processing */
|
|
220
|
-
rustProcessingTime: number
|
|
221
|
-
/** Time taken to run GRIN2 processing */
|
|
222
|
-
grin2Time: number
|
|
223
|
-
/** Total time taken for the entire run */
|
|
224
|
-
totalTime: number
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* Route payload definitions for type checking
|
|
229
|
-
*/
|
|
230
|
-
export const gdcGRIN2listPayload: RoutePayload = {
|
|
231
|
-
request: {
|
|
232
|
-
typeId: 'GdcGRIN2listRequest'
|
|
233
|
-
},
|
|
234
|
-
response: {
|
|
235
|
-
typeId: 'GdcGRIN2listResponse'
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
export const runGRIN2Payload: RoutePayload = {
|
|
240
|
-
request: {
|
|
241
|
-
typeId: 'RunGRIN2Request'
|
|
242
|
-
},
|
|
243
|
-
response: {
|
|
244
|
-
typeId: 'RunGRIN2Response'
|
|
245
|
-
}
|
|
246
|
-
}
|
package/src/routes/gdc.maf.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
//import GdcFilter0 from './filter.gdc'
|
|
3
|
-
|
|
4
|
-
// an object representing gdc maf file, to be shown on client table
|
|
5
|
-
|
|
6
|
-
export type GdcMafFile = {
|
|
7
|
-
/** A string representing the file's UUID (Universally Unique Identifier) , can be accessed via https://api.gdc.cancer.gov/data/<uuid>*/
|
|
8
|
-
id: string
|
|
9
|
-
/** A string representing a submitter ID for the case associated with this file */
|
|
10
|
-
case_submitter_id: string
|
|
11
|
-
// case uuid
|
|
12
|
-
case_uuid: string
|
|
13
|
-
/** An integer as the byte size of this file, compressed */
|
|
14
|
-
file_size: number
|
|
15
|
-
/** Array of strings, each is 'tumor descriptor+tissue type', for all samples involved in generating the maf file */
|
|
16
|
-
sample_types: string[]
|
|
17
|
-
/** A string representing the type of workflow used to generate or process this file */
|
|
18
|
-
//workflow_type: string
|
|
19
|
-
/** A string as the project id of the case */
|
|
20
|
-
project_id: string
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export type ExperimentalStrategy = {
|
|
24
|
-
targeted: 'Targeted Sequencing'
|
|
25
|
-
wxs: 'WXS'
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type GdcMafRequest = {
|
|
29
|
-
/** Name of exp strategy to get maf files for */
|
|
30
|
-
experimentalStrategy: ExperimentalStrategy
|
|
31
|
-
/** JSON, optional GDC cohort filter to restrict cases; if supplied, will only get maf files for these cases. the filter is readonly and pass to GDC API query */
|
|
32
|
-
filter0?: any
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export type GdcMafResponse = {
|
|
36
|
-
/** List of file objects passing filter and to be displayed on client */
|
|
37
|
-
files: GdcMafFile[]
|
|
38
|
-
/** Total number of files found by API (in case bigger than files.length) */
|
|
39
|
-
filesTotal: number
|
|
40
|
-
/** Maximum total size of maf files allowed, for indicating on ui while selecting files */
|
|
41
|
-
maxTotalSizeCompressed: number
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export const gdcMafPayload: RoutePayload = {
|
|
45
|
-
request: {
|
|
46
|
-
typeId: 'GdcMafRequest'
|
|
47
|
-
},
|
|
48
|
-
response: {
|
|
49
|
-
typeId: 'GdcMafResponse'
|
|
50
|
-
}
|
|
51
|
-
//examples: []
|
|
52
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.ts'
|
|
2
|
-
|
|
3
|
-
export type GdcMafBuildRequest = {
|
|
4
|
-
/** List of input file uuids in gdc */
|
|
5
|
-
fileIdLst: string[]
|
|
6
|
-
/** List of columns in output MAF file */
|
|
7
|
-
columns: string[]
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type GdcMafBuildResponse = any
|
|
11
|
-
|
|
12
|
-
export const GdcMafPayload: RoutePayload = {
|
|
13
|
-
request: {
|
|
14
|
-
typeId: 'GdcMafBuildRequest'
|
|
15
|
-
},
|
|
16
|
-
response: {
|
|
17
|
-
typeId: 'GdcMafBuildResponse'
|
|
18
|
-
}
|
|
19
|
-
//examples: []
|
|
20
|
-
}
|
package/src/routes/genelookup.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
|
|
3
|
-
export type GeneLookupRequest = {
|
|
4
|
-
input: string
|
|
5
|
-
genome: string
|
|
6
|
-
deep: boolean
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type GeneLookupResponse = {
|
|
10
|
-
error?: string
|
|
11
|
-
hits: string[]
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const geneLookupPayload: RoutePayload = {
|
|
15
|
-
request: {
|
|
16
|
-
typeId: 'GeneLookupRequest'
|
|
17
|
-
},
|
|
18
|
-
response: {
|
|
19
|
-
typeId: 'GeneLookupResponse'
|
|
20
|
-
}
|
|
21
|
-
//examples: []
|
|
22
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
import type { DERequest } from './termdb.DE.js'
|
|
3
|
-
|
|
4
|
-
export type GenesetEnrichmentRequest = {
|
|
5
|
-
/** Sample genes to be queried. Optional when `cacheId` is given — the
|
|
6
|
-
* server loads genes from the DE cache file in that case. */
|
|
7
|
-
genes?: string[]
|
|
8
|
-
/** Fold changes aligned to `genes`. Optional when `cacheId` is given. */
|
|
9
|
-
fold_change?: number[]
|
|
10
|
-
/** DE cache ID (returned by the volcano/DE route). Deterministic hash
|
|
11
|
-
* of the DE inputs. If set, the server reads genes + fold_change from
|
|
12
|
-
* the cache file and ignores any `genes`/`fold_change` fields sent in
|
|
13
|
-
* this request. */
|
|
14
|
-
cacheId?: string
|
|
15
|
-
/** Snapshot of the original DE request that produced `cacheId`. When
|
|
16
|
-
* the cache file is missing (TTL eviction or farm node that has never
|
|
17
|
-
* seen this request), the server uses this to recompute and rewrite
|
|
18
|
-
* the cache. Without this field, a cache miss is unrecoverable. */
|
|
19
|
-
/** Dataset label forwarded for auth middleware / dataset scoping. */
|
|
20
|
-
dslabel?: string
|
|
21
|
-
/** Snapshot of the original DE request that produced `cacheId`. When
|
|
22
|
-
* the cache file is missing (TTL eviction or farm node that has never
|
|
23
|
-
* seen this request), the server uses this to recompute and rewrite
|
|
24
|
-
* the cache. Without this field, a cache miss is unrecoverable.
|
|
25
|
-
* This mirrors the partial DE payload shape sent by clients. */
|
|
26
|
-
daRequest?: Partial<DERequest>
|
|
27
|
-
fetchDE?: boolean
|
|
28
|
-
/** Filter non-coding genes */
|
|
29
|
-
filter_non_coding_genes: boolean
|
|
30
|
-
/** Genome build */
|
|
31
|
-
genome: string
|
|
32
|
-
/** Type of GO to be queried e.g MF, CC, BP */
|
|
33
|
-
geneSetGroup: string
|
|
34
|
-
/** Gene set name whose enrichment score is to be profiled */
|
|
35
|
-
geneset_name?: string
|
|
36
|
-
/** Number of permutations to be carried out for GSEA analysis.
|
|
37
|
-
* Only read by the blitzgsea path; cerno and fetchDE requests omit it. */
|
|
38
|
-
num_permutations?: number
|
|
39
|
-
/** Method used for GSEA blitzgsea/cerno */
|
|
40
|
-
method: 'blitzgsea' | 'cerno'
|
|
41
|
-
/** DAP-specific parameters: organism/assay/cohort identify the DAP file */
|
|
42
|
-
dapParams?: { organism: string; assay: string; cohort: string }
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
type blitzgsea_geneset_attributes = {
|
|
46
|
-
/** Absolute enrichment score */
|
|
47
|
-
es: number
|
|
48
|
-
/** Normalized enrichment score */
|
|
49
|
-
nes: number
|
|
50
|
-
/** Size of gene set */
|
|
51
|
-
geneset_size: number
|
|
52
|
-
/** Leading edge genes */
|
|
53
|
-
leading_edge: string
|
|
54
|
-
/** pvalue */
|
|
55
|
-
pvalue: number
|
|
56
|
-
/** sidak (multiple testing correction) */
|
|
57
|
-
sidak: number
|
|
58
|
-
/** false discovery rate */
|
|
59
|
-
fdr: number
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// Key value pair of geneset name and blitzgsea geneset attributes
|
|
63
|
-
type blitzgsea_map = {
|
|
64
|
-
[geneset_name: string]: blitzgsea_geneset_attributes
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
type cerno_geneset_attributes = {
|
|
68
|
-
/** Absolute enrichment score */
|
|
69
|
-
es: number
|
|
70
|
-
/** Area under curve score */
|
|
71
|
-
auc: number
|
|
72
|
-
/** Size of gene set */
|
|
73
|
-
geneset_size: number
|
|
74
|
-
/** Leading edge genes */
|
|
75
|
-
leading_edge: string
|
|
76
|
-
/** pvalue */
|
|
77
|
-
pvalue: number
|
|
78
|
-
/** false discovery rate */
|
|
79
|
-
fdr: number
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
type blitzgsea_json = {
|
|
83
|
-
/** array of pathway_attributes */
|
|
84
|
-
data: blitzgsea_map[]
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// Key value pair of geneset name and cerno geneset attributes
|
|
88
|
-
type cerno_map = {
|
|
89
|
-
[geneset_name: string]: cerno_geneset_attributes
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/** Pass gsea image to client side */
|
|
93
|
-
type blitzgsea_image_name = string
|
|
94
|
-
|
|
95
|
-
type blitzgseaResult = {
|
|
96
|
-
pathway: blitzgsea_json | blitzgsea_image_name
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
type cernoResult = {
|
|
100
|
-
data: cerno_map[]
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export type GenesetEnrichmentResponse = {
|
|
104
|
-
/** gsea result or an image (for plotting) is sent to client side */
|
|
105
|
-
data: blitzgseaResult | cernoResult
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export const genesetEnrichmentPayload: RoutePayload = {
|
|
109
|
-
request: {
|
|
110
|
-
typeId: 'GenesetEnrichmentRequest'
|
|
111
|
-
},
|
|
112
|
-
response: {
|
|
113
|
-
typeId: 'GenesetEnrichmentResponse'
|
|
114
|
-
}
|
|
115
|
-
//examples: []
|
|
116
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.js'
|
|
2
|
-
|
|
3
|
-
export type GenesetOverrepresentationRequest = {
|
|
4
|
-
/** Sample genes to be queried */
|
|
5
|
-
sample_genes: string
|
|
6
|
-
/** Background genes against which the sample genes will be queried. if missing will use all protein-coding genes, available in gene db */
|
|
7
|
-
background_genes?: string
|
|
8
|
-
/** Genome build */
|
|
9
|
-
genome: string
|
|
10
|
-
/** msigdb branch term name. all genesets under this branch will be analyzed */
|
|
11
|
-
geneSetGroup: string
|
|
12
|
-
/** Boolean variable describing if non-coding genes should be filtered */
|
|
13
|
-
filter_non_coding_genes: boolean
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type GenesetOverrepresentationResponse = {
|
|
17
|
-
/** Name of pathway */
|
|
18
|
-
pathway_name: string
|
|
19
|
-
/** Original p-value */
|
|
20
|
-
p_value_original: number
|
|
21
|
-
/** Adjusted p-value */
|
|
22
|
-
p_value_adjusted: number
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type gene_overrepresentation_input = {
|
|
26
|
-
/** Input sample genes */
|
|
27
|
-
sample_genes: string
|
|
28
|
-
/** Input background genes */
|
|
29
|
-
background_genes?: string
|
|
30
|
-
/** Path to msigdb */
|
|
31
|
-
msigdb: string
|
|
32
|
-
/** Name of Gene Set Group */
|
|
33
|
-
gene_set_group: string
|
|
34
|
-
/** Path to gene db */
|
|
35
|
-
genedb: string
|
|
36
|
-
/** Boolean variable describing if non-coding genes should be filtered */
|
|
37
|
-
filter_non_coding_genes: boolean
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export const genesetOverrepresentationPayload: RoutePayload = {
|
|
41
|
-
request: {
|
|
42
|
-
typeId: 'GenesetOverrepresentationRequest'
|
|
43
|
-
},
|
|
44
|
-
response: {
|
|
45
|
-
typeId: 'GenesetOverrepresentationResponse'
|
|
46
|
-
}
|
|
47
|
-
// examples: []
|
|
48
|
-
}
|