react-mutation-mapper 0.8.24 → 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 +33 -29
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +33 -29
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -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
|