react-mutation-mapper 0.8.121 → 0.9.3
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/component/clinvar/ClinvarSummary.d.ts +1 -1
- package/dist/component/column/Annotation.d.ts +2 -2
- package/dist/component/column/ClinvarInterpretation.d.ts +1 -1
- package/dist/component/column/ColumnHeader.d.ts +1 -1
- package/dist/component/column/Hgvsc.d.ts +1 -1
- package/dist/component/column/Hgvsg.d.ts +1 -1
- package/dist/component/column/MutationStatus.d.ts +1 -1
- package/dist/component/column/MutationType.d.ts +2 -2
- package/dist/component/column/MyVariantInfoHelper.d.ts +1 -1
- package/dist/component/column/ProteinChange.d.ts +1 -1
- package/dist/component/column/Signal.d.ts +2 -2
- package/dist/component/dataTable/ColumnSelector.d.ts +2 -2
- package/dist/component/dataTable/DataTable.d.ts +4 -4
- package/dist/component/dataTable/DataTableToolbar.d.ts +1 -1
- package/dist/component/dbsnp/DbsnpId.d.ts +1 -1
- package/dist/component/filter/BadgeLabel.d.ts +1 -1
- package/dist/component/filter/BadgeSelector.d.ts +2 -2
- package/dist/component/filter/DropdownSelector.d.ts +1 -1
- package/dist/component/filter/MutationStatusBadgeSelector.d.ts +1 -1
- package/dist/component/filter/ProteinImpactTypeBadgeSelector.d.ts +1 -1
- package/dist/component/filter/ProteinImpactTypeDropdownSelector.d.ts +1 -1
- package/dist/component/gnomad/GnomadFrequency.d.ts +1 -1
- package/dist/component/hotspot/HotspotInfo.d.ts +1 -1
- package/dist/component/lollipopMutationPlot/DefaultLollipopPlotLegend.d.ts +1 -1
- package/dist/component/lollipopMutationPlot/LollipopMutationPlot.d.ts +1 -1
- package/dist/component/lollipopMutationPlot/LollipopMutationPlotControls.d.ts +1 -1
- package/dist/component/lollipopPlot/Domain.d.ts +1 -1
- package/dist/component/lollipopPlot/Lollipop.d.ts +1 -1
- package/dist/component/lollipopPlot/LollipopPlot.d.ts +1 -1
- package/dist/component/lollipopPlot/LollipopPlotNoTooltip.d.ts +1 -1
- package/dist/component/lollipopPlot/Sequence.d.ts +1 -1
- package/dist/component/mutationMapper/DefaultMutationRateSummary.d.ts +2 -2
- package/dist/component/mutationMapper/FilterResetPanel.d.ts +1 -1
- package/dist/component/mutationMapper/GeneSummary.d.ts +1 -1
- package/dist/component/mutationMapper/MutationMapper.d.ts +1 -1
- package/dist/component/mutationMapper/TranscriptDropdown.d.ts +1 -1
- package/dist/component/mutationTable/DefaultMutationTable.d.ts +2 -2
- package/dist/component/ptm/PtmAnnotationTable.d.ts +1 -1
- package/dist/component/ptm/PtmReferenceList.d.ts +1 -1
- package/dist/component/track/ExonTrack.d.ts +1 -1
- package/dist/component/track/HotspotTrack.d.ts +1 -1
- package/dist/component/track/OncoKbTrack.d.ts +1 -1
- package/dist/component/track/OncoKbTrackTooltip.d.ts +1 -1
- package/dist/component/track/PtmTrack.d.ts +1 -1
- package/dist/component/track/Track.d.ts +1 -1
- package/dist/component/track/TrackCircle.d.ts +2 -2
- package/dist/component/track/TrackItem.d.ts +2 -2
- package/dist/component/track/TrackPanel.d.ts +1 -1
- package/dist/component/track/TrackRect.d.ts +2 -2
- package/dist/component/track/TrackSelector.d.ts +3 -3
- package/dist/component/track/UniprotTopologyTrack.d.ts +1 -1
- package/dist/filter/CancerTypeFilter.d.ts +1 -1
- package/dist/filter/CategoricalFilter.d.ts +2 -2
- package/dist/filter/HotspotFilter.d.ts +1 -1
- package/dist/filter/MutationFilter.d.ts +2 -2
- package/dist/filter/MutationStatusFilter.d.ts +1 -1
- package/dist/filter/NumericalFilter.d.ts +2 -2
- package/dist/filter/OncoKbFilter.d.ts +1 -1
- package/dist/filter/PositionFilter.d.ts +1 -1
- package/dist/filter/ProteinChangeFilter.d.ts +1 -1
- package/dist/filter/ProteinImpactTypeFilter.d.ts +1 -1
- package/dist/index.es.js +126 -83
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +124 -81
- package/dist/index.js.map +1 -1
- package/dist/model/DataFilter.d.ts +1 -1
- package/dist/model/DomainSpec.d.ts +1 -1
- package/dist/model/FilterApplier.d.ts +1 -1
- package/dist/model/GnomadSummary.d.ts +1 -1
- package/dist/model/LollipopSpec.d.ts +2 -2
- package/dist/model/SequenceSpec.d.ts +1 -1
- package/dist/store/DefaultMutationMapperDataStore.d.ts +1 -1
- package/dist/styles.css +13 -13
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -66,12 +66,12 @@ var memoize__default = /*#__PURE__*/_interopDefaultLegacy(memoize);
|
|
|
66
66
|
var annotationStyles = {"annotation-item-load":"annotation-module_annotation-item-load__1pDN0","annotation-item-text":"annotation-module_annotation-item-text__Gy_Jv","annotation-item-error":"annotation-module_annotation-item-error__5BhTo","annotation-item":"annotation-module_annotation-item__2EgnB"};
|
|
67
67
|
|
|
68
68
|
function loaderIcon(className) {
|
|
69
|
-
return (React__namespace.createElement("span", { className: classNames__default["default"](""
|
|
69
|
+
return (React__namespace.createElement("span", { className: classNames__default["default"]("".concat(annotationStyles['annotation-item']), "".concat(annotationStyles['annotation-item-load']), className) },
|
|
70
70
|
React__namespace.createElement("i", { className: "fa fa-spinner fa-pulse" })));
|
|
71
71
|
}
|
|
72
72
|
function errorIcon(errorMessage) {
|
|
73
73
|
return (React__namespace.createElement(cbioportalFrontendCommons.DefaultTooltip, { overlay: React__namespace.createElement("span", null, errorMessage), placement: "right", trigger: ['hover', 'focus'], destroyTooltipOnHide: true },
|
|
74
|
-
React__namespace.createElement("span", { className: ""
|
|
74
|
+
React__namespace.createElement("span", { className: "".concat(annotationStyles['annotation-item-error']) },
|
|
75
75
|
React__namespace.createElement("i", { className: "fa fa-exclamation-triangle text-danger" }))));
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -106,7 +106,7 @@ var CivicCard = /** @class */ (function (_super) {
|
|
|
106
106
|
})
|
|
107
107
|
.map(function (_a) {
|
|
108
108
|
var key = _a[0], value = _a[1];
|
|
109
|
-
return key.slice(0, -5)
|
|
109
|
+
return "".concat(key.slice(0, -5), ": ").concat(value);
|
|
110
110
|
}) // Remove "Count" substring from key
|
|
111
111
|
.join(', ');
|
|
112
112
|
list.push(this.variantItem(name_1, variant.url, variant.name, entryTypes, variant.description));
|
|
@@ -203,7 +203,7 @@ function download$5(civicEntry) {
|
|
|
203
203
|
var values = [];
|
|
204
204
|
if (variants && variants.length > 0 && variants[0].evidenceCounts) {
|
|
205
205
|
___default["default"].forEach(variants[0].evidenceCounts, function (value, key) {
|
|
206
|
-
values.push(key
|
|
206
|
+
values.push("".concat(key, ": ").concat(value));
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
// this indicates that we have an entry but the evidence is empty
|
|
@@ -231,7 +231,7 @@ var Civic = /** @class */ (function (_super) {
|
|
|
231
231
|
configurable: true,
|
|
232
232
|
writable: true,
|
|
233
233
|
value: function () {
|
|
234
|
-
var civicContent = (React__namespace.createElement("span", { className: ""
|
|
234
|
+
var civicContent = (React__namespace.createElement("span", { className: "".concat(annotationStyles['annotation-item']) }));
|
|
235
235
|
var civicImgWidth = 14;
|
|
236
236
|
var civicImgHeight = 14;
|
|
237
237
|
var civicImgSrc = !this.props.hasCivicVariants
|
|
@@ -243,7 +243,7 @@ var Civic = /** @class */ (function (_super) {
|
|
|
243
243
|
else if (this.props.civicEntry !== undefined) {
|
|
244
244
|
if (this.props.civicEntry !== null &&
|
|
245
245
|
this.props.civicStatus == 'complete') {
|
|
246
|
-
civicContent = (React__namespace.createElement("span", { className: ""
|
|
246
|
+
civicContent = (React__namespace.createElement("span", { className: "".concat(annotationStyles['annotation-item']) },
|
|
247
247
|
React__namespace.createElement("img", { width: civicImgWidth, height: civicImgHeight, src: civicImgSrc, alt: "Civic Variant Entry" })));
|
|
248
248
|
civicContent = (React__namespace.createElement(cbioportalFrontendCommons.DefaultTooltip, { overlay: this.cardContent.bind(this, this.props.civicEntry), placement: "right", trigger: ['hover', 'focus'], onPopupAlign: hideArrow, destroyTooltipOnHide: false }, civicContent));
|
|
249
249
|
}
|
|
@@ -287,7 +287,7 @@ var ClinvarSummary = function (props) {
|
|
|
287
287
|
}
|
|
288
288
|
else {
|
|
289
289
|
var clinvarId = props.clinvar.clinvarId;
|
|
290
|
-
var clinvarLink = "https://www.ncbi.nlm.nih.gov/clinvar/variation/"
|
|
290
|
+
var clinvarLink = "https://www.ncbi.nlm.nih.gov/clinvar/variation/".concat(clinvarId, "/");
|
|
291
291
|
var clinicalSignificance = props.clinvar.clinicalSignificance;
|
|
292
292
|
var conflictingClinicalSignificance = props.clinvar.conflictingClinicalSignificance;
|
|
293
293
|
return (React__namespace.createElement(cbioportalFrontendCommons.TruncatedText, { maxLength: 30, text: clinicalSignificance, addTooltip: "always", tooltip: React__namespace.createElement("div", { style: { maxWidth: 300 } },
|
|
@@ -406,7 +406,7 @@ var HotspotAnnotation = /** @class */ (function (_super) {
|
|
|
406
406
|
writable: true,
|
|
407
407
|
value: function () {
|
|
408
408
|
var _a = this.props, isHotspot = _a.isHotspot, is3dHotspot = _a.is3dHotspot;
|
|
409
|
-
var hotspotContent = (React__namespace.createElement("span", { className: ""
|
|
409
|
+
var hotspotContent = (React__namespace.createElement("span", { className: "".concat(annotationStyles['annotation-item']) }));
|
|
410
410
|
if (this.props.status === 'pending') {
|
|
411
411
|
hotspotContent = loaderIcon('pull-left');
|
|
412
412
|
}
|
|
@@ -422,7 +422,7 @@ var HotspotAnnotation = /** @class */ (function (_super) {
|
|
|
422
422
|
var arrowContent = React__namespace.createElement("div", { className: "rc-tooltip-arrow-inner" });
|
|
423
423
|
var tooltipContent = (React__namespace.createElement(HotspotInfo, { isHotspot: isHotspot, is3dHotspot: is3dHotspot }));
|
|
424
424
|
hotspotContent = (React__namespace.createElement(cbioportalFrontendCommons.DefaultTooltip, { overlay: tooltipContent, placement: "topLeft", trigger: ['hover', 'focus'], arrowContent: arrowContent, onPopupAlign: placeArrow },
|
|
425
|
-
React__namespace.createElement("span", { className: annotationStyles['annotation-item']
|
|
425
|
+
React__namespace.createElement("span", { className: "".concat(annotationStyles['annotation-item'], " chang_hotspot") },
|
|
426
426
|
React__namespace.createElement("img", { width: hotspotsImgWidth, height: hotspotsImgHeight, src: hotspotsImgSrc, alt: "Recurrent Hotspot Symbol" }))));
|
|
427
427
|
}
|
|
428
428
|
return hotspotContent;
|
|
@@ -465,6 +465,18 @@ var ONCOKB_DEFAULT_INFO = {
|
|
|
465
465
|
version: 'v2.0',
|
|
466
466
|
date: '12/19/2019',
|
|
467
467
|
},
|
|
468
|
+
genomeNexus: {
|
|
469
|
+
grch37: {
|
|
470
|
+
genomeNexusVepVersion: '',
|
|
471
|
+
genomeNexusVersion: '',
|
|
472
|
+
vepVersion: '',
|
|
473
|
+
},
|
|
474
|
+
grch38: {
|
|
475
|
+
genomeNexusVepVersion: '',
|
|
476
|
+
genomeNexusVersion: '',
|
|
477
|
+
vepVersion: '',
|
|
478
|
+
},
|
|
479
|
+
},
|
|
468
480
|
levels: [],
|
|
469
481
|
ncitVersion: '19.03d',
|
|
470
482
|
oncoTreeVersion: 'oncotree_2019_12_01',
|
|
@@ -555,7 +567,7 @@ var RevueTooltipContent = function (props) {
|
|
|
555
567
|
"Revised Protein Effect by", " ",
|
|
556
568
|
React__default["default"].createElement("a", { href: "https://cancerrevue.org", target: "_blank", rel: "noopener noreferrer" }, "reVUE"), " (",
|
|
557
569
|
props.vue.references.map(function (reference, index) { return (React__default["default"].createElement("span", { key: index },
|
|
558
|
-
React__default["default"].createElement("a", { href: "https://pubmed.ncbi.nlm.nih.gov/"
|
|
570
|
+
React__default["default"].createElement("a", { href: "https://pubmed.ncbi.nlm.nih.gov/".concat(reference.pubmedId, "/"), rel: "noopener noreferrer", target: "_blank" }, reference.referenceText),
|
|
559
571
|
index < props.vue.references.length - 1 && ';')); }), "): ",
|
|
560
572
|
React__default["default"].createElement("strong", null, props.vue.revisedProteinEffect))));
|
|
561
573
|
};
|
|
@@ -564,7 +576,7 @@ function sortValue$5(vue) {
|
|
|
564
576
|
}
|
|
565
577
|
var RevueCell = function (props) {
|
|
566
578
|
return (React__default["default"].createElement(cbioportalFrontendCommons.DefaultTooltip, { placement: "bottom", overlay: React__default["default"].createElement(RevueTooltipContent, { vue: props.vue }) },
|
|
567
|
-
React__default["default"].createElement("span", { className: ""
|
|
579
|
+
React__default["default"].createElement("span", { className: "".concat(annotationStyles['annotation-item']), style: { display: 'inline-flex' } },
|
|
568
580
|
React__default["default"].createElement("img", { src: img, alt: "reVUE logo", width: 14, height: 14 }))));
|
|
569
581
|
};
|
|
570
582
|
|
|
@@ -595,7 +607,12 @@ function getAnnotationData(mutation, oncoKbCancerGenes, hotspotData, oncoKbData,
|
|
|
595
607
|
var value;
|
|
596
608
|
if (mutation) {
|
|
597
609
|
var key = '';
|
|
598
|
-
var memoize = (oncoKbCancerGenes === null || oncoKbCancerGenes === void 0 ? void 0 : oncoKbCancerGenes.isComplete) &&
|
|
610
|
+
var memoize = (oncoKbCancerGenes === null || oncoKbCancerGenes === void 0 ? void 0 : oncoKbCancerGenes.isComplete) &&
|
|
611
|
+
(hotspotData === null || hotspotData === void 0 ? void 0 : hotspotData.isComplete) &&
|
|
612
|
+
(oncoKbData === null || oncoKbData === void 0 ? void 0 : oncoKbData.isComplete) &&
|
|
613
|
+
(civicGenes === null || civicGenes === void 0 ? void 0 : civicGenes.isComplete) &&
|
|
614
|
+
(civicVariants === null || civicVariants === void 0 ? void 0 : civicVariants.isComplete) &&
|
|
615
|
+
(indexedVariantAnnotations === null || indexedVariantAnnotations === void 0 ? void 0 : indexedVariantAnnotations.isComplete);
|
|
599
616
|
if (memoize) {
|
|
600
617
|
key = JSON.stringify(mutation) + !!usingPublicOncoKbInstance;
|
|
601
618
|
var val = memoized.get(key);
|
|
@@ -651,7 +668,8 @@ function getAnnotationData(mutation, oncoKbCancerGenes, hotspotData, oncoKbData,
|
|
|
651
668
|
hotspotStatus: hotspotData ? hotspotData.status : 'pending',
|
|
652
669
|
vue: (indexedVariantAnnotations === null || indexedVariantAnnotations === void 0 ? void 0 : indexedVariantAnnotations.isComplete) &&
|
|
653
670
|
indexedVariantAnnotations.result
|
|
654
|
-
? (_b = (_a = cbioportalUtils.getVariantAnnotation(mutation, indexedVariantAnnotations.result)) === null || _a === void 0 ? void 0 : _a.annotation_summary) === null || _b === void 0 ? void 0 : _b.vues
|
|
671
|
+
? (_b = (_a = cbioportalUtils.getVariantAnnotation(mutation, indexedVariantAnnotations.result)) === null || _a === void 0 ? void 0 : _a.annotation_summary) === null || _b === void 0 ? void 0 : _b.vues
|
|
672
|
+
: undefined,
|
|
655
673
|
};
|
|
656
674
|
// oncoKbData may exist but it might be an instance of Error, in that case we flag the status as error
|
|
657
675
|
if (oncoKbData && oncoKbData.result instanceof Error) {
|
|
@@ -670,10 +688,9 @@ function getAnnotationData(mutation, oncoKbCancerGenes, hotspotData, oncoKbData,
|
|
|
670
688
|
!(oncoKbData.result instanceof Error) &&
|
|
671
689
|
oncoKbData.status === 'complete') {
|
|
672
690
|
oncoKbIndicator = oncokbFrontendCommons.getIndicatorData(mutation, oncoKbData.result, resolveTumorType, resolveEntrezGeneId);
|
|
673
|
-
oncoKbAvailableDataTypes = ___default["default"].uniq(tslib.
|
|
691
|
+
oncoKbAvailableDataTypes = ___default["default"].uniq(tslib.__spreadArray(tslib.__spreadArray([], oncoKbAvailableDataTypes, true), oncokbFrontendCommons.calculateOncoKbAvailableDataType(___default["default"].values(oncoKbData.result.indicatorMap)), true));
|
|
674
692
|
}
|
|
675
|
-
value = tslib.__assign(tslib.__assign({}, value), { oncoKbStatus: oncoKbData ? oncoKbData.status : 'pending', oncoKbIndicator: oncoKbIndicator,
|
|
676
|
-
oncoKbAvailableDataTypes: oncoKbAvailableDataTypes });
|
|
693
|
+
value = tslib.__assign(tslib.__assign({}, value), { oncoKbStatus: oncoKbData ? oncoKbData.status : 'pending', oncoKbIndicator: oncoKbIndicator, oncoKbAvailableDataTypes: oncoKbAvailableDataTypes });
|
|
677
694
|
}
|
|
678
695
|
else if (oncoKbData && oncoKbData.isPending) {
|
|
679
696
|
value = tslib.__assign(tslib.__assign({}, value), { oncoKbStatus: 'pending', oncoKbIndicator: undefined });
|
|
@@ -706,7 +723,7 @@ function GenericAnnotation(props) {
|
|
|
706
723
|
var annotation = props.annotation, enableCivic = props.enableCivic, enableHotspot = props.enableHotspot, enableOncoKb = props.enableOncoKb, enableRevue = props.enableRevue; props.pubMedCache; var userDisplayName = props.userDisplayName, mergeOncoKbIcons = props.mergeOncoKbIcons, oncoKbContentPadding = props.oncoKbContentPadding, hasMultipleCancerTypes = props.hasMultipleCancerTypes;
|
|
707
724
|
return (React__namespace.createElement("span", { style: { display: 'flex', minWidth: 100 } },
|
|
708
725
|
enableOncoKb && (React__namespace.createElement(oncokbFrontendCommons.OncoKB, { usingPublicOncoKbInstance: annotation.usingPublicOncoKbInstance, hugoGeneSymbol: annotation.hugoGeneSymbol, geneNotExist: !annotation.oncoKbGeneExist, isCancerGene: annotation.isOncoKbCancerGene, status: annotation.oncoKbStatus, indicator: annotation.oncoKbIndicator, availableDataTypes: annotation.oncoKbAvailableDataTypes, mergeAnnotationIcons: mergeOncoKbIcons, userDisplayName: userDisplayName, contentPadding: oncoKbContentPadding, hasMultipleCancerTypes: hasMultipleCancerTypes })),
|
|
709
|
-
enableRevue ? (annotation.vue ? (React__namespace.createElement(RevueCell, { vue: annotation.vue })) : (React__namespace.createElement("span", { className: ""
|
|
726
|
+
enableRevue ? (annotation.vue ? (React__namespace.createElement(RevueCell, { vue: annotation.vue })) : (React__namespace.createElement("span", { className: "".concat(annotationStyles['annotation-item']) }))) : (React__namespace.createElement(React__namespace.Fragment, null)),
|
|
710
727
|
enableCivic && (React__namespace.createElement(Civic, { civicEntry: annotation.civicEntry, civicStatus: annotation.civicStatus, hasCivicVariants: annotation.hasCivicVariants })),
|
|
711
728
|
enableHotspot && (React__namespace.createElement(HotspotAnnotation, { isHotspot: annotation.isHotspot, is3dHotspot: annotation.is3dHotspot, status: annotation.hotspotStatus }))));
|
|
712
729
|
}
|
|
@@ -1080,7 +1097,7 @@ function getGnomadData(myVariantInfo) {
|
|
|
1080
1097
|
}
|
|
1081
1098
|
function generateGnomadUrl(chromosome, position, reference, variant) {
|
|
1082
1099
|
if (chromosome && position && reference && variant) {
|
|
1083
|
-
return "https://gnomad.broadinstitute.org/variant/"
|
|
1100
|
+
return "https://gnomad.broadinstitute.org/variant/".concat(chromosome, "-").concat(position, "-").concat(reference, "-").concat(variant);
|
|
1084
1101
|
}
|
|
1085
1102
|
else {
|
|
1086
1103
|
return 'https://gnomad.broadinstitute.org/';
|
|
@@ -1439,7 +1456,7 @@ var Hgvsg = /** @class */ (function (_super) {
|
|
|
1439
1456
|
configurable: true,
|
|
1440
1457
|
writable: true,
|
|
1441
1458
|
value: {
|
|
1442
|
-
constructLink: function (hgvsg, content, href) { return (React__namespace.createElement("a", { href: href || "https:/www.genomenexus.org/variant/"
|
|
1459
|
+
constructLink: function (hgvsg, content, href) { return (React__namespace.createElement("a", { href: href || "https:/www.genomenexus.org/variant/".concat(hgvsg), target: "_blank", rel: "noopener noreferrer" }, content)); },
|
|
1443
1460
|
mainContent: function (hgvsg) { return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1444
1461
|
hgvsg,
|
|
1445
1462
|
"\u00A0",
|
|
@@ -1616,7 +1633,7 @@ function getSortValue(signalData) {
|
|
|
1616
1633
|
}
|
|
1617
1634
|
function download(signalData, mutationType) {
|
|
1618
1635
|
return signalData && signalData.germlineFrequency !== null
|
|
1619
|
-
? ""
|
|
1636
|
+
? "".concat(cbioportalUtils.formatNumberValueInSignificantDigits(signalData.germlineFrequency, 2))
|
|
1620
1637
|
: '';
|
|
1621
1638
|
}
|
|
1622
1639
|
// Get germline OR somatic frequency value
|
|
@@ -1861,7 +1878,7 @@ var BadgeLabel = /** @class */ (function (_super) {
|
|
|
1861
1878
|
? {}
|
|
1862
1879
|
: { marginRight: 5 }
|
|
1863
1880
|
: { marginLeft: 5 } },
|
|
1864
|
-
React__namespace.createElement("span", { className: this.props.badgeClassName, "data-test": "badge-"
|
|
1881
|
+
React__namespace.createElement("span", { className: this.props.badgeClassName, "data-test": "badge-".concat(this.props.value), style: tslib.__assign(tslib.__assign(tslib.__assign({}, DEFAULT_BADGE_STYLE), this.props.badgeStyleOverride), (this.props.isDriverAnnotated
|
|
1865
1882
|
? { marginRight: 0, width: 'auto' }
|
|
1866
1883
|
: {})) }, this.props.badgeContent)));
|
|
1867
1884
|
},
|
|
@@ -2158,7 +2175,7 @@ function getColorForProteinImpactType(mutations, colors, getMutationCount, isPut
|
|
|
2158
2175
|
var counts = {};
|
|
2159
2176
|
for (var _i = 0, processedMutations_1 = processedMutations; _i < processedMutations_1.length; _i++) {
|
|
2160
2177
|
var pMut = processedMutations_1[_i];
|
|
2161
|
-
var key = pMut.canonicalType
|
|
2178
|
+
var key = "".concat(pMut.canonicalType, "_").concat(pMut.isPutativeDriver);
|
|
2162
2179
|
counts[key] = counts[key] || {
|
|
2163
2180
|
count: 0,
|
|
2164
2181
|
isPutativeDriver: pMut.isPutativeDriver,
|
|
@@ -2430,7 +2447,7 @@ var MutationStatusBadgeSelector = /** @class */ (function (_super) {
|
|
|
2430
2447
|
get: function () {
|
|
2431
2448
|
var _this = this;
|
|
2432
2449
|
return this.props.badgeSelectorOptions.map(function (option) { return (tslib.__assign(tslib.__assign({}, option), { badgeContent: _this.props.rates
|
|
2433
|
-
? cbioportalUtils.formatPercentValue(_this.props.rates[option.value])
|
|
2450
|
+
? "".concat(cbioportalUtils.formatPercentValue(_this.props.rates[option.value]), "%")
|
|
2434
2451
|
: undefined })); });
|
|
2435
2452
|
},
|
|
2436
2453
|
enumerable: false,
|
|
@@ -2606,9 +2623,9 @@ function updatePositionSelectionFilters(dataStore, position, isMultiSelect, defa
|
|
|
2606
2623
|
var otherFilters = dataStore.selectionFilters.filter(function (f) { return f.type !== exports.DataFilterType.POSITION; });
|
|
2607
2624
|
// reset filters
|
|
2608
2625
|
dataStore.clearSelectionFilters();
|
|
2609
|
-
dataStore.setSelectionFilters(tslib.
|
|
2626
|
+
dataStore.setSelectionFilters(tslib.__spreadArray(tslib.__spreadArray([
|
|
2610
2627
|
positionFilter
|
|
2611
|
-
], defaultFilters, otherFilters));
|
|
2628
|
+
], defaultFilters, true), otherFilters, true));
|
|
2612
2629
|
}
|
|
2613
2630
|
function updatePositionHighlightFilters(dataStore, positions, defaultFilters) {
|
|
2614
2631
|
if (defaultFilters === void 0) { defaultFilters = []; }
|
|
@@ -2617,7 +2634,7 @@ function updatePositionHighlightFilters(dataStore, positions, defaultFilters) {
|
|
|
2617
2634
|
type: exports.DataFilterType.POSITION,
|
|
2618
2635
|
values: positions,
|
|
2619
2636
|
};
|
|
2620
|
-
dataStore.setHighlightFilters(tslib.
|
|
2637
|
+
dataStore.setHighlightFilters(tslib.__spreadArray(tslib.__spreadArray([], defaultFilters, true), [positionFilter], false));
|
|
2621
2638
|
}
|
|
2622
2639
|
function updatePositionRangeHighlightFilters(dataStore, startPosition, endPosition, defaultFilters) {
|
|
2623
2640
|
if (defaultFilters === void 0) { defaultFilters = []; }
|
|
@@ -2633,7 +2650,7 @@ function findAllUniquePositions(filters) {
|
|
|
2633
2650
|
.filter(function (f) { return f.type === exports.DataFilterType.POSITION; })
|
|
2634
2651
|
// we need to spread f.values, since it might be an observable mobx array
|
|
2635
2652
|
// (mobx observable arrays does not play well with some array functions)
|
|
2636
|
-
.map(function (f) { return tslib.
|
|
2653
|
+
.map(function (f) { return tslib.__spreadArray([], f.values, true); })));
|
|
2637
2654
|
}
|
|
2638
2655
|
function indexPositions(filters) {
|
|
2639
2656
|
return ___default["default"].keyBy(findAllUniquePositions(filters).map(function (p) { return ({ position: p }); }), 'position');
|
|
@@ -2720,7 +2737,7 @@ function onFilterOptionSelect(selectedValues, allValuesSelected, dataStore, data
|
|
|
2720
2737
|
values: selectedValues,
|
|
2721
2738
|
};
|
|
2722
2739
|
// replace the existing data filter wrt the current selection (other filters + new data filter)
|
|
2723
|
-
dataStore.setDataFilters(tslib.
|
|
2740
|
+
dataStore.setDataFilters(tslib.__spreadArray(tslib.__spreadArray([], otherFilters, true), [dataFilter], false));
|
|
2724
2741
|
}
|
|
2725
2742
|
}
|
|
2726
2743
|
function applyDataFiltersOnDatum(datum, dataFilters, applyFilter) {
|
|
@@ -2939,7 +2956,7 @@ var DataTable = /** @class */ (function (_super) {
|
|
|
2939
2956
|
else {
|
|
2940
2957
|
return this.props.initialSort.map(function (s) { return ({
|
|
2941
2958
|
id: s.column,
|
|
2942
|
-
desc: s.sortDirection !== exports.ColumnSortDirection.ASC,
|
|
2959
|
+
desc: s.sortDirection !== exports.ColumnSortDirection.ASC, // default: DESC
|
|
2943
2960
|
}); });
|
|
2944
2961
|
}
|
|
2945
2962
|
},
|
|
@@ -3570,7 +3587,7 @@ function mergeColumns(defaultColumns, customColumns) {
|
|
|
3570
3587
|
overrides.push(colOverride);
|
|
3571
3588
|
}
|
|
3572
3589
|
});
|
|
3573
|
-
return tslib.
|
|
3590
|
+
return tslib.__spreadArray(tslib.__spreadArray([], merged, true), ___default["default"].difference(customColumns, overrides), true);
|
|
3574
3591
|
}
|
|
3575
3592
|
|
|
3576
3593
|
var DefaultMutationTableComponent = /** @class */ (function (_super) {
|
|
@@ -3807,9 +3824,9 @@ var DefaultMutationTable = /** @class */ (function (_super) {
|
|
|
3807
3824
|
values: dataFilterValues,
|
|
3808
3825
|
};
|
|
3809
3826
|
// replace current text input filter with the new one
|
|
3810
|
-
this.props.dataStore.setDataFilters(tslib.
|
|
3827
|
+
this.props.dataStore.setDataFilters(tslib.__spreadArray(tslib.__spreadArray([], otherFilters, true), [
|
|
3811
3828
|
textInputFilter,
|
|
3812
|
-
]));
|
|
3829
|
+
], false));
|
|
3813
3830
|
}
|
|
3814
3831
|
else {
|
|
3815
3832
|
// if no text input remove text input filter (set data filters to all other filters except input)
|
|
@@ -4201,14 +4218,14 @@ function lollipopLabelText(mutationsAtPosition, size) {
|
|
|
4201
4218
|
// construct label (sorted by protein change count, not alphabetically)
|
|
4202
4219
|
var label = startStr + proteinChangesTrimmed.join('/');
|
|
4203
4220
|
if (proteinChanges.length < mutationCountsByProteinChange.length) {
|
|
4204
|
-
label = label
|
|
4205
|
-
proteinChanges.length
|
|
4221
|
+
label = "".concat(label, " and ").concat(mutationCountsByProteinChange.length -
|
|
4222
|
+
proteinChanges.length, " more");
|
|
4206
4223
|
}
|
|
4207
4224
|
return label;
|
|
4208
4225
|
}
|
|
4209
4226
|
function lollipopLabelTextAnchor(labelText, codon, fontFamily, fontSize, geneWidth, proteinLength) {
|
|
4210
4227
|
var anchor = 'middle';
|
|
4211
|
-
var approxLabelWidth = cbioportalFrontendCommons.getTextWidth(labelText, fontFamily, fontSize
|
|
4228
|
+
var approxLabelWidth = cbioportalFrontendCommons.getTextWidth(labelText, fontFamily, "".concat(fontSize, "px"));
|
|
4212
4229
|
var lollipopDistanceToOrigin = codon * (geneWidth / proteinLength);
|
|
4213
4230
|
var lollipopDistanceToXMax = geneWidth - lollipopDistanceToOrigin;
|
|
4214
4231
|
// if lollipop is too close to the origin, in order to prevent label overlap set anchor to "start"
|
|
@@ -5262,7 +5279,7 @@ var LollipopPlotNoTooltip = /** @class */ (function (_super) {
|
|
|
5262
5279
|
var segments = ___default["default"].map(this.props.domains, function (domain) {
|
|
5263
5280
|
var segment = {
|
|
5264
5281
|
start: start,
|
|
5265
|
-
end: _this.codonToX(domain.startCodon),
|
|
5282
|
+
end: _this.codonToX(domain.startCodon), // segment ends at the start of the current domain
|
|
5266
5283
|
};
|
|
5267
5284
|
// next segment starts at the end of the current domain
|
|
5268
5285
|
start = _this.codonToX(domain.endCodon);
|
|
@@ -5310,7 +5327,7 @@ var LollipopPlotNoTooltip = /** @class */ (function (_super) {
|
|
|
5310
5327
|
? -_this.countToHeight(lollipop.count, _this.bottomYMax, _this.zeroHeight)
|
|
5311
5328
|
: _this.countToHeight(lollipop.count, _this.yMax, _this.zeroHeight);
|
|
5312
5329
|
var stickBaseY = _this.calcStickBaseY(lollipop.placement);
|
|
5313
|
-
return (React__namespace.createElement(Lollipop, { key: lollipop.codon
|
|
5330
|
+
return (React__namespace.createElement(Lollipop, { key: "".concat(lollipop.codon, "_").concat(lollipop.placement === LollipopPlacement.BOTTOM
|
|
5314
5331
|
? 'bottom'
|
|
5315
5332
|
: 'top'), ref: function (lollipopComponent) {
|
|
5316
5333
|
if (lollipopComponent !== null) {
|
|
@@ -5361,12 +5378,12 @@ var LollipopPlotNoTooltip = /** @class */ (function (_super) {
|
|
|
5361
5378
|
}
|
|
5362
5379
|
else {
|
|
5363
5380
|
label = groupName
|
|
5364
|
-
? symbol
|
|
5365
|
-
''
|
|
5366
|
-
: symbol
|
|
5381
|
+
? "".concat(symbol, " ").concat(this.props.hugoGeneSymbol ||
|
|
5382
|
+
'', " ").concat(groupName, " Mutations")
|
|
5383
|
+
: "".concat(symbol, " ").concat(this.props.hugoGeneSymbol || '', " Mutations");
|
|
5367
5384
|
}
|
|
5368
5385
|
var placeOnBottom = placement === LollipopPlacement.BOTTOM;
|
|
5369
|
-
return (React__namespace.createElement(cbioportalFrontendCommons.SVGAxis, { key: "lollipopPlotYAxis_"
|
|
5386
|
+
return (React__namespace.createElement(cbioportalFrontendCommons.SVGAxis, { key: "lollipopPlotYAxis_".concat(placeOnBottom ? 'bottom' : 'top'), x: this.geneX - this.yAxisPadding, y: y, length: this.yAxisHeight, tickLength: 7, rangeLower: 0, rangeUpper: yMax, ticks: ticks, vertical: true, verticalLabelPadding: this.props.yAxisLabelPadding, reverse: placeOnBottom, label: label }));
|
|
5370
5387
|
}
|
|
5371
5388
|
});
|
|
5372
5389
|
Object.defineProperty(LollipopPlotNoTooltip.prototype, "xAxis", {
|
|
@@ -5375,7 +5392,7 @@ var LollipopPlotNoTooltip = /** @class */ (function (_super) {
|
|
|
5375
5392
|
writable: true,
|
|
5376
5393
|
value: function (y, placement) {
|
|
5377
5394
|
var placeOnTop = placement === LollipopPlacement.TOP;
|
|
5378
|
-
return (React__namespace.createElement(cbioportalFrontendCommons.SVGAxis, { key: "lollipopPlotXAxis_"
|
|
5395
|
+
return (React__namespace.createElement(cbioportalFrontendCommons.SVGAxis, { key: "lollipopPlotXAxis_".concat(placeOnTop ? 'top' : 'bottom'), x: this.geneX, y: y + (placeOnTop ? this.xAxisHeight : 0), length: this.props.vizWidth, tickLength: 7, rangeLower: 0, rangeUpper: this.props.xMax, ticks: this.xTicks, invertTicks: placeOnTop }));
|
|
5379
5396
|
}
|
|
5380
5397
|
});
|
|
5381
5398
|
Object.defineProperty(LollipopPlotNoTooltip.prototype, "axisTicks", {
|
|
@@ -5436,7 +5453,7 @@ var LollipopPlotNoTooltip = /** @class */ (function (_super) {
|
|
|
5436
5453
|
configurable: true,
|
|
5437
5454
|
writable: true,
|
|
5438
5455
|
value: function (index) {
|
|
5439
|
-
return ""
|
|
5456
|
+
return "".concat(DOMAIN_ID_CLASS_PREFIX).concat(index);
|
|
5440
5457
|
}
|
|
5441
5458
|
});
|
|
5442
5459
|
Object.defineProperty(LollipopPlotNoTooltip.prototype, "makeLollipopIndexClass", {
|
|
@@ -5444,7 +5461,7 @@ var LollipopPlotNoTooltip = /** @class */ (function (_super) {
|
|
|
5444
5461
|
configurable: true,
|
|
5445
5462
|
writable: true,
|
|
5446
5463
|
value: function (index) {
|
|
5447
|
-
return ""
|
|
5464
|
+
return "".concat(LOLLIPOP_ID_CLASS_PREFIX).concat(index);
|
|
5448
5465
|
}
|
|
5449
5466
|
});
|
|
5450
5467
|
Object.defineProperty(LollipopPlotNoTooltip.prototype, "makeSequenceIndexClass", {
|
|
@@ -5452,7 +5469,7 @@ var LollipopPlotNoTooltip = /** @class */ (function (_super) {
|
|
|
5452
5469
|
configurable: true,
|
|
5453
5470
|
writable: true,
|
|
5454
5471
|
value: function (index) {
|
|
5455
|
-
return ""
|
|
5472
|
+
return "".concat(SEQUENCE_ID_CLASS_PREFIX).concat(index);
|
|
5456
5473
|
}
|
|
5457
5474
|
});
|
|
5458
5475
|
Object.defineProperty(LollipopPlotNoTooltip.prototype, "getDomainIndex", {
|
|
@@ -5856,7 +5873,7 @@ var AxisScaleSwitch = /** @class */ (function (_super) {
|
|
|
5856
5873
|
return (React__namespace.createElement("button", { className: classNames__default["default"]({
|
|
5857
5874
|
'btn-secondary': this.props.selectedScale === scale,
|
|
5858
5875
|
'btn-outline-secondary': this.props.selectedScale !== scale,
|
|
5859
|
-
}, 'btn', 'btn-sm', 'btn-axis-switch'), "data-test": "AxisScaleSwitch"
|
|
5876
|
+
}, 'btn', 'btn-sm', 'btn-axis-switch'), "data-test": "AxisScaleSwitch".concat(scale), style: {
|
|
5860
5877
|
lineHeight: 1,
|
|
5861
5878
|
cursor: this.props.selectedScale === scale
|
|
5862
5879
|
? 'default'
|
|
@@ -6035,7 +6052,7 @@ var LollipopMutationPlotControls = /** @class */ (function (_super) {
|
|
|
6035
6052
|
});
|
|
6036
6053
|
Object.defineProperty(LollipopMutationPlotControls.prototype, "downloadControls", {
|
|
6037
6054
|
get: function () {
|
|
6038
|
-
return (React__namespace.createElement(cbioportalFrontendCommons.DownloadControls, { getSvg: this.props.getSVG, filename: this.props.hugoGeneSymbol
|
|
6055
|
+
return (React__namespace.createElement(cbioportalFrontendCommons.DownloadControls, { getSvg: this.props.getSVG, filename: "".concat(this.props.hugoGeneSymbol, "_lollipop"), dontFade: true, type: "button" }));
|
|
6039
6056
|
},
|
|
6040
6057
|
enumerable: false,
|
|
6041
6058
|
configurable: true
|
|
@@ -6592,7 +6609,7 @@ var Track = /** @class */ (function (_super) {
|
|
|
6592
6609
|
if (item !== null) {
|
|
6593
6610
|
_this.shapes[index] = item;
|
|
6594
6611
|
}
|
|
6595
|
-
}, key: spec.startCodon, hitZoneClassName: ""
|
|
6612
|
+
}, key: spec.startCodon, hitZoneClassName: "".concat(_this.props.idClassPrefix).concat(index), hitZoneXOffset: _this.props.xOffset, x: (spec.startCodon / _this.props.proteinLength) *
|
|
6596
6613
|
_this.props.width, y: y, dim1: dim1, dim2: dim2, spec: specFeats }));
|
|
6597
6614
|
});
|
|
6598
6615
|
},
|
|
@@ -6669,7 +6686,7 @@ var Track = /** @class */ (function (_super) {
|
|
|
6669
6686
|
position: 'relative',
|
|
6670
6687
|
display: 'flex',
|
|
6671
6688
|
} },
|
|
6672
|
-
React__namespace.createElement("span", { className: classNames__default["default"](styles$4.trackTitle, 'small', (this.props.isSubTrack ? 'subtrack-' : ''
|
|
6689
|
+
React__namespace.createElement("span", { className: classNames__default["default"](styles$4.trackTitle, 'small', "".concat(this.props.isSubTrack ? 'subtrack-' : '', "trackTitle")) }, this.props.trackTitle),
|
|
6673
6690
|
React__namespace.createElement("span", null,
|
|
6674
6691
|
React__namespace.createElement(cbioportalFrontendCommons.DefaultTooltip, tslib.__assign({ placement: this.getOverlayPlacement(), overlay: this.getOverlay, onVisibleChange: this.onTooltipVisibleChange, destroyTooltipOnHide: true }, this.tooltipVisibleProps), this.hitZone),
|
|
6675
6692
|
React__namespace.createElement("span", { style: { marginLeft: this.props.xOffset }, onMouseOver: this.onMouseOver },
|
|
@@ -6750,7 +6767,7 @@ function hotspotTooltip(mutations, hotspotIndex, hotspots) {
|
|
|
6750
6767
|
}).length;
|
|
6751
6768
|
// generate custom info
|
|
6752
6769
|
var residues = ___default["default"].uniq(hotspots.map(function (hotspot) { return hotspot.residue; }));
|
|
6753
|
-
var residuesText = React__namespace.createElement("b", null, ""
|
|
6770
|
+
var residuesText = React__namespace.createElement("b", null, "".concat(residues.join(', ')));
|
|
6754
6771
|
var pluralSuffix = residues.length > 1 ? 's' : undefined;
|
|
6755
6772
|
var residueInfo = (React__namespace.createElement("span", null,
|
|
6756
6773
|
"on residue",
|
|
@@ -7025,11 +7042,11 @@ var ExonTrack = /** @class */ (function (_super) {
|
|
|
7025
7042
|
var exonEndLocation = cbioportalUtils.formatExonLocation(endCodon);
|
|
7026
7043
|
var exonLength = cbioportalUtils.formatExonLength(exon.length);
|
|
7027
7044
|
var link = _this.chromosome
|
|
7028
|
-
? "https://igv.org/app/?locus=chr"
|
|
7045
|
+
? "https://igv.org/app/?locus=chr".concat(_this.chromosome, ":").concat(exon.genomicLocationStart, "-").concat(exon.genomicLocationEnd, "&genome=").concat(_this.genomeBuild)
|
|
7029
7046
|
: 'https://igv.org';
|
|
7030
7047
|
var linkText = _this.chromosome
|
|
7031
|
-
? _this.genomeBuild
|
|
7032
|
-
: exon.genomicLocationStart
|
|
7048
|
+
? "".concat(_this.genomeBuild, ":chr").concat(_this.chromosome, ":").concat(exon.genomicLocationStart, " - ").concat(exon.genomicLocationEnd)
|
|
7049
|
+
: "".concat(exon.genomicLocationStart, " - ").concat(exon.genomicLocationEnd);
|
|
7033
7050
|
return {
|
|
7034
7051
|
color: altColors[index % 2],
|
|
7035
7052
|
startCodon: startCodon,
|
|
@@ -7198,7 +7215,7 @@ var PTM_ANNOTATION_DEFAULT_COLUMNS = (_a = {},
|
|
|
7198
7215
|
_a);
|
|
7199
7216
|
function getResidue(ptm) {
|
|
7200
7217
|
if (ptm.residue.end && ptm.residue.end > ptm.residue.start) {
|
|
7201
|
-
return ptm.residue.start
|
|
7218
|
+
return "".concat(ptm.residue.start, "-").concat(ptm.residue.end);
|
|
7202
7219
|
}
|
|
7203
7220
|
else {
|
|
7204
7221
|
return ptm.residue.start.toString();
|
|
@@ -7437,7 +7454,7 @@ var PtmTrack = /** @class */ (function (_super) {
|
|
|
7437
7454
|
"PTM",
|
|
7438
7455
|
' ',
|
|
7439
7456
|
this.props.dataSource
|
|
7440
|
-
? "("
|
|
7457
|
+
? "(".concat(this.props.dataSource, ")")
|
|
7441
7458
|
: 'Sites',
|
|
7442
7459
|
' ',
|
|
7443
7460
|
React__namespace.createElement("i", { className: "fa fa-info-circle" })))));
|
|
@@ -7489,7 +7506,7 @@ var PtmTrack = /** @class */ (function (_super) {
|
|
|
7489
7506
|
overflow: 'hidden',
|
|
7490
7507
|
whiteSpace: 'nowrap',
|
|
7491
7508
|
textOverflow: 'ellipsis',
|
|
7492
|
-
} })), width: _this.props.width, proteinLength: _this.props.proteinLength, trackItems: item.specs, idClassPrefix: "ptm-"
|
|
7509
|
+
} })), width: _this.props.width, proteinLength: _this.props.proteinLength, trackItems: item.specs, idClassPrefix: "ptm-".concat(index, "-"), isSubTrack: true })); })
|
|
7493
7510
|
: null;
|
|
7494
7511
|
},
|
|
7495
7512
|
enumerable: false,
|
|
@@ -7600,7 +7617,7 @@ var UniprotTopologyTrackDescriptionTooltip = function (props) {
|
|
|
7600
7617
|
var dataSourceDiv = props.uniprotId ? (React__namespace.createElement("div", null,
|
|
7601
7618
|
"Data Source:",
|
|
7602
7619
|
' ',
|
|
7603
|
-
React__namespace.createElement("a", { href: "https://www.uniprot.org/uniprot/"
|
|
7620
|
+
React__namespace.createElement("a", { href: "https://www.uniprot.org/uniprot/".concat(props.uniprotId), target: "_blank" }, "UniProt"))) : (React__namespace.createElement("div", null,
|
|
7604
7621
|
"Data Source:",
|
|
7605
7622
|
' ',
|
|
7606
7623
|
React__namespace.createElement("a", { href: 'https://www.uniprot.org/', target: "_blank" }, "UniProt")));
|
|
@@ -7749,7 +7766,7 @@ var UniprotTopologyTrack = /** @class */ (function (_super) {
|
|
|
7749
7766
|
overflow: 'hidden',
|
|
7750
7767
|
whiteSpace: 'nowrap',
|
|
7751
7768
|
textOverflow: 'ellipsis',
|
|
7752
|
-
} })), width: _this.props.width, proteinLength: _this.props.proteinLength, trackItems: item.specs, idClassPrefix: "uniprot-topology-"
|
|
7769
|
+
} })), width: _this.props.width, proteinLength: _this.props.proteinLength, trackItems: item.specs, idClassPrefix: "uniprot-topology-".concat(index, "-"), isSubTrack: true })); })
|
|
7753
7770
|
: null;
|
|
7754
7771
|
},
|
|
7755
7772
|
enumerable: false,
|
|
@@ -7881,9 +7898,19 @@ var TrackPanel = /** @class */ (function (_super) {
|
|
|
7881
7898
|
configurable: true,
|
|
7882
7899
|
writable: true,
|
|
7883
7900
|
value: function (trackName, ptmSource) {
|
|
7901
|
+
var _this = this;
|
|
7884
7902
|
var _a;
|
|
7885
7903
|
return !this.props.trackVisibility ||
|
|
7886
|
-
this.props.trackVisibility[trackName] === 'visible' ? (React__namespace.createElement(PtmTrack, { store: this.props.store, pubMedCache: this.props.pubMedCache, ensemblTranscriptId: (_a = this.props.store.activeTranscript) === null || _a === void 0 ? void 0 : _a.result
|
|
7904
|
+
this.props.trackVisibility[trackName] === 'visible' ? (React__namespace.createElement(PtmTrack, { store: this.props.store, pubMedCache: this.props.pubMedCache, ensemblTranscriptId: ((_a = this.props.store.activeTranscript) === null || _a === void 0 ? void 0 : _a.result)
|
|
7905
|
+
? (function () {
|
|
7906
|
+
var _a;
|
|
7907
|
+
var tid = _this.props.store.activeTranscript
|
|
7908
|
+
.result;
|
|
7909
|
+
var ver = (_a = _this.props.store
|
|
7910
|
+
.transcriptsByTranscriptId[tid]) === null || _a === void 0 ? void 0 : _a.transcriptIdVersion;
|
|
7911
|
+
return ver ? "".concat(tid, ".").concat(ver) : tid;
|
|
7912
|
+
})()
|
|
7913
|
+
: undefined, dataStore: this.props.store.dataStore, width: this.props.geneWidth, xOffset: this.props.geneXOffset, proteinLength: this.proteinLength, dataSource: ptmSource, dataSourceUrl: cbioportalUtils.PTM_SOURCE_URL[ptmSource], ptmTooltipColumnOverrides: this.getPtmTooltipColumnOverrides(ptmSource), collapsed: this.props.collapsePtmTrack })) : null;
|
|
7887
7914
|
}
|
|
7888
7915
|
});
|
|
7889
7916
|
Object.defineProperty(TrackPanel.prototype, "getPtmTooltipColumnOverrides", {
|
|
@@ -7947,7 +7974,7 @@ var DomainTooltip = function (props) {
|
|
|
7947
7974
|
var pfamAccession = domain ? domain.pfamAccession : pfamDomainId;
|
|
7948
7975
|
// if no domain info, then just display the accession
|
|
7949
7976
|
var domainInfo = domain
|
|
7950
|
-
? domain.name
|
|
7977
|
+
? "".concat(domain.name, ": ").concat(domain.description)
|
|
7951
7978
|
: pfamAccession;
|
|
7952
7979
|
return (React__namespace.createElement("div", { style: { maxWidth: 200 } },
|
|
7953
7980
|
React__namespace.createElement("div", null,
|
|
@@ -7958,7 +7985,7 @@ var DomainTooltip = function (props) {
|
|
|
7958
7985
|
range.pfamDomainEnd,
|
|
7959
7986
|
")"),
|
|
7960
7987
|
React__namespace.createElement("div", null,
|
|
7961
|
-
React__namespace.createElement("a", { style: { marginRight: '5px' }, href: "http://pfam.xfam.org/family/"
|
|
7988
|
+
React__namespace.createElement("a", { style: { marginRight: '5px' }, href: "http://pfam.xfam.org/family/".concat(pfamAccession), target: "_blank" }, "PFAM"),
|
|
7962
7989
|
React__namespace.createElement(MutationAlignerLink, { mutationAlignerCache: props.mutationAlignerCache, pfamAccession: pfamAccession }))));
|
|
7963
7990
|
};
|
|
7964
7991
|
|
|
@@ -8091,9 +8118,9 @@ var LollipopMutationPlot = /** @class */ (function (_super) {
|
|
|
8091
8118
|
var count = countsByPosition[codon];
|
|
8092
8119
|
var countInfo = this.props.lollipopTooltipCountInfo ? (this.props.lollipopTooltipCountInfo(count, mutationsAtPosition, this.props.axisMode, group)) : (React__namespace.createElement("strong", null,
|
|
8093
8120
|
count,
|
|
8094
|
-
" mutation", ""
|
|
8121
|
+
" mutation", "".concat(count !== 1 ? 's' : '')));
|
|
8095
8122
|
var label = lollipopLabelText(mutationsAtPosition);
|
|
8096
|
-
return (React__namespace.createElement("div", { "data-test": "tooltip-"
|
|
8123
|
+
return (React__namespace.createElement("div", { "data-test": "tooltip-".concat(codon).concat(group ? "-".concat(group) : '') },
|
|
8097
8124
|
countInfo,
|
|
8098
8125
|
React__namespace.createElement("br", null),
|
|
8099
8126
|
React__namespace.createElement("span", null,
|
|
@@ -8396,7 +8423,7 @@ var LollipopMutationPlot = /** @class */ (function (_super) {
|
|
|
8396
8423
|
writable: true,
|
|
8397
8424
|
value: function () {
|
|
8398
8425
|
return (React__namespace.createElement("div", { style: { maxWidth: 200 } },
|
|
8399
|
-
React__namespace.createElement("a", { href: "https://www.uniprot.org/uniprot/"
|
|
8426
|
+
React__namespace.createElement("a", { href: "https://www.uniprot.org/uniprot/".concat(this.props.store.uniprotId.result), target: "_blank" }, this.props.store.uniprotId.result)));
|
|
8400
8427
|
}
|
|
8401
8428
|
});
|
|
8402
8429
|
Object.defineProperty(LollipopMutationPlot.prototype, "sequence", {
|
|
@@ -8429,15 +8456,15 @@ var LollipopMutationPlot = /** @class */ (function (_super) {
|
|
|
8429
8456
|
//Add svg to the dom so getBBox can calculate dimensions
|
|
8430
8457
|
document.body.appendChild(outerSvg);
|
|
8431
8458
|
// Group the tracks and translate below the lollipop chart
|
|
8432
|
-
var allTracksG = createGroupTag("translate(0, "
|
|
8459
|
+
var allTracksG = createGroupTag("translate(0, ".concat(LollipopPlot.defaultProps.vizHeight, ")"));
|
|
8433
8460
|
outerSvg.append(allTracksG);
|
|
8434
8461
|
var trackSvgList = $__default["default"](this.divContainer).find('.track-svgnode');
|
|
8435
8462
|
var trackTitles = $__default["default"](this.divContainer).find('span[class*=trackTitle]');
|
|
8436
8463
|
var trackYShift = 0;
|
|
8437
8464
|
trackSvgList.each(function (idx, track) {
|
|
8438
|
-
var trackSvgGroup = createGroupTag("translate("
|
|
8465
|
+
var trackSvgGroup = createGroupTag("translate(".concat(_this.geneXOffset, ",").concat(trackYShift, ")"));
|
|
8439
8466
|
trackSvgGroup.appendChild(track.cloneNode(true));
|
|
8440
|
-
var trackNameGroup = createGroupTag("translate(0,"
|
|
8467
|
+
var trackNameGroup = createGroupTag("translate(0,".concat(trackYShift + 8, ")"));
|
|
8441
8468
|
var isSubTrack = trackTitles[idx].className.includes('subtrack-');
|
|
8442
8469
|
var trackName = createTextTag(document.createTextNode(trackTitles[idx].innerText), TEXT_STYLE, isSubTrack ? SUBTRACK_INDENT : TRACK_INDENT, 0);
|
|
8443
8470
|
trackNameGroup.append(trackName);
|
|
@@ -8685,7 +8712,7 @@ var LollipopTooltipCountInfo = function (_a) {
|
|
|
8685
8712
|
cbioportalUtils.formatPercentValue(count, fractionDigits),
|
|
8686
8713
|
"% mutation rate")) : (React__namespace.createElement("strong", null,
|
|
8687
8714
|
count,
|
|
8688
|
-
" mutation", ""
|
|
8715
|
+
" mutation", "".concat(count !== 1 ? 's' : '')));
|
|
8689
8716
|
};
|
|
8690
8717
|
|
|
8691
8718
|
var DefaultStringQueryCache = /** @class */ (function () {
|
|
@@ -8808,7 +8835,7 @@ var MutationAlignerCache = /** @class */ (function (_super) {
|
|
|
8808
8835
|
// )
|
|
8809
8836
|
// )
|
|
8810
8837
|
// .catch(e => Promise.reject(e));
|
|
8811
|
-
return Promise.resolve("http://mutationaligner.org/domains/"
|
|
8838
|
+
return Promise.resolve("http://mutationaligner.org/domains/".concat(pfamAccession));
|
|
8812
8839
|
}
|
|
8813
8840
|
});
|
|
8814
8841
|
return MutationAlignerCache;
|
|
@@ -9335,7 +9362,7 @@ var DefaultMutationMapperDataFetcher = /** @class */ (function () {
|
|
|
9335
9362
|
switch (_a.label) {
|
|
9336
9363
|
case 0:
|
|
9337
9364
|
if (!swissProtId) return [3 /*break*/, 2];
|
|
9338
|
-
return [4 /*yield*/, request__default["default"].get(getUrl("https://www.ebi.ac.uk/proteins/api/features/<%= uniprotAccession %>?categories="
|
|
9365
|
+
return [4 /*yield*/, request__default["default"].get(getUrl("https://www.ebi.ac.uk/proteins/api/features/<%= uniprotAccession %>?categories=".concat(category.join(',')), { uniprotAccession: swissProtId }))];
|
|
9339
9366
|
case 1:
|
|
9340
9367
|
uniprotData = _a.sent();
|
|
9341
9368
|
featureList = JSON.parse(uniprotData.text);
|
|
@@ -10338,8 +10365,8 @@ var DefaultMutationMapperStore = /** @class */ (function () {
|
|
|
10338
10365
|
var ensemblTranscriptLookUpLink;
|
|
10339
10366
|
return tslib.__generator(this, function (_a) {
|
|
10340
10367
|
ensemblTranscriptLookUpLink = this.genomeBuild === 'hg19'
|
|
10341
|
-
? "https://grch37.rest.ensembl.org/lookup/id/"
|
|
10342
|
-
: "https://rest.ensembl.org/lookup/id/"
|
|
10368
|
+
? "https://grch37.rest.ensembl.org/lookup/id/".concat(this.activeTranscript.result, "?content-type=application/json")
|
|
10369
|
+
: "https://rest.ensembl.org/lookup/id/".concat(this.activeTranscript.result, "?content-type=application/json");
|
|
10343
10370
|
return [2 /*return*/, this.activeTranscript.result
|
|
10344
10371
|
? request.get(ensemblTranscriptLookUpLink)
|
|
10345
10372
|
: undefined];
|
|
@@ -10738,6 +10765,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
|
|
|
10738
10765
|
], DefaultMutationMapperStore.prototype, "getDefaultEntrezGeneId", null);
|
|
10739
10766
|
tslib.__decorate([
|
|
10740
10767
|
mobx.computed
|
|
10768
|
+
// Get genome build for exon track
|
|
10741
10769
|
], DefaultMutationMapperStore.prototype, "genomeBuild", null);
|
|
10742
10770
|
return DefaultMutationMapperStore;
|
|
10743
10771
|
}());
|
|
@@ -10832,11 +10860,15 @@ var TranscriptDropdown = /** @class */ (function (_super) {
|
|
|
10832
10860
|
value: function (activeTranscript, allTranscripts, canonicalTranscript, transcriptsByTranscriptId, mutationsByTranscriptId) {
|
|
10833
10861
|
var _this = this;
|
|
10834
10862
|
var activeRefseqMrnaId = transcriptsByTranscriptId[activeTranscript].refseqMrnaId;
|
|
10863
|
+
var activeVersionSuffix = transcriptsByTranscriptId[activeTranscript].transcriptIdVersion;
|
|
10864
|
+
var activeVersionedId = activeVersionSuffix
|
|
10865
|
+
? "".concat(activeTranscript, ".").concat(activeVersionSuffix)
|
|
10866
|
+
: activeTranscript;
|
|
10835
10867
|
return (React__namespace.createElement("div", null,
|
|
10836
10868
|
React__namespace.createElement(Select__default["default"], { "aria-label": "Transcript Dropdown", value: {
|
|
10837
10869
|
label: activeRefseqMrnaId
|
|
10838
10870
|
? activeRefseqMrnaId
|
|
10839
|
-
:
|
|
10871
|
+
: activeVersionedId,
|
|
10840
10872
|
value: activeTranscript,
|
|
10841
10873
|
}, clearable: false,
|
|
10842
10874
|
// need to explicitly set deleteRemoves for clearable
|
|
@@ -10844,13 +10876,18 @@ var TranscriptDropdown = /** @class */ (function (_super) {
|
|
|
10844
10876
|
deleteRemoves: false, options: this.sortTranscripts(allTranscripts).map(function (t) {
|
|
10845
10877
|
var length = transcriptsByTranscriptId[t].proteinLength;
|
|
10846
10878
|
var refseqMrnaId = transcriptsByTranscriptId[t].refseqMrnaId;
|
|
10879
|
+
var versionSuffix = transcriptsByTranscriptId[t]
|
|
10880
|
+
.transcriptIdVersion;
|
|
10881
|
+
var versionedId = versionSuffix
|
|
10882
|
+
? "".concat(t, ".").concat(versionSuffix)
|
|
10883
|
+
: t;
|
|
10847
10884
|
var ccdsId = transcriptsByTranscriptId[t].ccdsId;
|
|
10848
10885
|
var nrOfMutations = mutationsByTranscriptId &&
|
|
10849
10886
|
mutationsByTranscriptId[t] &&
|
|
10850
10887
|
mutationsByTranscriptId[t].length;
|
|
10851
|
-
var label = ""
|
|
10852
|
-
? "("
|
|
10853
|
-
: ''
|
|
10888
|
+
var label = "".concat(refseqMrnaId ? "".concat(refseqMrnaId, " / ") : '').concat(versionedId, " ").concat(ccdsId ? "(".concat(ccdsId, ")") : '', " ").concat(length ? "(".concat(length, " amino acids)") : '', " ").concat(nrOfMutations
|
|
10889
|
+
? "(".concat(nrOfMutations, " mutations)")
|
|
10890
|
+
: '', " ").concat(t === canonicalTranscript ? ' (default)' : '');
|
|
10854
10891
|
return { label: label, value: t };
|
|
10855
10892
|
}), onChange: function (option) {
|
|
10856
10893
|
if (option.value) {
|
|
@@ -10903,23 +10940,29 @@ var TranscriptDropdown = /** @class */ (function (_super) {
|
|
|
10903
10940
|
var styles = {"geneSummary":"geneSummary-module_geneSummary__2baMD","geneSummaryCompact":"geneSummary-module_geneSummaryCompact__3_qUv","hugoSymbol":"geneSummary-module_hugoSymbol__KSt5x"};
|
|
10904
10941
|
|
|
10905
10942
|
var GeneSummaryInfo = function (_a) {
|
|
10943
|
+
var _b;
|
|
10906
10944
|
var uniprotId = _a.uniprotId, showDropDown = _a.showDropDown, canonicalTranscript = _a.canonicalTranscript, compactStyle = _a.compactStyle, activeTranscript = _a.activeTranscript, transcriptsByTranscriptId = _a.transcriptsByTranscriptId, transcriptSummaryUrlTemplate = _a.transcriptSummaryUrlTemplate;
|
|
10907
10945
|
var canonicalTranscriptId = canonicalTranscript.result && canonicalTranscript.result.transcriptId;
|
|
10908
10946
|
var transcript = activeTranscript && activeTranscript === canonicalTranscriptId
|
|
10909
10947
|
? canonicalTranscript.result
|
|
10910
10948
|
: transcriptsByTranscriptId[activeTranscript];
|
|
10911
10949
|
var refseqMrnaId = transcript && transcript.refseqMrnaId;
|
|
10950
|
+
var versionedTranscriptId = transcript && transcript.transcriptIdVersion
|
|
10951
|
+
? "".concat(transcript.transcriptId, ".").concat(transcript.transcriptIdVersion)
|
|
10952
|
+
: null;
|
|
10912
10953
|
var ccdsId = transcript && transcript.ccdsId;
|
|
10913
|
-
var refSeq = refseqMrnaId ? (React__namespace.createElement("a", { href: cbioportalFrontendCommons.getNCBIlink("/nuccore/"
|
|
10954
|
+
var refSeq = refseqMrnaId ? (React__namespace.createElement("a", { href: cbioportalFrontendCommons.getNCBIlink("/nuccore/".concat(refseqMrnaId)), target: "_blank" }, refseqMrnaId)) : ('-');
|
|
10914
10955
|
var ensembl = showDropDown
|
|
10915
10956
|
? activeTranscript && (React__namespace.createElement("a", { href: getUrl(transcriptSummaryUrlTemplate, {
|
|
10916
10957
|
transcriptId: activeTranscript,
|
|
10917
|
-
}), target: "_blank" }, activeTranscript))
|
|
10958
|
+
}), target: "_blank" }, versionedTranscriptId || activeTranscript))
|
|
10918
10959
|
: canonicalTranscriptId && (
|
|
10919
10960
|
// down't show drop down, only the canonical transcript
|
|
10920
10961
|
React__namespace.createElement("a", { href: getUrl(transcriptSummaryUrlTemplate, {
|
|
10921
10962
|
transcriptId: canonicalTranscriptId,
|
|
10922
|
-
}), target: "_blank" },
|
|
10963
|
+
}), target: "_blank" }, ((_b = canonicalTranscript.result) === null || _b === void 0 ? void 0 : _b.transcriptIdVersion)
|
|
10964
|
+
? "".concat(canonicalTranscriptId, ".").concat(canonicalTranscript.result.transcriptIdVersion)
|
|
10965
|
+
: canonicalTranscriptId));
|
|
10923
10966
|
var ccds = ccdsId ? (React__namespace.createElement("a", { href: cbioportalFrontendCommons.getNCBIlink({
|
|
10924
10967
|
pathname: '/CCDS/CcdsBrowse.cgi',
|
|
10925
10968
|
query: {
|
|
@@ -10927,7 +10970,7 @@ var GeneSummaryInfo = function (_a) {
|
|
|
10927
10970
|
DATA: ccdsId,
|
|
10928
10971
|
},
|
|
10929
10972
|
}), target: "_blank" }, ccdsId)) : ('-');
|
|
10930
|
-
var uniprot = uniprotId ? (React__namespace.createElement("a", { href: "https://www.uniprot.org/uniprot/"
|
|
10973
|
+
var uniprot = uniprotId ? (React__namespace.createElement("a", { href: "https://www.uniprot.org/uniprot/".concat(uniprotId), target: "_blank" }, uniprotId)) : ('-');
|
|
10931
10974
|
var compactGeneSummaryInfo = (React__namespace.createElement("div", null,
|
|
10932
10975
|
React__namespace.createElement("span", { "data-test": "compactGeneSummaryRefSeq" }, refSeq), " | ",
|
|
10933
10976
|
ensembl,
|
|
@@ -11283,7 +11326,7 @@ var MutationMapper = /** @class */ (function (_super) {
|
|
|
11283
11326
|
? dataStore.sortedFilteredSelectedData
|
|
11284
11327
|
: dataStore.sortedFilteredData;
|
|
11285
11328
|
var allData = dataStore.allData;
|
|
11286
|
-
return (React__namespace.createElement(FilterResetPanel, { filterInfo: "Showing "
|
|
11329
|
+
return (React__namespace.createElement(FilterResetPanel, { filterInfo: "Showing ".concat(tableData.length, " of ").concat(allData.length, " mutations."), resetFilters: this.resetFilters }));
|
|
11287
11330
|
},
|
|
11288
11331
|
enumerable: false,
|
|
11289
11332
|
configurable: true
|