react-mutation-mapper 0.8.21 → 0.8.25
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/index.es.js +41 -34
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +41 -34
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1636,14 +1636,14 @@ function sortValue$2(indicator) {
|
|
|
1636
1636
|
return values;
|
|
1637
1637
|
}
|
|
1638
1638
|
function download$2(indicator) {
|
|
1639
|
+
var _a, _b;
|
|
1639
1640
|
if (!indicator) {
|
|
1640
1641
|
return 'NA';
|
|
1641
1642
|
}
|
|
1642
1643
|
var oncogenic = indicator.oncogenic ? indicator.oncogenic : 'Unknown';
|
|
1643
|
-
var
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
return oncogenic + ", " + level;
|
|
1644
|
+
var sensitivityLevel = ((_a = indicator.highestSensitiveLevel) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || 'level NA';
|
|
1645
|
+
var resistanceLevel = ((_b = indicator.highestResistanceLevel) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || 'resistance NA';
|
|
1646
|
+
return oncogenic + ", " + sensitivityLevel + ", " + resistanceLevel;
|
|
1647
1647
|
}
|
|
1648
1648
|
var OncoKB = /** @class */ (function (_super) {
|
|
1649
1649
|
__extends(OncoKB, _super);
|
|
@@ -8261,36 +8261,40 @@ var ExonTrack = /** @class */ (function (_super) {
|
|
|
8261
8261
|
}
|
|
8262
8262
|
var exons = this.transcript.exons;
|
|
8263
8263
|
var utrs = this.transcript.utrs || [];
|
|
8264
|
-
var exonInfo =
|
|
8264
|
+
var exonInfo = exons
|
|
8265
|
+
? cbioportalUtils.extractExonInformation(exons, utrs, this.props.proteinLength)
|
|
8266
|
+
: undefined;
|
|
8265
8267
|
var altColors = ['#007FFF', '#35BAF6'];
|
|
8266
|
-
return exonInfo
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
React.createElement("
|
|
8281
|
-
"
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8268
|
+
return exonInfo
|
|
8269
|
+
? exonInfo.map(function (exon, index) {
|
|
8270
|
+
var startCodon = exon.start;
|
|
8271
|
+
var endCodon = exon.start + exon.length;
|
|
8272
|
+
var exonLength = exon.length;
|
|
8273
|
+
var stringStart = cbioportalUtils.formatExonLocation(startCodon);
|
|
8274
|
+
var stringEnd = cbioportalUtils.formatExonLocation(endCodon);
|
|
8275
|
+
var stringLength = cbioportalUtils.formatExonLocation(exonLength);
|
|
8276
|
+
return {
|
|
8277
|
+
color: altColors[index % 2],
|
|
8278
|
+
startCodon: startCodon,
|
|
8279
|
+
endCodon: endCodon,
|
|
8280
|
+
label: exon.rank.toString(),
|
|
8281
|
+
labelColor: '#FFFFFF',
|
|
8282
|
+
tooltip: (React.createElement("span", null,
|
|
8283
|
+
React.createElement("h5", null,
|
|
8284
|
+
" Exon ",
|
|
8285
|
+
exon.rank,
|
|
8286
|
+
" "),
|
|
8287
|
+
"Start: ",
|
|
8288
|
+
stringStart,
|
|
8289
|
+
React.createElement("br", null),
|
|
8290
|
+
"End: ",
|
|
8291
|
+
stringEnd,
|
|
8292
|
+
React.createElement("br", null),
|
|
8293
|
+
"Length: ",
|
|
8294
|
+
stringLength)),
|
|
8295
|
+
};
|
|
8296
|
+
})
|
|
8297
|
+
: [];
|
|
8294
8298
|
},
|
|
8295
8299
|
enumerable: false,
|
|
8296
8300
|
configurable: true
|
|
@@ -11240,7 +11244,10 @@ var DefaultMutationMapperStore = /** @class */ (function () {
|
|
|
11240
11244
|
case 1:
|
|
11241
11245
|
uniprotFeatures = _a.sent();
|
|
11242
11246
|
uniprotFeatures.forEach(function (uniprotFeature) {
|
|
11243
|
-
|
|
11247
|
+
var uniprotTopology = cbioportalUtils.convertUniprotFeatureToUniprotTopology(uniprotFeature);
|
|
11248
|
+
if (uniprotTopology) {
|
|
11249
|
+
data.push(uniprotTopology);
|
|
11250
|
+
}
|
|
11244
11251
|
});
|
|
11245
11252
|
return [2 /*return*/, data];
|
|
11246
11253
|
case 2: return [2 /*return*/, []];
|