react-mutation-mapper 0.8.101 → 0.8.103
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/civic/CivicCard.spec.d.ts +1 -3
- package/dist/index.es.js +12 -12
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/store/DefaultMutationMapperFilterApplier.d.ts +1 -1
- package/dist/store/DefaultMutationMapperStore.d.ts +2 -2
- package/package.json +5 -6
package/dist/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import { makeObservable, observable, computed, action, reaction } from 'mobx';
|
|
|
5
5
|
import { observer } from 'mobx-react';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import React__default from 'react';
|
|
8
|
-
import { DefaultTooltip, TruncatedText, getNCBIlink, cachePostMethodsOnClient, CanonicalMutationType, MutationTumorTypeFrequencyTable, FREQUENCY_COLUMNS_DEFINITION, FrequencyTableColumnEnum, CheckedSelect, getSelectedValuesMap, BadgeListSelector, MUT_COLOR_MISSENSE, MUT_COLOR_MISSENSE_PASSENGER, MUT_COLOR_INFRAME, MUT_COLOR_INFRAME_PASSENGER, MUT_COLOR_TRUNC, MUT_COLOR_TRUNC_PASSENGER, MUT_COLOR_SPLICE, MUT_COLOR_SPLICE_PASSENGER, STRUCTURAL_VARIANT_COLOR, STRUCTURAL_VARIANT_PASSENGER_COLOR, MUT_COLOR_OTHER, MUT_COLOR_OTHER_PASSENGER, getCanonicalMutationType, getProteinImpactTypeFromCanonical, ProteinImpactType, getProteinImpactType, resolveColumnVisibility, resolveColumnVisibilityByColumnDefinition, longestCommonStartingSubstring, getTextWidth, unhoverAllComponents, SVGAxis, getComponentIndex, defaultHitzoneConfig, initHitZoneFromConfig, EditableSpan, DownloadControls, EllipsisTextTooltip, remoteData, WindowWrapper } from 'cbioportal-frontend-commons';
|
|
8
|
+
import { DefaultTooltip, TruncatedText, getNCBIlink, cachePostMethodsOnClient, CanonicalMutationType, MutationTumorTypeFrequencyTable, FREQUENCY_COLUMNS_DEFINITION, FrequencyTableColumnEnum, CheckedSelect, getSelectedValuesMap, BadgeListSelector, MUT_COLOR_MISSENSE, MUT_COLOR_MISSENSE_PASSENGER, MUT_COLOR_INFRAME, MUT_COLOR_INFRAME_PASSENGER, MUT_COLOR_TRUNC, MUT_COLOR_TRUNC_PASSENGER, MUT_COLOR_SPLICE, MUT_COLOR_SPLICE_PASSENGER, STRUCTURAL_VARIANT_COLOR, STRUCTURAL_VARIANT_PASSENGER_COLOR, MUT_COLOR_OTHER, MUT_COLOR_OTHER_PASSENGER, getCanonicalMutationType, getProteinImpactTypeFromCanonical, ProteinImpactType, getProteinImpactType, resolveColumnVisibility, resolveColumnVisibilityByColumnDefinition, longestCommonStartingSubstring, getTextWidth, unhoverAllComponents, SVGAxis, getComponentIndex, defaultHitzoneConfig, initHitZoneFromConfig, EditableSpan, DownloadControls, EllipsisTextTooltip, cached, remoteData, WindowWrapper } from 'cbioportal-frontend-commons';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
10
|
import { CIVIC_NA_VALUE, parseMyCancerGenomeLink, uniqueGenomicLocations, indexAnnotationsByGenomicLocation, getCivicEntry, getRemoteDataGroupStatus, getMyCancerGenomeLinks, isLinearClusterHotspot, is3dHotspot, getVariantAnnotation, OncoKbCardDataType, defaultArraySortMethod, defaultSortMethod, getDbsnpRsId, getMyVariantInfoAnnotation, generateHgvsgByMutation, calcProteinChangeSortValue, Pathogenicity, extendMutations, formatNumberValueInSignificantDigits, generateTumorTypeDecomposition, formatPercentValue, countMutationsByProteinChange, numberOfLeadingDecimalZeros, filterLinearClusterHotspotsByMutations, filter3dHotspotsByMutations, isHotspot, defaultHotspotFilter, extractExonInformation, formatExonLocation, formatExonLength, ptmColor, compareByPtmTypePriority, UniprotTopologyTrackToColor, UniprotTopologyTypeToTitle, PtmSource, PTM_SOURCE_URL, getMyVariantInfoAnnotationsFromIndexedVariantAnnotations, getMyCancerGenomeData, genomicLocationString, convertUniprotFeatureToPtm, convertDbPtmToPtm, UniprotCategory, convertUniprotFeatureToUniprotTopology, groupPtmDataByPosition, groupPtmDataByTypeAndPosition, groupCancerHotspotDataByPosition, indexHotspotsData, fetchCivicGenes, fetchCivicVariants, getMutationsByTranscriptId, groupMutationsByProteinStartPos, groupHotspotsByMutations } from 'cbioportal-utils';
|
|
11
11
|
import { getIndicatorData, calculateOncoKbAvailableDataType, oncoKbAnnotationSortValue, OncoKB, OncoKbSummaryTable, LEVELS, getTumorTypeNameWithExclusionInfo, ReferenceList, generateProteinChangeQuery, StructuralVariantType, generateAnnotateStructuralVariantQuery, defaultOncoKbFilter, groupOncoKbIndicatorDataByMutations, defaultOncoKbIndicatorFilter } from 'oncokb-frontend-commons';
|
|
@@ -25,7 +25,6 @@ import oncoKbImg from 'oncokb-styles/dist/images/oncogenic.svg';
|
|
|
25
25
|
import 'oncokb-frontend-commons/dist/styles.css';
|
|
26
26
|
import request, { get } from 'superagent';
|
|
27
27
|
import memoize from 'memoize-weak-decorator';
|
|
28
|
-
import { cached } from 'mobxpromise';
|
|
29
28
|
|
|
30
29
|
var annotationStyles = {"annotation-item-load":"annotation-module_annotation-item-load__1pDN0","annotation-item-text":"annotation-module_annotation-item-text__Gy_Jv","annotation-item-error":"annotation-module_annotation-item-error__5BhTo","annotation-item":"annotation-module_annotation-item__2EgnB"};
|
|
31
30
|
|
|
@@ -63,15 +62,16 @@ var CivicCard = /** @class */ (function (_super) {
|
|
|
63
62
|
else {
|
|
64
63
|
for (var name_1 in variantMap) {
|
|
65
64
|
var variant = variantMap[name_1];
|
|
66
|
-
var entryTypes =
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
65
|
+
var entryTypes = Object.entries(variant.evidenceCounts)
|
|
66
|
+
.filter(function (_a) {
|
|
67
|
+
_a[0]; var value = _a[1];
|
|
68
|
+
return value !== 0;
|
|
69
|
+
})
|
|
70
|
+
.map(function (_a) {
|
|
71
|
+
var key = _a[0], value = _a[1];
|
|
72
|
+
return key.slice(0, -5) + ": " + value;
|
|
73
|
+
}) // Remove "Count" substring from key
|
|
74
|
+
.join(', ');
|
|
75
75
|
list.push(this.variantItem(name_1, variant.url, variant.name, entryTypes, variant.description));
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -10267,7 +10267,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
|
|
|
10267
10267
|
invoke: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
10268
10268
|
return __generator(this, function (_a) {
|
|
10269
10269
|
return [2 /*return*/, this.config.enableCivic
|
|
10270
|
-
? fetchCivicGenes(this.mutationData.result || []
|
|
10270
|
+
? fetchCivicGenes(this.mutationData.result || [])
|
|
10271
10271
|
: {}];
|
|
10272
10272
|
});
|
|
10273
10273
|
}); },
|