@sjcrh/proteinpaint-shared 2.113.0 → 2.114.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/common.js +42 -1
- package/src/termdb.usecase.js +5 -0
package/package.json
CHANGED
package/src/common.js
CHANGED
|
@@ -1153,6 +1153,48 @@ export const CNVClasses = Object.values(mclass)
|
|
|
1153
1153
|
.filter(m => m.dt == dtcnv)
|
|
1154
1154
|
.map(m => m.key)
|
|
1155
1155
|
|
|
1156
|
+
// custom dt terms used by variant filter of geneVariant term
|
|
1157
|
+
export const dtTerms = [
|
|
1158
|
+
{
|
|
1159
|
+
id: 'snvindel',
|
|
1160
|
+
name: dt2label[dtsnvindel],
|
|
1161
|
+
parent_id: null,
|
|
1162
|
+
isleaf: true,
|
|
1163
|
+
type: 'dtsnvindel',
|
|
1164
|
+
dt: dtsnvindel,
|
|
1165
|
+
values: Object.fromEntries(
|
|
1166
|
+
mutationClasses.filter(key => key != 'Blank').map(key => [key, { label: mclass[key].label }])
|
|
1167
|
+
)
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
id: 'cnv',
|
|
1171
|
+
name: dt2label[dtcnv],
|
|
1172
|
+
parent_id: null,
|
|
1173
|
+
isleaf: true,
|
|
1174
|
+
type: 'dtcnv',
|
|
1175
|
+
dt: dtcnv,
|
|
1176
|
+
values: Object.fromEntries([...CNVClasses, 'WT'].map(key => [key, { label: mclass[key].label }]))
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
id: 'fusion',
|
|
1180
|
+
name: dt2label[dtfusionrna],
|
|
1181
|
+
parent_id: null,
|
|
1182
|
+
isleaf: true,
|
|
1183
|
+
type: 'dtfusion',
|
|
1184
|
+
dt: dtfusionrna,
|
|
1185
|
+
values: Object.fromEntries([mclassfusionrna, 'WT'].map(key => [key, { label: mclass[key].label }]))
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
id: 'sv',
|
|
1189
|
+
name: dt2label[dtsv],
|
|
1190
|
+
parent_id: null,
|
|
1191
|
+
isleaf: true,
|
|
1192
|
+
type: 'dtsv',
|
|
1193
|
+
dt: dtsv,
|
|
1194
|
+
values: Object.fromEntries([mclasssv, 'WT'].map(key => [key, { label: mclass[key].label }]))
|
|
1195
|
+
}
|
|
1196
|
+
]
|
|
1197
|
+
|
|
1156
1198
|
/*
|
|
1157
1199
|
Term groupsetting used for geneVariant term
|
|
1158
1200
|
NOTE: for each groupsetting, groups[] is ordered by priority
|
|
@@ -1161,7 +1203,6 @@ for example: in the 'Protein-changing vs. rest' groupsetting, the
|
|
|
1161
1203
|
that have both missense and silent mutations are classified in the
|
|
1162
1204
|
'Protein-changing' group
|
|
1163
1205
|
*/
|
|
1164
|
-
|
|
1165
1206
|
export const geneVariantTermGroupsetting = {
|
|
1166
1207
|
disabled: false, // as const, // TODO: may need to add is when converting common.js to .ts
|
|
1167
1208
|
type: 'custom',
|
package/src/termdb.usecase.js
CHANGED
|
@@ -11,11 +11,16 @@ export const graphableTypes = new Set([
|
|
|
11
11
|
'geneVariant',
|
|
12
12
|
'samplelst',
|
|
13
13
|
'geneExpression',
|
|
14
|
+
'dtcnv',
|
|
15
|
+
'dtsnvindel',
|
|
16
|
+
'dtfusion',
|
|
17
|
+
'dtsv',
|
|
14
18
|
TermTypes.METABOLITE_INTENSITY,
|
|
15
19
|
TermTypes.SINGLECELL_GENE_EXPRESSION,
|
|
16
20
|
TermTypes.SINGLECELL_CELLTYPE,
|
|
17
21
|
TermTypes.SNP
|
|
18
22
|
])
|
|
23
|
+
|
|
19
24
|
/*
|
|
20
25
|
isUsableTerm() will
|
|
21
26
|
|