react-mutation-mapper 0.8.81 → 0.8.82
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/Annotation.d.ts +10 -1
- package/dist/component/mutationMapper/MutationMapper.d.ts +1 -0
- package/dist/component/mutationTable/DefaultMutationTable.d.ts +1 -0
- package/dist/component/revue/Revue.d.ts +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +64 -27
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +67 -28
- package/dist/index.js.map +1 -1
- package/dist/store/DefaultMutationMapperStore.d.ts +1 -0
- package/package.json +5 -5
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ICivicEntry, ICivicGeneIndex, ICivicVariantIndex, IHotspotIndex, IMyCancerGenomeData, IOncoKbData, MobxCache, Mutation, OncoKbCardDataType, RemoteData } from 'cbioportal-utils';
|
|
2
2
|
import { CancerGene, IndicatorQueryResp } from 'oncokb-ts-api-client';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
+
import { VariantAnnotation, Vues as VUE } from 'genome-nexus-ts-api-client';
|
|
4
5
|
export declare type AnnotationProps = {
|
|
5
6
|
mutation?: Mutation;
|
|
6
7
|
enableOncoKb: boolean;
|
|
7
8
|
enableMyCancerGenome: boolean;
|
|
8
9
|
enableHotspot: boolean;
|
|
9
10
|
enableCivic: boolean;
|
|
11
|
+
enableRevue: boolean;
|
|
10
12
|
hotspotData?: RemoteData<IHotspotIndex | undefined>;
|
|
11
13
|
oncoKbData?: RemoteData<IOncoKbData | Error | undefined>;
|
|
12
14
|
oncoKbCancerGenes?: RemoteData<CancerGene[] | Error | undefined>;
|
|
@@ -19,6 +21,9 @@ export declare type AnnotationProps = {
|
|
|
19
21
|
myCancerGenomeData?: IMyCancerGenomeData;
|
|
20
22
|
civicGenes?: RemoteData<ICivicGeneIndex | undefined>;
|
|
21
23
|
civicVariants?: RemoteData<ICivicVariantIndex | undefined>;
|
|
24
|
+
indexedVariantAnnotations?: RemoteData<{
|
|
25
|
+
[genomicLocation: string]: VariantAnnotation;
|
|
26
|
+
} | undefined>;
|
|
22
27
|
userDisplayName?: string;
|
|
23
28
|
};
|
|
24
29
|
export declare type GenericAnnotationProps = {
|
|
@@ -27,6 +32,7 @@ export declare type GenericAnnotationProps = {
|
|
|
27
32
|
enableHotspot: boolean;
|
|
28
33
|
enableMyCancerGenome: boolean;
|
|
29
34
|
enableOncoKb: boolean;
|
|
35
|
+
enableRevue: boolean;
|
|
30
36
|
mergeOncoKbIcons?: boolean;
|
|
31
37
|
oncoKbContentPadding?: number;
|
|
32
38
|
pubMedCache?: MobxCache;
|
|
@@ -47,9 +53,12 @@ export interface IAnnotation {
|
|
|
47
53
|
civicStatus: 'pending' | 'error' | 'complete';
|
|
48
54
|
hasCivicVariants: boolean;
|
|
49
55
|
hugoGeneSymbol: string;
|
|
56
|
+
vue?: VUE;
|
|
50
57
|
}
|
|
51
58
|
export declare const DEFAULT_ANNOTATION_DATA: IAnnotation;
|
|
52
|
-
export declare function getAnnotationData(mutation?: Mutation, oncoKbCancerGenes?: RemoteData<CancerGene[] | Error | undefined>, hotspotData?: RemoteData<IHotspotIndex | undefined>, myCancerGenomeData?: IMyCancerGenomeData, oncoKbData?: RemoteData<IOncoKbData | Error | undefined>, usingPublicOncoKbInstance?: boolean, civicGenes?: RemoteData<ICivicGeneIndex | undefined>, civicVariants?: RemoteData<ICivicVariantIndex | undefined>,
|
|
59
|
+
export declare function getAnnotationData(mutation?: Mutation, oncoKbCancerGenes?: RemoteData<CancerGene[] | Error | undefined>, hotspotData?: RemoteData<IHotspotIndex | undefined>, myCancerGenomeData?: IMyCancerGenomeData, oncoKbData?: RemoteData<IOncoKbData | Error | undefined>, usingPublicOncoKbInstance?: boolean, civicGenes?: RemoteData<ICivicGeneIndex | undefined>, civicVariants?: RemoteData<ICivicVariantIndex | undefined>, indexedVariantAnnotations?: RemoteData<{
|
|
60
|
+
[genomicLocation: string]: VariantAnnotation;
|
|
61
|
+
} | undefined>, resolveTumorType?: (mutation: Mutation) => string, resolveEntrezGeneId?: (mutation: Mutation) => number): IAnnotation;
|
|
53
62
|
export declare function annotationSortMethod(a: IAnnotation, b: IAnnotation): number;
|
|
54
63
|
export declare function sortValue(annotation: IAnnotation): number[];
|
|
55
64
|
export declare function GenericAnnotation(props: GenericAnnotationProps): JSX.Element;
|
|
@@ -20,6 +20,7 @@ export declare type DefaultMutationTableProps = {
|
|
|
20
20
|
} | undefined>;
|
|
21
21
|
selectedTranscriptId?: string;
|
|
22
22
|
enableCivic?: boolean;
|
|
23
|
+
enableRevue?: boolean;
|
|
23
24
|
civicGenes?: RemoteData<ICivicGeneIndex | undefined>;
|
|
24
25
|
civicVariants?: RemoteData<ICivicVariantIndex | undefined>;
|
|
25
26
|
pubMedCache?: MobxCache;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Vues as VUE } from 'genome-nexus-ts-api-client';
|
|
3
|
+
export declare const RevueTooltipContent: React.FunctionComponent<{
|
|
4
|
+
vue: VUE;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function sortValue(vue: VUE | undefined): number;
|
|
7
|
+
export declare const RevueCell: React.FunctionComponent<{
|
|
8
|
+
vue: VUE;
|
|
9
|
+
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { default as Hgvsg } from './component/column/Hgvsg';
|
|
|
14
14
|
export * from './component/column/HgvsHelper';
|
|
15
15
|
export { MutationStatus } from './component/column/MutationStatus';
|
|
16
16
|
export { default as ProteinChange, proteinChangeSortMethod, } from './component/column/ProteinChange';
|
|
17
|
+
export { RevueCell, RevueTooltipContent } from './component/revue/Revue';
|
|
17
18
|
export { default as Signal, getSignalData, getSortValue as signalSortValue, download as signalDownload, getSingleSignalValue, SignalTable, } from './component/column/Signal';
|
|
18
19
|
export { default as DropdownSelector, DropdownSelectorProps, } from './component/filter/DropdownSelector';
|
|
19
20
|
export { default as BadgeLabel } from './component/filter/BadgeLabel';
|
package/dist/index.es.js
CHANGED
|
@@ -4,9 +4,10 @@ import ___default from 'lodash';
|
|
|
4
4
|
import { makeObservable, observable, computed, action, reaction } from 'mobx';
|
|
5
5
|
import { observer } from 'mobx-react';
|
|
6
6
|
import * as React from 'react';
|
|
7
|
+
import React__default from 'react';
|
|
7
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
9
|
import classNames from 'classnames';
|
|
9
|
-
import { CIVIC_NA_VALUE, parseMyCancerGenomeLink, uniqueGenomicLocations, indexAnnotationsByGenomicLocation, getCivicEntry, getRemoteDataGroupStatus, getMyCancerGenomeLinks, isLinearClusterHotspot, is3dHotspot, OncoKbCardDataType, defaultArraySortMethod,
|
|
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';
|
|
10
11
|
import { getIndicatorData, calculateOncoKbAvailableDataType, oncoKbAnnotationSortValue, OncoKB, OncoKbSummaryTable, LEVELS, getTumorTypeNameWithExclusionInfo, ReferenceList, generateProteinChangeQuery, StructuralVariantType, generateAnnotateStructuralVariantQuery, defaultOncoKbFilter, groupOncoKbIndicatorDataByMutations, defaultOncoKbIndicatorFilter } from 'oncokb-frontend-commons';
|
|
11
12
|
import { GenomeNexusAPI, GenomeNexusAPIInternal } from 'genome-nexus-ts-api-client';
|
|
12
13
|
import { OncoKbAPI } from 'oncokb-ts-api-client';
|
|
@@ -150,7 +151,7 @@ function hideArrow(tooltipEl) {
|
|
|
150
151
|
var arrowEl = tooltipEl.querySelector('.rc-tooltip-arrow');
|
|
151
152
|
arrowEl.style.display = 'none';
|
|
152
153
|
}
|
|
153
|
-
function sortValue$
|
|
154
|
+
function sortValue$8(civicEntry) {
|
|
154
155
|
var score = 0;
|
|
155
156
|
if (civicEntry) {
|
|
156
157
|
score = 1;
|
|
@@ -271,7 +272,7 @@ function placeArrow$1(tooltipEl) {
|
|
|
271
272
|
var arrowEl = tooltipEl.querySelector('.rc-tooltip-arrow');
|
|
272
273
|
arrowEl.style.left = '10px';
|
|
273
274
|
}
|
|
274
|
-
function sortValue$
|
|
275
|
+
function sortValue$7(links) {
|
|
275
276
|
return links.length > 0 ? 1 : 0;
|
|
276
277
|
}
|
|
277
278
|
function download$5(links) {
|
|
@@ -395,7 +396,7 @@ var img$1 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3
|
|
|
395
396
|
|
|
396
397
|
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";
|
|
397
398
|
|
|
398
|
-
function sortValue$
|
|
399
|
+
function sortValue$6(isHotspot, is3dHotspot) {
|
|
399
400
|
var score = 0;
|
|
400
401
|
if (isHotspot) {
|
|
401
402
|
score += 1;
|
|
@@ -556,6 +557,42 @@ function initOncoKbClient(oncoKbUrl, cachePostMethods, apiCacheLimit) {
|
|
|
556
557
|
return client;
|
|
557
558
|
}
|
|
558
559
|
|
|
560
|
+
var RevueTooltipContent = function (props) {
|
|
561
|
+
return (React__default.createElement("div", null,
|
|
562
|
+
props.vue.comment,
|
|
563
|
+
' ',
|
|
564
|
+
React__default.createElement("a", { href: "https://pubmed.ncbi.nlm.nih.gov/" + props.vue.pubmedIds[0] + "/", rel: "noopener noreferrer", target: "_blank" },
|
|
565
|
+
"(",
|
|
566
|
+
props.vue.referenceText,
|
|
567
|
+
")"),
|
|
568
|
+
React__default.createElement("ul", null,
|
|
569
|
+
React__default.createElement("li", null,
|
|
570
|
+
"Predicted Effect: ",
|
|
571
|
+
React__default.createElement("strong", null, props.vue.defaultEffect)),
|
|
572
|
+
React__default.createElement("li", null,
|
|
573
|
+
"Experimentally Validated Effect:",
|
|
574
|
+
' ',
|
|
575
|
+
React__default.createElement("strong", null, props.vue.variantClassification)),
|
|
576
|
+
React__default.createElement("li", null,
|
|
577
|
+
"Revised Protein Effect:",
|
|
578
|
+
' ',
|
|
579
|
+
React__default.createElement("strong", null, props.vue.revisedProteinEffect))),
|
|
580
|
+
React__default.createElement("div", null,
|
|
581
|
+
"Source:",
|
|
582
|
+
' ',
|
|
583
|
+
React__default.createElement("a", { href: "https://cancerrevue.org", target: "_blank", rel: "noopener noreferrer" },
|
|
584
|
+
"reVUE ",
|
|
585
|
+
React__default.createElement("i", { className: "fa fa-external-link" })))));
|
|
586
|
+
};
|
|
587
|
+
function sortValue$5(vue) {
|
|
588
|
+
return vue ? 1 : 0;
|
|
589
|
+
}
|
|
590
|
+
var RevueCell = function (props) {
|
|
591
|
+
return (React__default.createElement(DefaultTooltip, { placement: "bottom", overlay: React__default.createElement(RevueTooltipContent, { vue: props.vue }) },
|
|
592
|
+
React__default.createElement("span", { className: "" + annotationStyles['annotation-item'], style: { display: 'inline-flex' } },
|
|
593
|
+
React__default.createElement("img", { src: '../../images/vue_logo.png', alt: "reVUE logo", width: 14, height: 14 }))));
|
|
594
|
+
};
|
|
595
|
+
|
|
559
596
|
var DEFAULT_ANNOTATION_DATA = {
|
|
560
597
|
oncoKbStatus: 'complete',
|
|
561
598
|
oncoKbGeneExist: false,
|
|
@@ -577,18 +614,15 @@ function getDefaultTumorType() {
|
|
|
577
614
|
return '';
|
|
578
615
|
}
|
|
579
616
|
var memoized = new Map();
|
|
580
|
-
function getAnnotationData(mutation, oncoKbCancerGenes, hotspotData, myCancerGenomeData, oncoKbData, usingPublicOncoKbInstance, civicGenes, civicVariants, resolveTumorType, resolveEntrezGeneId) {
|
|
617
|
+
function getAnnotationData(mutation, oncoKbCancerGenes, hotspotData, myCancerGenomeData, oncoKbData, usingPublicOncoKbInstance, civicGenes, civicVariants, indexedVariantAnnotations, resolveTumorType, resolveEntrezGeneId) {
|
|
618
|
+
var _a;
|
|
581
619
|
if (resolveTumorType === void 0) { resolveTumorType = getDefaultTumorType; }
|
|
582
620
|
if (resolveEntrezGeneId === void 0) { resolveEntrezGeneId = getDefaultEntrezGeneId; }
|
|
583
621
|
var value;
|
|
584
622
|
if (mutation) {
|
|
585
623
|
var key = '';
|
|
586
|
-
var memoize =
|
|
587
|
-
!!
|
|
588
|
-
!!myCancerGenomeData &&
|
|
589
|
-
!!oncoKbData && (oncoKbData === null || oncoKbData === void 0 ? void 0 : oncoKbData.isComplete) &&
|
|
590
|
-
!!civicGenes && (civicGenes === null || civicGenes === void 0 ? void 0 : civicGenes.isComplete) &&
|
|
591
|
-
!!civicVariants && (civicVariants === null || civicVariants === void 0 ? void 0 : civicVariants.isComplete);
|
|
624
|
+
var memoize = (oncoKbCancerGenes === null || oncoKbCancerGenes === void 0 ? void 0 : oncoKbCancerGenes.isComplete) && (hotspotData === null || hotspotData === void 0 ? void 0 : hotspotData.isComplete) &&
|
|
625
|
+
!!myCancerGenomeData && (oncoKbData === null || oncoKbData === void 0 ? void 0 : oncoKbData.isComplete) && (civicGenes === null || civicGenes === void 0 ? void 0 : civicGenes.isComplete) && (civicVariants === null || civicVariants === void 0 ? void 0 : civicVariants.isComplete) && (indexedVariantAnnotations === null || indexedVariantAnnotations === void 0 ? void 0 : indexedVariantAnnotations.isComplete);
|
|
592
626
|
if (memoize) {
|
|
593
627
|
key = JSON.stringify(mutation) + !!usingPublicOncoKbInstance;
|
|
594
628
|
var val = memoized.get(key);
|
|
@@ -638,17 +672,16 @@ function getAnnotationData(mutation, oncoKbCancerGenes, hotspotData, myCancerGen
|
|
|
638
672
|
myCancerGenomeLinks: myCancerGenomeData
|
|
639
673
|
? getMyCancerGenomeLinks(mutation, myCancerGenomeData)
|
|
640
674
|
: [],
|
|
641
|
-
isHotspot: hotspotData &&
|
|
642
|
-
hotspotData.result &&
|
|
643
|
-
hotspotData.status === 'complete'
|
|
675
|
+
isHotspot: (hotspotData === null || hotspotData === void 0 ? void 0 : hotspotData.isComplete) && hotspotData.result
|
|
644
676
|
? isLinearClusterHotspot(mutation, hotspotData.result)
|
|
645
677
|
: false,
|
|
646
|
-
is3dHotspot: hotspotData &&
|
|
647
|
-
hotspotData.result &&
|
|
648
|
-
hotspotData.status === 'complete'
|
|
678
|
+
is3dHotspot: (hotspotData === null || hotspotData === void 0 ? void 0 : hotspotData.isComplete) && hotspotData.result
|
|
649
679
|
? is3dHotspot(mutation, hotspotData.result)
|
|
650
680
|
: false,
|
|
651
681
|
hotspotStatus: hotspotData ? hotspotData.status : 'pending',
|
|
682
|
+
vue: (indexedVariantAnnotations === null || indexedVariantAnnotations === void 0 ? void 0 : indexedVariantAnnotations.isComplete) &&
|
|
683
|
+
indexedVariantAnnotations.result
|
|
684
|
+
? (_a = getVariantAnnotation(mutation, indexedVariantAnnotations.result)) === null || _a === void 0 ? void 0 : _a.annotation_summary.vues : undefined,
|
|
652
685
|
};
|
|
653
686
|
// oncoKbData may exist but it might be an instance of Error, in that case we flag the status as error
|
|
654
687
|
if (oncoKbData && oncoKbData.result instanceof Error) {
|
|
@@ -693,16 +726,18 @@ function annotationSortMethod(a, b) {
|
|
|
693
726
|
function sortValue$4(annotation) {
|
|
694
727
|
return ___default.flatten([
|
|
695
728
|
oncoKbAnnotationSortValue(annotation.oncoKbIndicator),
|
|
696
|
-
sortValue$
|
|
697
|
-
sortValue$
|
|
698
|
-
sortValue$
|
|
729
|
+
sortValue$8(annotation.civicEntry),
|
|
730
|
+
sortValue$7(annotation.myCancerGenomeLinks),
|
|
731
|
+
sortValue$6(annotation.isHotspot, annotation.is3dHotspot),
|
|
732
|
+
sortValue$5(annotation.vue),
|
|
699
733
|
annotation.isOncoKbCancerGene ? 1 : 0,
|
|
700
734
|
]);
|
|
701
735
|
}
|
|
702
736
|
function GenericAnnotation(props) {
|
|
703
|
-
var annotation = props.annotation, enableCivic = props.enableCivic, enableHotspot = props.enableHotspot, enableMyCancerGenome = props.enableMyCancerGenome, enableOncoKb = props.enableOncoKb; props.pubMedCache; var userDisplayName = props.userDisplayName, mergeOncoKbIcons = props.mergeOncoKbIcons, oncoKbContentPadding = props.oncoKbContentPadding;
|
|
737
|
+
var annotation = props.annotation, enableCivic = props.enableCivic, enableHotspot = props.enableHotspot, enableMyCancerGenome = props.enableMyCancerGenome, enableOncoKb = props.enableOncoKb, enableRevue = props.enableRevue; props.pubMedCache; var userDisplayName = props.userDisplayName, mergeOncoKbIcons = props.mergeOncoKbIcons, oncoKbContentPadding = props.oncoKbContentPadding;
|
|
704
738
|
return (React.createElement("span", { style: { display: 'flex', minWidth: 100 } },
|
|
705
739
|
enableOncoKb && (React.createElement(OncoKB, { usingPublicOncoKbInstance: annotation.usingPublicOncoKbInstance, hugoGeneSymbol: annotation.hugoGeneSymbol, geneNotExist: !annotation.oncoKbGeneExist, isCancerGene: annotation.isOncoKbCancerGene, status: annotation.oncoKbStatus, indicator: annotation.oncoKbIndicator, availableDataTypes: annotation.oncoKbAvailableDataTypes, mergeAnnotationIcons: mergeOncoKbIcons, userDisplayName: userDisplayName, contentPadding: oncoKbContentPadding })),
|
|
740
|
+
enableRevue && annotation.vue ? (React.createElement(RevueCell, { vue: annotation.vue })) : (React.createElement("span", { className: "" + annotationStyles['annotation-item'] })),
|
|
706
741
|
enableCivic && (React.createElement(Civic, { civicEntry: annotation.civicEntry, civicStatus: annotation.civicStatus, hasCivicVariants: annotation.hasCivicVariants })),
|
|
707
742
|
enableMyCancerGenome && (React.createElement(MyCancerGenome, { linksHTML: annotation.myCancerGenomeLinks })),
|
|
708
743
|
enableHotspot && (React.createElement(HotspotAnnotation, { isHotspot: annotation.isHotspot, is3dHotspot: annotation.is3dHotspot, status: annotation.hotspotStatus }))));
|
|
@@ -726,8 +761,8 @@ var Annotation = /** @class */ (function (_super) {
|
|
|
726
761
|
configurable: true,
|
|
727
762
|
writable: true,
|
|
728
763
|
value: function (props) {
|
|
729
|
-
var mutation = props.mutation, oncoKbCancerGenes = props.oncoKbCancerGenes, hotspotData = props.hotspotData, myCancerGenomeData = props.myCancerGenomeData, oncoKbData = props.oncoKbData, usingPublicOncoKbInstance = props.usingPublicOncoKbInstance, resolveEntrezGeneId = props.resolveEntrezGeneId, resolveTumorType = props.resolveTumorType, civicGenes = props.civicGenes, civicVariants = props.civicVariants;
|
|
730
|
-
return getAnnotationData(mutation, oncoKbCancerGenes, hotspotData, myCancerGenomeData, oncoKbData, usingPublicOncoKbInstance, civicGenes, civicVariants, resolveTumorType, resolveEntrezGeneId);
|
|
764
|
+
var mutation = props.mutation, oncoKbCancerGenes = props.oncoKbCancerGenes, hotspotData = props.hotspotData, myCancerGenomeData = props.myCancerGenomeData, oncoKbData = props.oncoKbData, usingPublicOncoKbInstance = props.usingPublicOncoKbInstance, resolveEntrezGeneId = props.resolveEntrezGeneId, resolveTumorType = props.resolveTumorType, civicGenes = props.civicGenes, civicVariants = props.civicVariants, indexedVariantAnnotations = props.indexedVariantAnnotations;
|
|
765
|
+
return getAnnotationData(mutation, oncoKbCancerGenes, hotspotData, myCancerGenomeData, oncoKbData, usingPublicOncoKbInstance, civicGenes, civicVariants, indexedVariantAnnotations, resolveTumorType, resolveEntrezGeneId);
|
|
731
766
|
}
|
|
732
767
|
});
|
|
733
768
|
Annotation = __decorate([
|
|
@@ -3621,7 +3656,7 @@ var DefaultMutationTable = /** @class */ (function (_super) {
|
|
|
3621
3656
|
return this.annotationColumnDataStatus === 'pending'
|
|
3622
3657
|
? function () { return undefined; }
|
|
3623
3658
|
: function (mutation) {
|
|
3624
|
-
return getAnnotationData(mutation, _this.props.oncoKbCancerGenes, _this.props.hotspotData, _this.props.myCancerGenomeData, _this.props.oncoKbData, _this.props.usingPublicOncoKbInstance, _this.props.civicGenes, _this.props.civicVariants);
|
|
3659
|
+
return getAnnotationData(mutation, _this.props.oncoKbCancerGenes, _this.props.hotspotData, _this.props.myCancerGenomeData, _this.props.oncoKbData, _this.props.usingPublicOncoKbInstance, _this.props.civicGenes, _this.props.civicVariants, _this.props.indexedVariantAnnotations);
|
|
3625
3660
|
};
|
|
3626
3661
|
},
|
|
3627
3662
|
enumerable: false,
|
|
@@ -3724,7 +3759,7 @@ var DefaultMutationTable = /** @class */ (function (_super) {
|
|
|
3724
3759
|
var _this = this;
|
|
3725
3760
|
switch (columnKey) {
|
|
3726
3761
|
case MutationColumn.ANNOTATION:
|
|
3727
|
-
return function (column) { return (React.createElement(Annotation, { mutation: column.original, enableOncoKb: true, enableHotspot: true, enableCivic: _this.props.enableCivic || false, enableMyCancerGenome: true, hotspotData: _this.props.hotspotData, oncoKbData: _this.props.oncoKbData, oncoKbCancerGenes: _this.props.oncoKbCancerGenes, usingPublicOncoKbInstance: _this.props.usingPublicOncoKbInstance, pubMedCache: _this.props.pubMedCache, civicGenes: _this.props.civicGenes, civicVariants: _this.props.civicVariants })); };
|
|
3762
|
+
return function (column) { return (React.createElement(Annotation, { mutation: column.original, enableOncoKb: true, enableHotspot: true, enableCivic: _this.props.enableCivic || false, enableMyCancerGenome: true, enableRevue: true, hotspotData: _this.props.hotspotData, oncoKbData: _this.props.oncoKbData, oncoKbCancerGenes: _this.props.oncoKbCancerGenes, usingPublicOncoKbInstance: _this.props.usingPublicOncoKbInstance, pubMedCache: _this.props.pubMedCache, civicGenes: _this.props.civicGenes, civicVariants: _this.props.civicVariants, indexedVariantAnnotations: _this.props.indexedVariantAnnotations })); };
|
|
3728
3763
|
case MutationColumn.HGVSG:
|
|
3729
3764
|
return function (column) { return React.createElement(Hgvsg, { mutation: column.original }); };
|
|
3730
3765
|
case MutationColumn.HGVSC:
|
|
@@ -10979,6 +11014,7 @@ function initDefaultMutationMapperStore(props) {
|
|
|
10979
11014
|
oncoKbUrl: props.oncoKbUrl,
|
|
10980
11015
|
enableCivic: props.enableCivic,
|
|
10981
11016
|
enableOncoKb: props.enableOncoKb,
|
|
11017
|
+
enableRevue: props.enableRevue,
|
|
10982
11018
|
cachePostMethodsOnClients: props.cachePostMethodsOnClients,
|
|
10983
11019
|
apiCacheLimit: props.apiCacheLimit,
|
|
10984
11020
|
getMutationCount: props.getMutationCount,
|
|
@@ -11186,7 +11222,7 @@ var MutationMapper = /** @class */ (function (_super) {
|
|
|
11186
11222
|
if (this.props.mutationTableColumns) {
|
|
11187
11223
|
columns = this.props.mutationTableColumns;
|
|
11188
11224
|
}
|
|
11189
|
-
return (React.createElement(DefaultMutationTable, { dataStore: this.store.dataStore, columns: columns, initialSort: this.props.mutationTableInitialSort, initialSortRemoteData: this.props.mutationTableInitialSortRemoteData, reactTableProps: this.props.customMutationTableProps, hotspotData: this.store.indexedHotspotData, oncoKbData: this.store.oncoKbData, usingPublicOncoKbInstance: this.store.usingPublicOncoKbInstance, oncoKbCancerGenes: this.store.oncoKbCancerGenes, myCancerGenomeData: this.store.myCancerGenomeData, enableCivic: this.props.enableCivic, civicGenes: this.store.civicGenes, civicVariants: this.store.civicVariants, indexedMyVariantInfoAnnotations: this.store.indexedMyVariantInfoAnnotations, indexedVariantAnnotations: this.store.indexedVariantAnnotations, selectedTranscriptId: this.store.selectedTranscript, pubMedCache: this.pubMedCache, info: this.mutationTableInfo }));
|
|
11225
|
+
return (React.createElement(DefaultMutationTable, { dataStore: this.store.dataStore, columns: columns, initialSort: this.props.mutationTableInitialSort, initialSortRemoteData: this.props.mutationTableInitialSortRemoteData, reactTableProps: this.props.customMutationTableProps, hotspotData: this.store.indexedHotspotData, oncoKbData: this.store.oncoKbData, usingPublicOncoKbInstance: this.store.usingPublicOncoKbInstance, oncoKbCancerGenes: this.store.oncoKbCancerGenes, myCancerGenomeData: this.store.myCancerGenomeData, enableCivic: this.props.enableCivic, enableRevue: this.props.enableRevue, civicGenes: this.store.civicGenes, civicVariants: this.store.civicVariants, indexedMyVariantInfoAnnotations: this.store.indexedMyVariantInfoAnnotations, indexedVariantAnnotations: this.store.indexedVariantAnnotations, selectedTranscriptId: this.store.selectedTranscript, pubMedCache: this.pubMedCache, info: this.mutationTableInfo }));
|
|
11190
11226
|
}
|
|
11191
11227
|
},
|
|
11192
11228
|
enumerable: false,
|
|
@@ -11388,6 +11424,7 @@ var MutationMapper = /** @class */ (function (_super) {
|
|
|
11388
11424
|
showTranscriptDropDown: false,
|
|
11389
11425
|
enableCivic: true,
|
|
11390
11426
|
enableOncoKb: true,
|
|
11427
|
+
enableRevue: true,
|
|
11391
11428
|
filterMutationsBySelectedTranscript: false,
|
|
11392
11429
|
cachePostMethodsOnClients: true,
|
|
11393
11430
|
}
|
|
@@ -11425,5 +11462,5 @@ var MutationMapper = /** @class */ (function (_super) {
|
|
|
11425
11462
|
return MutationMapper;
|
|
11426
11463
|
}(React.Component));
|
|
11427
11464
|
|
|
11428
|
-
export { Annotation, AxisScale, AxisScaleSwitch, BadgeLabel, BadgeSelector, Civic, ClinvarInterpretation, ClinvarSummary, ColumnHeader, ColumnSelector, ColumnSortDirection, DEFAULT_ANNOTATION_DATA, DEFAULT_GENOME_NEXUS_URL, DEFAULT_MUTATION_ALIGNER_PROXY_URL_TEMPLATE, DEFAULT_MUTATION_ALIGNER_URL_TEMPLATE, DEFAULT_MUTATION_COLUMNS, DEFAULT_MY_GENE_URL_TEMPLATE, DEFAULT_ONCO_KB_URL, DEFAULT_PROTEIN_IMPACT_TYPE_COLORS, DEFAULT_UNIPROT_ID_URL_TEMPLATE, DataFilterType, DataTable, Dbsnp, DbsnpId, DefaultMutationMapperDataFetcher, DefaultMutationMapperDataStore, DefaultMutationMapperFilterApplier, DefaultMutationMapperStore, DefaultMutationTable, Domain, DropdownSelector, FilterResetPanel, GenericAnnotation, Gnomad, GnomadFrequency, GnomadFrequencyBreakdown, GnomadFrequencyTable, GnomadFrequencyValue, Hgvsc, Hgvsg, HotspotAnnotation, HotspotInfo, Lollipop, LollipopMutationPlot, LollipopPlot, LollipopPlotNoTooltip, LollipopTooltipCountInfo, MUTATION_COLUMNS_DEFINITION, MUTATION_COLUMN_HEADERS, MUTATION_STATUS_BADGE_STYLE_OVERRIDE, MUTATION_TYPE_PRIORITY, MutationColumn, MutationColumnName, MutationMapper, MutationStatus, MutationStatusBadgeSelector, MyCancerGenome, ONCOKB_DEFAULT_DATA, ONCOKB_DEFAULT_INFO, PercentToggle, ProteinChange, ProteinImpactTypeBadgeSelector, ProteinImpactTypeDropdownSelector, LollipopPlot as Sequence, Signal, SignalTable, TEXT_INPUT_FILTER_ID, TrackName, TrackSelector, USE_DEFAULT_PUBLIC_INSTANCE_FOR_ONCOKB, sortValue$4 as annotationSortValue, applyDataFilters, applyDataFiltersOnDatum, applyDefaultMutationFilter, applyDefaultMutationStatusFilter, applyDefaultPositionFilter, applyDefaultProteinImpactTypeFilter, calculateGnomadAlleleFrequency, download$6 as civicDownload, sortValue$
|
|
11465
|
+
export { Annotation, AxisScale, AxisScaleSwitch, BadgeLabel, BadgeSelector, Civic, ClinvarInterpretation, ClinvarSummary, ColumnHeader, ColumnSelector, ColumnSortDirection, DEFAULT_ANNOTATION_DATA, DEFAULT_GENOME_NEXUS_URL, DEFAULT_MUTATION_ALIGNER_PROXY_URL_TEMPLATE, DEFAULT_MUTATION_ALIGNER_URL_TEMPLATE, DEFAULT_MUTATION_COLUMNS, DEFAULT_MY_GENE_URL_TEMPLATE, DEFAULT_ONCO_KB_URL, DEFAULT_PROTEIN_IMPACT_TYPE_COLORS, DEFAULT_UNIPROT_ID_URL_TEMPLATE, DataFilterType, DataTable, Dbsnp, DbsnpId, DefaultMutationMapperDataFetcher, DefaultMutationMapperDataStore, DefaultMutationMapperFilterApplier, DefaultMutationMapperStore, DefaultMutationTable, Domain, DropdownSelector, FilterResetPanel, GenericAnnotation, Gnomad, GnomadFrequency, GnomadFrequencyBreakdown, GnomadFrequencyTable, GnomadFrequencyValue, Hgvsc, Hgvsg, HotspotAnnotation, HotspotInfo, Lollipop, LollipopMutationPlot, LollipopPlot, LollipopPlotNoTooltip, LollipopTooltipCountInfo, MUTATION_COLUMNS_DEFINITION, MUTATION_COLUMN_HEADERS, MUTATION_STATUS_BADGE_STYLE_OVERRIDE, MUTATION_TYPE_PRIORITY, MutationColumn, MutationColumnName, MutationMapper, MutationStatus, MutationStatusBadgeSelector, MyCancerGenome, ONCOKB_DEFAULT_DATA, ONCOKB_DEFAULT_INFO, PercentToggle, ProteinChange, ProteinImpactTypeBadgeSelector, ProteinImpactTypeDropdownSelector, RevueCell, RevueTooltipContent, LollipopPlot as Sequence, Signal, SignalTable, TEXT_INPUT_FILTER_ID, TrackName, TrackSelector, USE_DEFAULT_PUBLIC_INSTANCE_FOR_ONCOKB, sortValue$4 as annotationSortValue, applyDataFilters, applyDataFiltersOnDatum, applyDefaultMutationFilter, applyDefaultMutationStatusFilter, applyDefaultPositionFilter, applyDefaultProteinImpactTypeFilter, calculateGnomadAlleleFrequency, download$6 as civicDownload, sortValue$8 as civicSortValue, download$4 as clinvarDownload, sortValue$3 as clinvarSortValue, download$3 as dbsnpDownload, sortValue$2 as dbsnpSortValue, fetchVariantAnnotationsByMutation, fetchVariantAnnotationsIndexedByGenomicLocation, findAllUniquePositions, findNonTextInputFilters, findOneMutationFilterValue, findTextInputFilter, getAllOptionValues, getAnnotationData, getClinvarData, getColorForProteinImpactType, getGnomadData, getHgvscColumnData, getHgvsgColumnData, getProteinImpactTypeBadgeLabel, getProteinImpactTypeOptionLabel, getSelectedOptionValues, getSignalData, getSingleSignalValue, getUrl, download$2 as gnomadDownload, sortValue$1 as gnomadSortValue, groupDataByGroupFilters, groupDataByProteinImpactType, handleOptionSelect, download$1 as hgvscDownload, sortValue as hgvscSortValue, sortValue$6 as hotspotAnnotationSortValue, includesSearchTextIgnoreCase, indexPositions, initDefaultMutationMapperStore, initDefaultTrackVisibility, initGenomeNexusClient, initGenomeNexusInternalClient, initOncoKbClient, mergeColumns, mutationTypeSort, download$5 as myCancerGenomeDownload, sortValue$7 as myCancerGenomeSortValue, onFilterOptionSelect, proteinChangeSortMethod, rightAlignedCell, download as signalDownload, getSortValue as signalSortValue, updatePositionHighlightFilters, updatePositionRangeHighlightFilters, updatePositionSelectionFilters };
|
|
11429
11466
|
//# sourceMappingURL=index.es.js.map
|