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