oncoprintjs 6.0.1 → 6.0.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oncoprintjs",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
4
4
  "description": "A data visualization for cancer genomic data.",
5
5
  "types": "./dist/js/oncoprint.d.ts",
6
6
  "main": "dist/index.js",
@@ -60,5 +60,5 @@
60
60
  "tayden-clusterfck": "^0.7.0",
61
61
  "typescript": "4.0.3"
62
62
  },
63
- "gitHead": "f4d4f999c480f95b907d4c37947f421f16edb4f5"
63
+ "gitHead": "015e5bda995b7f5db563416c53b9320e0c9da3a8"
64
64
  }
@@ -15,7 +15,9 @@ export const MUT_COLOR_TRUNC = '#000000';
15
15
  export const MUT_COLOR_TRUNC_PASSENGER = '#708090';
16
16
  export const MUT_COLOR_FUSION = '#8B00C9';
17
17
  export const MUT_COLOR_PROMOTER = '#00B7CE';
18
+ export const MUT_COLOR_PROMOTER_PASSENGER = '#8cedf9';
18
19
  export const MUT_COLOR_OTHER = '#cf58bc'; //'#cfb537';
20
+ export const MUT_COLOR_OTHER_PASSENGER = '#f96ae3';
19
21
 
20
22
  export const MRNA_COLOR_HIGH = '#ff9999';
21
23
  export const MRNA_COLOR_LOW = '#6699cc';
@@ -63,8 +65,10 @@ enum ShapeId {
63
65
 
64
66
  missenseMutationDriverRectangle = 'missenseMutationDriverRectangle',
65
67
  missenseMutationVUSRectangle = 'missenseMutationVUSRectangle',
66
- otherMutationRectangle = 'otherMutationRectangle',
67
- promoterMutationRectangle = 'promoterMutationRectangle',
68
+ otherMutationDriverRectangle = 'otherMutationDriverRectangle',
69
+ otherMutationVUSRectangle = 'otherMutationVUSRectangle',
70
+ promoterMutationDriverRectangle = 'promoterMutationDriverRectangle',
71
+ promoterMutationVUSRectangle = 'promoterMutationVUSRectangle',
68
72
  truncatingMutationDriverRectangle = 'truncatingMutationDriverRectangle',
69
73
  truncatingMutationVUSRectangle = 'truncatingMutationVUSRectangle',
70
74
  inframeMutationDriverRectangle = 'inframeMutationDriverRectangle',
@@ -189,7 +193,7 @@ const shapeBank = {
189
193
  height: 33.33,
190
194
  z: 6,
191
195
  },
192
- [ShapeId.otherMutationRectangle]: {
196
+ [ShapeId.otherMutationDriverRectangle]: {
193
197
  type: 'rectangle',
194
198
  fill: MUT_COLOR_OTHER,
195
199
  x: 0,
@@ -198,7 +202,16 @@ const shapeBank = {
198
202
  height: 33.33,
199
203
  z: 6,
200
204
  },
201
- [ShapeId.promoterMutationRectangle]: {
205
+ [ShapeId.otherMutationVUSRectangle]: {
206
+ type: 'rectangle',
207
+ fill: MUT_COLOR_OTHER_PASSENGER,
208
+ x: 0,
209
+ y: 33.33,
210
+ width: 100,
211
+ height: 33.33,
212
+ z: 6,
213
+ },
214
+ [ShapeId.promoterMutationDriverRectangle]: {
202
215
  type: 'rectangle',
203
216
  fill: MUT_COLOR_PROMOTER,
204
217
  x: 0,
@@ -207,6 +220,15 @@ const shapeBank = {
207
220
  height: 33.33,
208
221
  z: 6,
209
222
  },
223
+ [ShapeId.promoterMutationVUSRectangle]: {
224
+ type: 'rectangle',
225
+ fill: MUT_COLOR_PROMOTER_PASSENGER,
226
+ x: 0,
227
+ y: 33.33,
228
+ width: 100,
229
+ height: 33.33,
230
+ z: 6,
231
+ },
210
232
  [ShapeId.truncatingMutationDriverRectangle]: {
211
233
  type: 'rectangle',
212
234
  fill: MUT_COLOR_TRUNC,
@@ -406,12 +428,16 @@ export const genetic_rule_set_different_colors_no_recurrence: IGeneticAlteration
406
428
  conditional: shallowExtend(non_mutation_rule_params.conditional, {
407
429
  disp_mut: {
408
430
  'other,other_rec': {
409
- shapes: [shapeBank[ShapeId.otherMutationRectangle]],
431
+ shapes: [
432
+ shapeBank[ShapeId.otherMutationDriverRectangle],
433
+ ],
410
434
  legend_label: 'Other Mutation',
411
435
  legend_order: MUTATION_LEGEND_ORDER,
412
436
  },
413
437
  'promoter,promoter_rec': {
414
- shapes: [shapeBank[ShapeId.promoterMutationRectangle]],
438
+ shapes: [
439
+ shapeBank[ShapeId.promoterMutationDriverRectangle],
440
+ ],
415
441
  legend_label: 'Promoter Mutation',
416
442
  legend_order: MUTATION_LEGEND_ORDER,
417
443
  },
@@ -451,14 +477,31 @@ export const genetic_rule_set_different_colors_recurrence: IGeneticAlterationRul
451
477
  always: non_mutation_rule_params.always,
452
478
  conditional: shallowExtend(non_mutation_rule_params.conditional, {
453
479
  disp_mut: {
454
- 'other,other_rec': {
455
- shapes: [shapeBank[ShapeId.otherMutationRectangle]],
456
- legend_label: 'Other Mutation',
480
+ other_rec: {
481
+ shapes: [
482
+ shapeBank[ShapeId.otherMutationDriverRectangle],
483
+ ],
484
+ legend_label: 'Other Mutation (putative driver)',
457
485
  legend_order: MUTATION_LEGEND_ORDER,
458
486
  },
459
- 'promoter,promoter_rec': {
460
- shapes: [shapeBank[ShapeId.promoterMutationRectangle]],
461
- legend_label: 'Promoter Mutation',
487
+ other: {
488
+ shapes: [shapeBank[ShapeId.otherMutationVUSRectangle]],
489
+ legend_label: 'Other Mutation (unknown significance)',
490
+ legend_order: MUTATION_LEGEND_ORDER,
491
+ },
492
+ promoter_rec: {
493
+ shapes: [
494
+ shapeBank[ShapeId.promoterMutationDriverRectangle],
495
+ ],
496
+ legend_label: 'Promoter Mutation (putative driver)',
497
+ legend_order: MUTATION_LEGEND_ORDER,
498
+ },
499
+ promoter: {
500
+ shapes: [
501
+ shapeBank[ShapeId.promoterMutationVUSRectangle],
502
+ ],
503
+ legend_label:
504
+ 'Promoter Mutation (unknown significance)',
462
505
  legend_order: MUTATION_LEGEND_ORDER,
463
506
  },
464
507
  trunc_rec: {