react-mutation-mapper 0.8.47 → 0.8.50
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/column/MutationStatus.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +18 -7
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +17 -6
- package/dist/index.js.map +1 -1
- package/dist/styles.css +15 -15
- package/dist/util/DataFetcherUtils.d.ts +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -509,7 +509,16 @@ function getIndicatorData(mutation, oncoKbData, getTumorType, getEntrezGeneId) {
|
|
|
509
509
|
if (oncoKbData.indicatorMap === null) {
|
|
510
510
|
return undefined;
|
|
511
511
|
}
|
|
512
|
-
var id =
|
|
512
|
+
var id = '';
|
|
513
|
+
// @ts-ignore
|
|
514
|
+
var sv = mutation.structuralVariant;
|
|
515
|
+
if (sv) {
|
|
516
|
+
var structuralVariantType = cbioportalUtils.deriveStructuralVariantType(sv);
|
|
517
|
+
id = cbioportalUtils.generateQueryStructuralVariantId(sv.site1EntrezGeneId, sv.site2EntrezGeneId, getTumorType(mutation), structuralVariantType);
|
|
518
|
+
}
|
|
519
|
+
else {
|
|
520
|
+
id = cbioportalUtils.generateQueryVariantId(getEntrezGeneId(mutation), getTumorType(mutation), mutation.proteinChange, mutation.mutationType);
|
|
521
|
+
}
|
|
513
522
|
return oncoKbData.indicatorMap[id];
|
|
514
523
|
}
|
|
515
524
|
function defaultOncoKbIndicatorFilter(indicator) {
|
|
@@ -1947,7 +1956,7 @@ var HotspotInfo = function (props) {
|
|
|
1947
1956
|
|
|
1948
1957
|
var img$1 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Generated by IcoMoon.io --%3e%3c!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='1024' height='1024' viewBox='0 0 1024 1024'%3e %3cg id='icomoon-ignore'%3e %3c/g%3e %3cpath fill='%23ff9900' d='M321.008 1045.333c-68.245-142.008-31.901-223.379 20.551-300.044 57.44-83.956 72.244-167.065 72.244-167.065s45.153 58.7 27.092 150.508c79.772-88.8 94.824-230.28 82.783-284.464 180.315 126.012 257.376 398.856 153.523 601.065 552.372-312.532 137.399-780.172 65.155-832.851 24.081 52.676 28.648 141.851-20 185.127-82.352-312.276-285.972-376.276-285.972-376.276 24.083 161.044-87.296 337.144-194.696 468.731-3.775-64.216-7.783-108.528-41.549-169.98-7.58 116.656-96.732 211.748-120.873 328.628-32.701 158.287 24.496 274.18 241.748 396.623z'%3e%3c/path%3e%3c/svg%3e";
|
|
1949
1958
|
|
|
1950
|
-
var img = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Generator: Adobe Illustrator 16.0.4%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3c!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='24.263px' height='36.366px' viewBox='0 0 24.263 36.366' enable-background='new 0 0 24.263 36.366' xml:space='preserve'%3e%3cg%3e %3cpath fill='%23FF9900' d='M6.828%2c27.947c-1.859-3.872-0.869-6.094%2c0.564-8.184c1.565-2.296%2c1.968-4.558%2c1.968-4.558 s1.231%2c1.6%2c0.742%2c4.104c2.181-2.423%2c2.591-6.286%2c2.256-7.764c4.921%2c3.436%2c7.027%2c10.889%2c4.19%2c16.401 C31.627%2c19.419%2c20.3%2c6.66%2c18.326%2c5.221c0.656%2c1.439%2c0.783%2c3.873-0.546%2c5.053C15.536%2c1.75%2c9.98%2c0%2c9.98%2c0 c0.657%2c4.397-2.388%2c9.208-5.316%2c12.8C4.56%2c11.046%2c4.451%2c9.831%2c3.53%2c8.155c-0.201%2c3.183-2.636%2c5.785-3.298%2c8.974 C-0.659%2c21.445%2c0.9%2c24.61%2c6.828%2c27.947L6.828%2c27.947z'/%3e %3ctext transform='matrix(0.583 0 0 0.583 3.7324 36.1963)' fill='black' font-family='
|
|
1959
|
+
var img = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Generator: Adobe Illustrator 16.0.4%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3c!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='24.263px' height='36.366px' viewBox='0 0 24.263 36.366' enable-background='new 0 0 24.263 36.366' xml:space='preserve'%3e%3cg%3e %3cpath fill='%23FF9900' d='M6.828%2c27.947c-1.859-3.872-0.869-6.094%2c0.564-8.184c1.565-2.296%2c1.968-4.558%2c1.968-4.558 s1.231%2c1.6%2c0.742%2c4.104c2.181-2.423%2c2.591-6.286%2c2.256-7.764c4.921%2c3.436%2c7.027%2c10.889%2c4.19%2c16.401 C31.627%2c19.419%2c20.3%2c6.66%2c18.326%2c5.221c0.656%2c1.439%2c0.783%2c3.873-0.546%2c5.053C15.536%2c1.75%2c9.98%2c0%2c9.98%2c0 c0.657%2c4.397-2.388%2c9.208-5.316%2c12.8C4.56%2c11.046%2c4.451%2c9.831%2c3.53%2c8.155c-0.201%2c3.183-2.636%2c5.785-3.298%2c8.974 C-0.659%2c21.445%2c0.9%2c24.61%2c6.828%2c27.947L6.828%2c27.947z'/%3e %3ctext transform='matrix(0.583 0 0 0.583 3.7324 36.1963)' fill='black' font-family='Arial-BoldItalicMT' font-size='20.6802'%3e3D%3c/text%3e%3c/g%3e%3c/svg%3e";
|
|
1951
1960
|
|
|
1952
1961
|
function sortValue$5(isHotspot, is3dHotspot) {
|
|
1953
1962
|
var score = 0;
|
|
@@ -2004,7 +2013,7 @@ var HotspotAnnotation = /** @class */ (function (_super) {
|
|
|
2004
2013
|
var DEFAULT_MUTATION_ALIGNER_URL_TEMPLATE = 'http://mutationaligner.org/api/domains/<%= pfamDomainId %>?metadata=true';
|
|
2005
2014
|
var DEFAULT_MUTATION_ALIGNER_PROXY_URL_TEMPLATE = 'https://www.cbioportal.org/proxy/mutationaligner.org/api/domains/<%= pfamDomainId %>?metadata=true';
|
|
2006
2015
|
var DEFAULT_MY_GENE_URL_TEMPLATE = 'https://mygene.info/v3/gene/<%= entrezGeneId %>?fields=uniprot';
|
|
2007
|
-
var DEFAULT_UNIPROT_ID_URL_TEMPLATE = 'https://
|
|
2016
|
+
var DEFAULT_UNIPROT_ID_URL_TEMPLATE = 'https://rest.uniprot.org/uniprotkb/search?query=accession:<%= swissProtAccession %>&format=tsv&fields=id';
|
|
2008
2017
|
var DEFAULT_GENOME_NEXUS_URL = 'https://www.genomenexus.org/';
|
|
2009
2018
|
// The legacy instance does not require an authentication but the data will not be update.
|
|
2010
2019
|
var DEFAULT_ONCO_KB_URL = 'https://legacy.oncokb.org/';
|
|
@@ -9836,7 +9845,7 @@ var LollipopMutationPlot = /** @class */ (function (_super) {
|
|
|
9836
9845
|
writable: true,
|
|
9837
9846
|
value: function () {
|
|
9838
9847
|
return (React__namespace.createElement("div", { style: { maxWidth: 200 } },
|
|
9839
|
-
React__namespace.createElement("a", { href: "
|
|
9848
|
+
React__namespace.createElement("a", { href: "https://www.uniprot.org/uniprot/" + this.props.store.uniprotId.result, target: "_blank" }, this.props.store.uniprotId.result)));
|
|
9840
9849
|
}
|
|
9841
9850
|
});
|
|
9842
9851
|
Object.defineProperty(LollipopMutationPlot.prototype, "sequence", {
|
|
@@ -10864,7 +10873,9 @@ var DefaultMutationMapperDataFetcher = /** @class */ (function () {
|
|
|
10864
10873
|
return ((_a = mutation.mutationType) === null || _a === void 0 ? void 0 : _a.toUpperCase()) ===
|
|
10865
10874
|
cbioportalUtils.StructuralVariantType.FUSION;
|
|
10866
10875
|
}), function (mutation) {
|
|
10867
|
-
return cbioportalUtils.generateAnnotateStructuralVariantQuery(
|
|
10876
|
+
return cbioportalUtils.generateAnnotateStructuralVariantQuery(
|
|
10877
|
+
/* @ts-ignore */
|
|
10878
|
+
mutation.structuralVariant, getTumorType(mutation), evidenceTypes);
|
|
10868
10879
|
}), 'id');
|
|
10869
10880
|
if (!(mutationQueryVariants.length === 0)) return [3 /*break*/, 1];
|
|
10870
10881
|
_a = [];
|
|
@@ -12340,7 +12351,7 @@ var GeneSummaryInfo = function (_a) {
|
|
|
12340
12351
|
DATA: ccdsId,
|
|
12341
12352
|
},
|
|
12342
12353
|
}), target: "_blank" }, ccdsId)) : ('-');
|
|
12343
|
-
var uniprot = uniprotId ? (React__namespace.createElement("a", { href: "
|
|
12354
|
+
var uniprot = uniprotId ? (React__namespace.createElement("a", { href: "https://www.uniprot.org/uniprot/" + uniprotId, target: "_blank" }, uniprotId)) : ('-');
|
|
12344
12355
|
var compactGeneSummaryInfo = (React__namespace.createElement("div", null,
|
|
12345
12356
|
React__namespace.createElement("span", { "data-test": "compactGeneSummaryRefSeq" }, refSeq), " | ",
|
|
12346
12357
|
ensembl,
|