@sjcrh/proteinpaint-types 2.185.0 → 2.187.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/dist/brainImaging.js +1 -1
- package/dist/{chunk-NO3ZZD3L.js → chunk-46DTJOK5.js} +6 -2
- package/dist/chunk-5N7V62ZL.js +231 -0
- package/dist/{chunk-2NINVZOB.js → chunk-AYTV7V46.js} +13 -5
- package/dist/{chunk-QMEKJW2A.js → chunk-DPJUULKQ.js} +6 -2
- package/dist/{chunk-TUM3OZ7K.js → chunk-DVMD6CBJ.js} +6 -2
- package/dist/{chunk-UGGNWTJZ.js → chunk-EBSBUEOG.js} +21 -1
- package/dist/{chunk-UWK6LBTQ.js → chunk-F2QRI6B2.js} +6 -2
- package/dist/{chunk-CWJZUUEF.js → chunk-FEMYT7FL.js} +21 -1
- package/dist/{chunk-TI565XIR.js → chunk-HG2TK6UO.js} +6 -2
- package/dist/{chunk-ONNT3XV7.js → chunk-I3QGRA7O.js} +7 -3
- package/dist/{chunk-WNUWRPXG.js → chunk-IIWTMQJZ.js} +6 -2
- package/dist/{chunk-Y6FNAG22.js → chunk-MMNSJ72P.js} +6 -2
- package/dist/{chunk-LOFBLGRE.js → chunk-NKV3NWPF.js} +6 -2
- package/dist/{chunk-NLANDPY7.js → chunk-OCH5BJCV.js} +21 -1
- package/dist/{chunk-INIT6CVR.js → chunk-RY4Y5ESC.js} +6 -2
- package/dist/{chunk-JMVDRHBL.js → chunk-SGMHY5K7.js} +15 -7
- package/dist/{chunk-LDLZU2QY.js → chunk-VWLYQ33F.js} +6 -2
- package/dist/{chunk-734AZGID.js → chunk-W2Z4RFLX.js} +6 -2
- package/dist/correlationVolcano.js +1 -1
- package/dist/grin2.js +1 -1
- package/dist/index.js +34 -26
- package/dist/termdb.DE.js +1 -1
- package/dist/termdb.categories.js +1 -1
- package/dist/termdb.chat.js +6 -2
- package/dist/termdb.chat2.js +1 -1
- package/dist/termdb.cluster.js +1 -1
- package/dist/termdb.descrstats.js +1 -1
- package/dist/termdb.diffMeth.js +1 -1
- package/dist/termdb.dmr.js +1 -1
- package/dist/termdb.numericcategories.js +1 -1
- package/dist/termdb.percentile.js +1 -1
- package/dist/termdb.profileForms2Scores.js +11 -0
- package/dist/termdb.singlecellDEgenes.js +1 -1
- package/dist/termdb.termsbyids.js +1 -1
- package/dist/termdb.topTermsByType.js +1 -1
- package/dist/termdb.topVariablyExpressedGenes.js +1 -1
- package/dist/termdb.violinBox.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +17 -3
- package/src/routes/termdb.DE.ts +13 -3
- package/src/routes/termdb.cluster.ts +1 -1
- package/src/routes/termdb.profileForms2Scores.ts +25 -0
- package/src/terms/proteomeAbundance.ts +2 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ProfileForms2ScoresPayload,
|
|
3
|
+
validProfileForms2ScoresRequest,
|
|
4
|
+
validProfileForms2ScoresResponse
|
|
5
|
+
} from "./chunk-5N7V62ZL.js";
|
|
6
|
+
import "./chunk-YNHC5SXO.js";
|
|
7
|
+
export {
|
|
8
|
+
ProfileForms2ScoresPayload,
|
|
9
|
+
validProfileForms2ScoresRequest,
|
|
10
|
+
validProfileForms2ScoresResponse
|
|
11
|
+
};
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
termdbTopVariablyExpressedGenesPayload,
|
|
3
3
|
validTermdbTopVariablyExpressedGenesRequest,
|
|
4
4
|
validTermdbTopVariablyExpressedGenesResponse
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DPJUULKQ.js";
|
|
6
6
|
import "./chunk-YNHC5SXO.js";
|
|
7
7
|
export {
|
|
8
8
|
termdbTopVariablyExpressedGenesPayload,
|
package/dist/termdb.violinBox.js
CHANGED
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -734,9 +734,21 @@ type ProteomeAssayConfig = {
|
|
|
734
734
|
export type ProteomeAbundanceQuery = {
|
|
735
735
|
/** database file path */
|
|
736
736
|
dbfile?: string
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
737
|
+
/** organism-keyed structure (new format) */
|
|
738
|
+
organisms?: {
|
|
739
|
+
[organism: string]: {
|
|
740
|
+
overlayTerm: BaseTerm
|
|
741
|
+
columnIdx: number
|
|
742
|
+
columnValue?: string
|
|
743
|
+
/** genome assembly name for this organism, e.g. 'hg38' or 'mm10' */
|
|
744
|
+
genomeName?: string
|
|
745
|
+
assays: {
|
|
746
|
+
[assayName: string]: ProteomeAssayConfig
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
/** flat assays structure (legacy format) */
|
|
751
|
+
assays?: {
|
|
740
752
|
[assayName: string]: ProteomeAssayConfig
|
|
741
753
|
}
|
|
742
754
|
samples?: number[]
|
|
@@ -1377,6 +1389,8 @@ type MatrixSettings = {
|
|
|
1377
1389
|
cnvUnit?: 'log2ratio' | 'segmedian'
|
|
1378
1390
|
/** whether to show white cell border for SNVindel in oncoPrint mode */
|
|
1379
1391
|
oncoPrintSNVindelCellBorder?: boolean
|
|
1392
|
+
/** use a geneset edit UI without or with initial radio inputs */
|
|
1393
|
+
genesetEditUiVersion?: '' | 'withTabs'
|
|
1380
1394
|
}
|
|
1381
1395
|
|
|
1382
1396
|
type NumericDictTermClusterSettings = {
|
package/src/routes/termdb.DE.ts
CHANGED
|
@@ -94,13 +94,23 @@ export type VolcanoData<T extends DataEntry> = {
|
|
|
94
94
|
/** Coordinate metadata returned by the `volcano` renderer, used by the client to overlay
|
|
95
95
|
* interactive top-significant circles on top of the server-drawn PNG. */
|
|
96
96
|
export type PlotExtent = {
|
|
97
|
-
/**
|
|
97
|
+
/** Padded data-space x domain — used to position overlay dots so points near
|
|
98
|
+
* the real-data edges stay fully visible (mirror of manhattan's yPlot domain). */
|
|
98
99
|
xMin: number
|
|
99
100
|
xMax: number
|
|
100
|
-
/**
|
|
101
|
+
/** Padded data-space y domain (on -log10 p-value scale). */
|
|
101
102
|
yMin: number
|
|
102
103
|
yMax: number
|
|
103
|
-
/**
|
|
104
|
+
/** Unpadded data-space x domain — used for the visible axis labels/ticks
|
|
105
|
+
* so the axis only spans the real data region. */
|
|
106
|
+
xMinUnpadded: number
|
|
107
|
+
xMaxUnpadded: number
|
|
108
|
+
/** Unpadded data-space y domain. */
|
|
109
|
+
yMinUnpadded: number
|
|
110
|
+
yMaxUnpadded: number
|
|
111
|
+
/** Dot radius in pixels (echoed back so overlay rings match the PNG). */
|
|
112
|
+
dotRadiusPx: number
|
|
113
|
+
/** PNG canvas dimensions (already include 2*dotRadiusPx of padding). */
|
|
104
114
|
pixelWidth: number
|
|
105
115
|
pixelHeight: number
|
|
106
116
|
/** Inner drawing rect inside the PNG (after axis margins). Client overlay circles
|
|
@@ -66,7 +66,7 @@ export type TermdbClusterRequestProteomeAbundance = TermdbClusterRequestBase & {
|
|
|
66
66
|
terms: ProteomeAbundanceTW[]
|
|
67
67
|
/** perform z-score transformation on values */
|
|
68
68
|
zScoreTransformation?: string
|
|
69
|
-
/** assay type and cohort for the selected proteome data */
|
|
69
|
+
/** organism, assay type and cohort for the selected proteome data */
|
|
70
70
|
proteomeDetails: ProteomeDetails
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
}
|
|
@@ -8,6 +8,7 @@ ProteomeTermSettingInstance
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
export type ProteomeDetails = {
|
|
11
|
+
organism: string
|
|
11
12
|
assay: string
|
|
12
13
|
cohort: string
|
|
13
14
|
}
|
|
@@ -19,7 +20,7 @@ export type ProteomeAbundanceTerm = NumericBaseTerm & {
|
|
|
19
20
|
protein: string
|
|
20
21
|
bins?: PresetNumericBins
|
|
21
22
|
unit?: string
|
|
22
|
-
/** assay and cohort this term belongs to */
|
|
23
|
+
/** organism, assay and cohort this term belongs to */
|
|
23
24
|
proteomeDetails: ProteomeDetails
|
|
24
25
|
}
|
|
25
26
|
|