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/component/column/MutationStatus.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +14 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -11,7 +11,7 @@ declare type MutationStatusProps = {
|
|
|
11
11
|
[mutationStatus: string]: React.CSSProperties;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export declare class MutationStatus extends React.Component<MutationStatusProps, {}> {
|
|
15
15
|
static defaultProps: Partial<MutationStatusProps>;
|
|
16
16
|
render(): JSX.Element;
|
|
17
17
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { default as MyCancerGenome, download as myCancerGenomeDownload, sortValu
|
|
|
12
12
|
export { default as Hgvsc, download as hgvscDownload, sortValue as hgvscSortValue, } from './component/column/Hgvsc';
|
|
13
13
|
export { default as Hgvsg } from './component/column/Hgvsg';
|
|
14
14
|
export * from './component/column/HgvsHelper';
|
|
15
|
-
export {
|
|
15
|
+
export { MutationStatus } from './component/column/MutationStatus';
|
|
16
16
|
export { default as ProteinChange, proteinChangeSortMethod, } from './component/column/ProteinChange';
|
|
17
17
|
export { default as Signal, getSignalData, getSortValue as signalSortValue, download as signalDownload, getSingleSignalValue, SignalTable, } from './component/column/Signal';
|
|
18
18
|
export { default as DropdownSelector, DropdownSelectorProps, } from './component/filter/DropdownSelector';
|
package/dist/index.es.js
CHANGED
|
@@ -6,7 +6,7 @@ import { observer } from 'mobx-react';
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import React__default, { useState } from 'react';
|
|
8
8
|
import { DefaultTooltip, TruncatedText, getNCBIlink, trimOffHtmlTagEntities, cachePostMethodsOnClient, CanonicalMutationType, MutationTumorTypeFrequencyTable, FREQUENCY_COLUMNS_DEFINITION, FrequencyTableColumnEnum, CheckedSelect, getSelectedValuesMap, Checklist, 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, getCanonicalMutationType, getProteinImpactTypeFromCanonical, ProteinImpactType, getProteinImpactType, resolveColumnVisibility, resolveColumnVisibilityByColumnDefinition, longestCommonStartingSubstring, getTextWidth, unhoverAllComponents, SVGAxis, getComponentIndex, defaultHitzoneConfig, initHitZoneFromConfig, EditableSpan, DownloadControls, EllipsisTextTooltip, remoteData, WindowWrapper } from 'cbioportal-frontend-commons';
|
|
9
|
-
import { CIVIC_NA_VALUE, generateQueryVariantId, OncoKbCardDataType, parseMyCancerGenomeLink, defaultArraySortMethod, defaultSortMethod, LEVELS, uniqueGenomicLocations, indexAnnotationsByGenomicLocation, getCivicEntry, getRemoteDataGroupStatus, getMyCancerGenomeLinks, isLinearClusterHotspot, is3dHotspot, calculateOncoKbAvailableDataType, getVariantAnnotation, getDbsnpRsId, getMyVariantInfoAnnotation, generateHgvsgByMutation, calcProteinChangeSortValue, Pathogenicity, extendMutations, formatNumberValueInSignificantDigits, generateTumorTypeDecomposition, formatPercentValue, countMutationsByProteinChange, numberOfLeadingDecimalZeros, filterLinearClusterHotspotsByMutations, filter3dHotspotsByMutations, isHotspot, defaultHotspotFilter, defaultStringArraySortMethod, extractExonInformation, formatExonLocation, formatExonLength, ptmColor, compareByPtmTypePriority, UniprotTopologyTrackToColor, UniprotTopologyTypeToTitle, PtmSource, PTM_SOURCE_URL, getMyVariantInfoAnnotationsFromIndexedVariantAnnotations, generateProteinChangeQuery, StructuralVariantType, generateAnnotateStructuralVariantQuery, getMyCancerGenomeData, genomicLocationString, convertUniprotFeatureToPtm, convertDbPtmToPtm, UniprotCategory, convertUniprotFeatureToUniprotTopology, groupPtmDataByPosition, groupPtmDataByTypeAndPosition, groupCancerHotspotDataByPosition, indexHotspotsData, fetchCivicGenes, fetchCivicVariants, getMutationsByTranscriptId, groupMutationsByProteinStartPos, groupHotspotsByMutations } from 'cbioportal-utils';
|
|
9
|
+
import { CIVIC_NA_VALUE, deriveStructuralVariantType, generateQueryStructuralVariantId, generateQueryVariantId, OncoKbCardDataType, parseMyCancerGenomeLink, defaultArraySortMethod, defaultSortMethod, LEVELS, uniqueGenomicLocations, indexAnnotationsByGenomicLocation, getCivicEntry, getRemoteDataGroupStatus, getMyCancerGenomeLinks, isLinearClusterHotspot, is3dHotspot, calculateOncoKbAvailableDataType, getVariantAnnotation, getDbsnpRsId, getMyVariantInfoAnnotation, generateHgvsgByMutation, calcProteinChangeSortValue, Pathogenicity, extendMutations, formatNumberValueInSignificantDigits, generateTumorTypeDecomposition, formatPercentValue, countMutationsByProteinChange, numberOfLeadingDecimalZeros, filterLinearClusterHotspotsByMutations, filter3dHotspotsByMutations, isHotspot, defaultHotspotFilter, defaultStringArraySortMethod, extractExonInformation, formatExonLocation, formatExonLength, ptmColor, compareByPtmTypePriority, UniprotTopologyTrackToColor, UniprotTopologyTypeToTitle, PtmSource, PTM_SOURCE_URL, getMyVariantInfoAnnotationsFromIndexedVariantAnnotations, generateProteinChangeQuery, StructuralVariantType, generateAnnotateStructuralVariantQuery, getMyCancerGenomeData, genomicLocationString, convertUniprotFeatureToPtm, convertDbPtmToPtm, UniprotCategory, convertUniprotFeatureToUniprotTopology, groupPtmDataByPosition, groupPtmDataByTypeAndPosition, groupCancerHotspotDataByPosition, indexHotspotsData, fetchCivicGenes, fetchCivicVariants, getMutationsByTranscriptId, groupMutationsByProteinStartPos, groupHotspotsByMutations } from 'cbioportal-utils';
|
|
10
10
|
import classnames from 'classnames';
|
|
11
11
|
import autobind from 'autobind-decorator';
|
|
12
12
|
import oncoKbLogoImgSrc from 'oncokb-styles/dist/images/logo/oncokb.svg';
|
|
@@ -472,7 +472,16 @@ function getIndicatorData(mutation, oncoKbData, getTumorType, getEntrezGeneId) {
|
|
|
472
472
|
if (oncoKbData.indicatorMap === null) {
|
|
473
473
|
return undefined;
|
|
474
474
|
}
|
|
475
|
-
var id =
|
|
475
|
+
var id = '';
|
|
476
|
+
// @ts-ignore
|
|
477
|
+
var sv = mutation.structuralVariant;
|
|
478
|
+
if (sv) {
|
|
479
|
+
var structuralVariantType = deriveStructuralVariantType(sv);
|
|
480
|
+
id = generateQueryStructuralVariantId(sv.site1EntrezGeneId, sv.site2EntrezGeneId, getTumorType(mutation), structuralVariantType);
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
id = generateQueryVariantId(getEntrezGeneId(mutation), getTumorType(mutation), mutation.proteinChange, mutation.mutationType);
|
|
484
|
+
}
|
|
476
485
|
return oncoKbData.indicatorMap[id];
|
|
477
486
|
}
|
|
478
487
|
function defaultOncoKbIndicatorFilter(indicator) {
|
|
@@ -10827,7 +10836,9 @@ var DefaultMutationMapperDataFetcher = /** @class */ (function () {
|
|
|
10827
10836
|
return ((_a = mutation.mutationType) === null || _a === void 0 ? void 0 : _a.toUpperCase()) ===
|
|
10828
10837
|
StructuralVariantType.FUSION;
|
|
10829
10838
|
}), function (mutation) {
|
|
10830
|
-
return generateAnnotateStructuralVariantQuery(
|
|
10839
|
+
return generateAnnotateStructuralVariantQuery(
|
|
10840
|
+
/* @ts-ignore */
|
|
10841
|
+
mutation.structuralVariant, getTumorType(mutation), evidenceTypes);
|
|
10831
10842
|
}), 'id');
|
|
10832
10843
|
if (!(mutationQueryVariants.length === 0)) return [3 /*break*/, 1];
|
|
10833
10844
|
_a = [];
|