react-mutation-mapper 0.8.49 → 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/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 = cbioportalUtils.generateQueryVariantId(getEntrezGeneId(mutation), getTumorType(mutation), mutation.proteinChange, mutation.mutationType);
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) {
@@ -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(getEntrezGeneId(mutation), getTumorType(mutation), mutation.proteinChange, mutation.mutationType, evidenceTypes);
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 = [];