@sjcrh/proteinpaint-types 2.129.2 → 2.129.6-2b2fdc7ee.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/package.json +1 -1
- package/src/dataset.ts +44 -26
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -1495,41 +1495,51 @@ type MutationSet = {
|
|
|
1495
1495
|
fusion: string
|
|
1496
1496
|
}
|
|
1497
1497
|
|
|
1498
|
-
|
|
1498
|
+
/** different methods to return samples with assay availability info */
|
|
1499
|
+
type DtAssayAvailability = DtAssayAvailabilityGetter | DtAssayAvailabilityTerm
|
|
1500
|
+
|
|
1501
|
+
/** using ds-supplied getter */
|
|
1502
|
+
type DtAssayAvailabilityGetter = {
|
|
1503
|
+
get: (q: any) => any
|
|
1504
|
+
}
|
|
1505
|
+
/** using dictionary term */
|
|
1506
|
+
type DtAssayAvailabilityTerm = {
|
|
1507
|
+
/** id of this assay term for this dt */
|
|
1499
1508
|
term_id: string
|
|
1509
|
+
/** optional label */
|
|
1510
|
+
label?: string
|
|
1511
|
+
/** categories meaning the sample has this assay */
|
|
1500
1512
|
yes: { value: string[] }
|
|
1513
|
+
/** categories meaning the sample doesn't have this assay */
|
|
1501
1514
|
no: { value: string[] }
|
|
1502
|
-
label?: string
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
type SNVByOrigin = {
|
|
1506
|
-
[index: string]: BaseDtEntry
|
|
1507
|
-
}
|
|
1508
|
-
|
|
1509
|
-
type DtEntrySNV = {
|
|
1510
|
-
byOrigin: SNVByOrigin
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
type ByDt = {
|
|
1514
|
-
/** SNVs differentiate by sample origin. Non-SNV, no differentiation*/
|
|
1515
|
-
[index: number]: DtEntrySNV | BaseDtEntry
|
|
1516
1515
|
}
|
|
1517
1516
|
|
|
1518
|
-
type
|
|
1519
|
-
|
|
1517
|
+
type DtAssayAvailabilityByOrigin = {
|
|
1518
|
+
byOrigin: {
|
|
1519
|
+
/** each key is an origin value or category */
|
|
1520
|
+
[index: string]: DtAssayAvailability
|
|
1521
|
+
}
|
|
1520
1522
|
}
|
|
1521
1523
|
|
|
1522
|
-
type
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1524
|
+
type Mds3AssayAvailability = {
|
|
1525
|
+
/** object of key-value pairs. keys are dt values */
|
|
1526
|
+
byDt: {
|
|
1527
|
+
/** each index is a dt value */
|
|
1528
|
+
[index: number]: DtAssayAvailabilityByOrigin | DtAssayAvailability
|
|
1529
|
+
}
|
|
1527
1530
|
}
|
|
1528
1531
|
|
|
1529
|
-
|
|
1530
|
-
|
|
1532
|
+
// mds legacy; delete when all are migrated to mds3
|
|
1533
|
+
type LegacyAssayAvailability = {
|
|
1531
1534
|
file?: string
|
|
1532
|
-
assays?:
|
|
1535
|
+
assays?: {
|
|
1536
|
+
id: string
|
|
1537
|
+
name: string
|
|
1538
|
+
type: string
|
|
1539
|
+
values?: {
|
|
1540
|
+
[index: string]: { label: string; color: string }
|
|
1541
|
+
}
|
|
1542
|
+
}[]
|
|
1533
1543
|
}
|
|
1534
1544
|
|
|
1535
1545
|
export type CumBurdenData = {
|
|
@@ -1887,7 +1897,7 @@ type ViewMode = {
|
|
|
1887
1897
|
/*** types supporting Mds Dataset types ***/
|
|
1888
1898
|
type BaseMds = {
|
|
1889
1899
|
genome?: string //Not declared in TermdbTest
|
|
1890
|
-
assayAvailability?:
|
|
1900
|
+
assayAvailability?: Mds3AssayAvailability | LegacyAssayAvailability
|
|
1891
1901
|
}
|
|
1892
1902
|
|
|
1893
1903
|
export type Mds = BaseMds & {
|
|
@@ -1965,6 +1975,14 @@ export type isSupportedChartCallbacks = {
|
|
|
1965
1975
|
}
|
|
1966
1976
|
|
|
1967
1977
|
export type Mds3 = BaseMds & {
|
|
1978
|
+
/** set in initGenomesDs.js during launch, should use .genomename instead of .genome */
|
|
1979
|
+
genomename?: string // use this
|
|
1980
|
+
genome?: string // avoid using it
|
|
1981
|
+
/** server-side genome obj to which this ds belongs to is attached here in initGenomesDs.js during launch,
|
|
1982
|
+
so this obj can be conveniently available to server side functions without having to introduce extra param
|
|
1983
|
+
TODO apply Genome type
|
|
1984
|
+
*/
|
|
1985
|
+
genomeObj?: any
|
|
1968
1986
|
label?: Title
|
|
1969
1987
|
isMds3: boolean
|
|
1970
1988
|
loadWithoutBlocking?: boolean
|