react-mutation-mapper 0.8.32 → 0.8.35
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/Signal.d.ts +5 -4
- package/dist/component/track/ExonTrack.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +149 -33
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +154 -37
- package/dist/index.js.map +1 -1
- package/dist/model/MutationMapperStore.d.ts +2 -0
- package/dist/store/DefaultMutationMapperStore.d.ts +3 -0
- package/package.json +5 -5
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import 'rc-tooltip/assets/bootstrap_white.css';
|
|
3
|
-
import { IExtendedSignalMutation, Mutation, RemoteData } from 'cbioportal-utils';
|
|
3
|
+
import { IExtendedSignalMutation, Mutation, RemoteData, Pathogenicity } from 'cbioportal-utils';
|
|
4
4
|
import { VariantAnnotation } from 'genome-nexus-ts-api-client';
|
|
5
5
|
declare type SignalProps = {
|
|
6
6
|
mutation: Mutation;
|
|
7
7
|
indexedVariantAnnotations?: RemoteData<{
|
|
8
8
|
[genomicLocation: string]: VariantAnnotation;
|
|
9
9
|
} | undefined>;
|
|
10
|
+
mutationType?: Pathogenicity;
|
|
10
11
|
};
|
|
11
12
|
declare type SignalValueProps = SignalProps & {
|
|
12
13
|
significantDigits?: number;
|
|
13
14
|
};
|
|
14
15
|
export declare function getSignalData(mutation: Mutation, indexedVariantAnnotations?: RemoteData<{
|
|
15
16
|
[genomicLocation: string]: VariantAnnotation;
|
|
16
|
-
} | undefined
|
|
17
|
+
} | undefined>, mutationType?: Pathogenicity): IExtendedSignalMutation[];
|
|
17
18
|
export declare function signalSortMethod(a: IExtendedSignalMutation, b: IExtendedSignalMutation): number;
|
|
18
19
|
export declare function getSortValue(signalData: IExtendedSignalMutation): number | null;
|
|
19
|
-
export declare function download(signalData: IExtendedSignalMutation): string;
|
|
20
|
-
export declare function
|
|
20
|
+
export declare function download(signalData: IExtendedSignalMutation, mutationType?: Pathogenicity): string;
|
|
21
|
+
export declare function getSingleSignalValue(mutation: Mutation, mutationType: Pathogenicity, indexedVariantAnnotations?: RemoteData<{
|
|
21
22
|
[genomicLocation: string]: VariantAnnotation;
|
|
22
23
|
} | undefined>, significantDigits?: number): number | null;
|
|
23
24
|
export declare const SignalTable: React.FunctionComponent<SignalValueProps>;
|
|
@@ -11,6 +11,8 @@ export default class ExonTrack extends React.Component<ExonTrackProps, {}> {
|
|
|
11
11
|
constructor(props: any);
|
|
12
12
|
get transcriptId(): string | undefined;
|
|
13
13
|
get transcript(): EnsemblTranscript | undefined;
|
|
14
|
+
get chromosome(): string;
|
|
15
|
+
get genomeBuild(): string;
|
|
14
16
|
get exonSpecs(): TrackItemSpec[];
|
|
15
17
|
get trackTitle(): JSX.Element;
|
|
16
18
|
render(): JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export { default as Hgvsg } from './component/column/Hgvsg';
|
|
|
14
14
|
export * from './component/column/HgvsHelper';
|
|
15
15
|
export { default as MutationStatus } from './component/column/MutationStatus';
|
|
16
16
|
export { default as ProteinChange, proteinChangeSortMethod, } from './component/column/ProteinChange';
|
|
17
|
-
export { default as Signal, getSignalData, getSortValue as signalSortValue, download as signalDownload,
|
|
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';
|
|
19
19
|
export { default as BadgeLabel } from './component/filter/BadgeLabel';
|
|
20
20
|
export { default as BadgeSelector, BadgeSelectorOption, BadgeSelectorProps, } from './component/filter/BadgeSelector';
|
package/dist/index.es.js
CHANGED
|
@@ -3,7 +3,7 @@ import { makeObservable, observable, action, computed, reaction } from 'mobx';
|
|
|
3
3
|
import { observer } from 'mobx-react';
|
|
4
4
|
import React__default, { createElement, Component, useState, Fragment } from 'react';
|
|
5
5
|
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, initHitZoneFromConfig, defaultHitzoneConfig, EditableSpan, DownloadControls, EllipsisTextTooltip, remoteData, WindowWrapper } from 'cbioportal-frontend-commons';
|
|
6
|
-
import { CIVIC_NA_VALUE, generateQueryVariantId, OncoKbCardDataType, parseMyCancerGenomeLink, defaultArraySortMethod, defaultSortMethod, LEVELS, uniqueGenomicLocations, indexAnnotationsByGenomicLocation, getCivicEntry, getRemoteDataGroupStatus, getMyCancerGenomeLinks, isLinearClusterHotspot, is3dHotspot, calculateOncoKbAvailableDataType, getVariantAnnotation, getDbsnpRsId, getMyVariantInfoAnnotation, generateHgvsgByMutation, calcProteinChangeSortValue, extendMutations, formatNumberValueInSignificantDigits, generateTumorTypeDecomposition, formatPercentValue, countMutationsByProteinChange, numberOfLeadingDecimalZeros, filterLinearClusterHotspotsByMutations, filter3dHotspotsByMutations, isHotspot, defaultHotspotFilter, defaultStringArraySortMethod, extractExonInformation, formatExonLocation, compareByPtmTypePriority, ptmColor, UniprotTopologyTypeToTitle, UniprotTopologyTrackToColor, PtmSource, PTM_SOURCE_URL, getMyVariantInfoAnnotationsFromIndexedVariantAnnotations, generateProteinChangeQuery, StructuralVariantType, generateAnnotateStructuralVariantQuery, getMutationsByTranscriptId, groupMutationsByProteinStartPos, groupHotspotsByMutations, getMyCancerGenomeData, convertUniprotFeatureToPtm, convertDbPtmToPtm, indexHotspotsData, genomicLocationString, UniprotCategory, convertUniprotFeatureToUniprotTopology, groupPtmDataByPosition, groupPtmDataByTypeAndPosition, groupCancerHotspotDataByPosition, fetchCivicGenes, fetchCivicVariants } from 'cbioportal-utils';
|
|
6
|
+
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, compareByPtmTypePriority, ptmColor, UniprotTopologyTypeToTitle, UniprotTopologyTrackToColor, PtmSource, PTM_SOURCE_URL, getMyVariantInfoAnnotationsFromIndexedVariantAnnotations, generateProteinChangeQuery, StructuralVariantType, generateAnnotateStructuralVariantQuery, getMutationsByTranscriptId, groupMutationsByProteinStartPos, groupHotspotsByMutations, getMyCancerGenomeData, convertUniprotFeatureToPtm, convertDbPtmToPtm, indexHotspotsData, genomicLocationString, UniprotCategory, convertUniprotFeatureToUniprotTopology, groupPtmDataByPosition, groupPtmDataByTypeAndPosition, groupCancerHotspotDataByPosition, fetchCivicGenes, fetchCivicVariants } from 'cbioportal-utils';
|
|
7
7
|
import classnames from 'classnames';
|
|
8
8
|
import autobind from 'autobind-decorator';
|
|
9
9
|
import { Tabs, Tab, Modal } from 'react-bootstrap';
|
|
@@ -15,7 +15,7 @@ import { OncoKbAPI } from 'oncokb-ts-api-client';
|
|
|
15
15
|
import Select, { components } from 'react-select';
|
|
16
16
|
import $ from 'jquery';
|
|
17
17
|
import Slider from 'react-rangeslider';
|
|
18
|
-
import request from 'superagent';
|
|
18
|
+
import request, { get } from 'superagent';
|
|
19
19
|
import memoize from 'memoize-weak-decorator';
|
|
20
20
|
import { cached } from 'mobxpromise';
|
|
21
21
|
|
|
@@ -3152,8 +3152,9 @@ var ProteinChange = /** @class */ (function (_super) {
|
|
|
3152
3152
|
return ProteinChange;
|
|
3153
3153
|
}(Component));
|
|
3154
3154
|
|
|
3155
|
-
function getSignalData(mutation, indexedVariantAnnotations
|
|
3156
|
-
|
|
3155
|
+
function getSignalData(mutation, indexedVariantAnnotations, mutationType // mutationType could be "germline", "somatic", or "undefined" which means both
|
|
3156
|
+
) {
|
|
3157
|
+
var signalData = [];
|
|
3157
3158
|
var variantAnnotation = indexedVariantAnnotations
|
|
3158
3159
|
? getVariantAnnotation(mutation, indexedVariantAnnotations.result)
|
|
3159
3160
|
: undefined;
|
|
@@ -3161,12 +3162,37 @@ function getSignalData(mutation, indexedVariantAnnotations) {
|
|
|
3161
3162
|
variantAnnotation.signalAnnotation &&
|
|
3162
3163
|
variantAnnotation.signalAnnotation.annotation &&
|
|
3163
3164
|
variantAnnotation.signalAnnotation.annotation.length > 0) {
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
if (
|
|
3167
|
-
|
|
3165
|
+
// if mutation is somatic OR germline, get annotation depending on mutationType
|
|
3166
|
+
if (variantAnnotation.signalAnnotation.annotation.length === 1) {
|
|
3167
|
+
if ((mutationType === Pathogenicity.GERMLINE &&
|
|
3168
|
+
variantAnnotation.signalAnnotation.annotation[0].mutationStatus.includes('germline')) ||
|
|
3169
|
+
(mutationType === Pathogenicity.SOMATIC &&
|
|
3170
|
+
variantAnnotation.signalAnnotation.annotation[0].mutationStatus.includes('somatic'))) {
|
|
3171
|
+
signalData = extendMutations([
|
|
3172
|
+
variantAnnotation.signalAnnotation.annotation[0],
|
|
3173
|
+
]);
|
|
3174
|
+
}
|
|
3175
|
+
}
|
|
3176
|
+
// if mutation is both somatic AND germline, get annotation for both or get one of them depending on mutationType
|
|
3177
|
+
else {
|
|
3178
|
+
// if mutationType is undefined, get annotation for both somatic and germline
|
|
3179
|
+
if (mutationType === undefined) {
|
|
3180
|
+
signalData = extendMutations(variantAnnotation.signalAnnotation.annotation);
|
|
3168
3181
|
}
|
|
3169
|
-
|
|
3182
|
+
// if mutationType is defined, get annotation depending on mutationType
|
|
3183
|
+
else {
|
|
3184
|
+
variantAnnotation.signalAnnotation.annotation.forEach(function (annotation) {
|
|
3185
|
+
if (mutationType === Pathogenicity.GERMLINE &&
|
|
3186
|
+
annotation.mutationStatus.includes('germline')) {
|
|
3187
|
+
signalData = extendMutations([annotation]);
|
|
3188
|
+
}
|
|
3189
|
+
else if (mutationType === Pathogenicity.SOMATIC &&
|
|
3190
|
+
annotation.mutationStatus.includes('somatic')) {
|
|
3191
|
+
signalData = extendMutations([annotation]);
|
|
3192
|
+
}
|
|
3193
|
+
});
|
|
3194
|
+
}
|
|
3195
|
+
}
|
|
3170
3196
|
}
|
|
3171
3197
|
return signalData;
|
|
3172
3198
|
}
|
|
@@ -3174,25 +3200,29 @@ function signalSortMethod(a, b) {
|
|
|
3174
3200
|
return defaultSortMethod(getSortValue(a), getSortValue(b));
|
|
3175
3201
|
}
|
|
3176
3202
|
function getSortValue(signalData) {
|
|
3177
|
-
return signalData.germlineFrequency || null;
|
|
3203
|
+
return signalData ? signalData.germlineFrequency || null : null;
|
|
3178
3204
|
}
|
|
3179
|
-
function download$7(signalData) {
|
|
3180
|
-
return signalData.germlineFrequency
|
|
3205
|
+
function download$7(signalData, mutationType) {
|
|
3206
|
+
return signalData && signalData.germlineFrequency !== null
|
|
3181
3207
|
? "" + formatNumberValueInSignificantDigits(signalData.germlineFrequency, 2)
|
|
3182
3208
|
: '';
|
|
3183
3209
|
}
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3210
|
+
// Get germline OR somatic frequency value
|
|
3211
|
+
function getSingleSignalValue(mutation, mutationType, indexedVariantAnnotations, significantDigits) {
|
|
3212
|
+
var signalData = getSignalData(mutation, indexedVariantAnnotations, mutationType);
|
|
3213
|
+
if (signalData &&
|
|
3214
|
+
signalData.length === 1 &&
|
|
3215
|
+
signalData[0].tumorTypeDecomposition) {
|
|
3216
|
+
return formatNumberValueInSignificantDigits(signalData[0].germlineFrequency || signalData[0].somaticFrequency, significantDigits || 2);
|
|
3188
3217
|
}
|
|
3189
3218
|
else {
|
|
3190
3219
|
return null;
|
|
3191
3220
|
}
|
|
3192
3221
|
}
|
|
3193
3222
|
var SignalTable = function (props) {
|
|
3194
|
-
|
|
3195
|
-
|
|
3223
|
+
// signal data should be either germline or somatic, so should be only one element
|
|
3224
|
+
var signalData = getSignalData(props.mutation, props.indexedVariantAnnotations, props.mutationType)[0];
|
|
3225
|
+
if (getSingleSignalValue(props.mutation, props.mutationType || Pathogenicity.GERMLINE, props.indexedVariantAnnotations) !== null) {
|
|
3196
3226
|
return (createElement(MutationTumorTypeFrequencyTable, { data: generateTumorTypeDecomposition(signalData, signalData.countsByTumorType, signalData.biallelicCountsByTumorType, signalData.qcPassCountsByTumorType, signalData.statsByTumorType), columns: [
|
|
3197
3227
|
FREQUENCY_COLUMNS_DEFINITION[FrequencyTableColumnEnum.TUMOR_TYPE],
|
|
3198
3228
|
FREQUENCY_COLUMNS_DEFINITION[FrequencyTableColumnEnum.MUTATION_STATUS],
|
|
@@ -3233,11 +3263,11 @@ var Signal = /** @class */ (function (_super) {
|
|
|
3233
3263
|
}
|
|
3234
3264
|
else {
|
|
3235
3265
|
content = createElement("div", null);
|
|
3236
|
-
var signalValue =
|
|
3266
|
+
var signalValue = getSingleSignalValue(this.props.mutation, this.props.mutationType || Pathogenicity.GERMLINE, this.props.indexedVariantAnnotations);
|
|
3237
3267
|
if (signalValue !== null) {
|
|
3238
3268
|
content = (createElement(DefaultTooltip, { placement: "top", overlayStyle: {
|
|
3239
3269
|
width: 800,
|
|
3240
|
-
}, overlay: createElement(SignalTable, { mutation: this.props.mutation, indexedVariantAnnotations: this.props.indexedVariantAnnotations }) },
|
|
3270
|
+
}, overlay: createElement(SignalTable, { mutation: this.props.mutation, indexedVariantAnnotations: this.props.indexedVariantAnnotations, mutationType: this.props.mutationType }) },
|
|
3241
3271
|
createElement("span", null, signalValue)));
|
|
3242
3272
|
}
|
|
3243
3273
|
}
|
|
@@ -5185,7 +5215,7 @@ var DefaultMutationTable = /** @class */ (function (_super) {
|
|
|
5185
5215
|
return this.indexedVariantAnnotationDataStatus === 'pending'
|
|
5186
5216
|
? function () { return undefined; }
|
|
5187
5217
|
: function (mutation) {
|
|
5188
|
-
return getSignalData(mutation, _this.props.indexedVariantAnnotations);
|
|
5218
|
+
return getSignalData(mutation, _this.props.indexedVariantAnnotations, Pathogenicity.GERMLINE)[0];
|
|
5189
5219
|
};
|
|
5190
5220
|
},
|
|
5191
5221
|
enumerable: false,
|
|
@@ -5255,7 +5285,7 @@ var DefaultMutationTable = /** @class */ (function (_super) {
|
|
|
5255
5285
|
case MutationColumn.DBSNP:
|
|
5256
5286
|
return function (column) { return (createElement(Dbsnp, { mutation: column.original, indexedMyVariantInfoAnnotations: _this.props.indexedMyVariantInfoAnnotations })); };
|
|
5257
5287
|
case MutationColumn.SIGNAL:
|
|
5258
|
-
return function (column) { return (createElement(Signal, { mutation: column.original, indexedVariantAnnotations: _this.props.indexedVariantAnnotations })); };
|
|
5288
|
+
return function (column) { return (createElement(Signal, { mutation: column.original, indexedVariantAnnotations: _this.props.indexedVariantAnnotations, mutationType: Pathogenicity.GERMLINE })); };
|
|
5259
5289
|
default:
|
|
5260
5290
|
return undefined;
|
|
5261
5291
|
}
|
|
@@ -8437,8 +8467,24 @@ var ExonTrack = /** @class */ (function (_super) {
|
|
|
8437
8467
|
enumerable: false,
|
|
8438
8468
|
configurable: true
|
|
8439
8469
|
});
|
|
8470
|
+
Object.defineProperty(ExonTrack.prototype, "chromosome", {
|
|
8471
|
+
get: function () {
|
|
8472
|
+
var _a, _b;
|
|
8473
|
+
return (_b = (_a = this.props.store.ensemblTranscriptLookUp.result) === null || _a === void 0 ? void 0 : _a.body) === null || _b === void 0 ? void 0 : _b.seq_region_name;
|
|
8474
|
+
},
|
|
8475
|
+
enumerable: false,
|
|
8476
|
+
configurable: true
|
|
8477
|
+
});
|
|
8478
|
+
Object.defineProperty(ExonTrack.prototype, "genomeBuild", {
|
|
8479
|
+
get: function () {
|
|
8480
|
+
return this.props.store.genomeBuild;
|
|
8481
|
+
},
|
|
8482
|
+
enumerable: false,
|
|
8483
|
+
configurable: true
|
|
8484
|
+
});
|
|
8440
8485
|
Object.defineProperty(ExonTrack.prototype, "exonSpecs", {
|
|
8441
8486
|
get: function () {
|
|
8487
|
+
var _this = this;
|
|
8442
8488
|
if (!this.transcriptId || !this.transcript) {
|
|
8443
8489
|
return [];
|
|
8444
8490
|
}
|
|
@@ -8452,10 +8498,15 @@ var ExonTrack = /** @class */ (function (_super) {
|
|
|
8452
8498
|
? exonInfo.map(function (exon, index) {
|
|
8453
8499
|
var startCodon = exon.start;
|
|
8454
8500
|
var endCodon = exon.start + exon.length;
|
|
8455
|
-
var
|
|
8456
|
-
var
|
|
8457
|
-
var
|
|
8458
|
-
var
|
|
8501
|
+
var exonStartLocation = formatExonLocation(startCodon, index);
|
|
8502
|
+
var exonEndLocation = formatExonLocation(endCodon);
|
|
8503
|
+
var exonLength = formatExonLength(exon.length);
|
|
8504
|
+
var link = _this.chromosome
|
|
8505
|
+
? "https://igv.org/app/?locus=chr" + _this.chromosome + ":" + exon.genomicLocationStart + "-" + exon.genomicLocationEnd + "&genome=" + _this.genomeBuild
|
|
8506
|
+
: 'https://igv.org';
|
|
8507
|
+
var linkText = _this.chromosome
|
|
8508
|
+
? _this.genomeBuild + ":chr" + _this.chromosome + ":" + exon.genomicLocationStart + " - " + exon.genomicLocationEnd
|
|
8509
|
+
: exon.genomicLocationStart + " - " + exon.genomicLocationEnd;
|
|
8459
8510
|
return {
|
|
8460
8511
|
color: altColors[index % 2],
|
|
8461
8512
|
startCodon: startCodon,
|
|
@@ -8467,14 +8518,41 @@ var ExonTrack = /** @class */ (function (_super) {
|
|
|
8467
8518
|
" Exon ",
|
|
8468
8519
|
exon.rank,
|
|
8469
8520
|
" "),
|
|
8470
|
-
"Start: ",
|
|
8471
|
-
|
|
8521
|
+
"Start: Nucleotide",
|
|
8522
|
+
' ',
|
|
8523
|
+
createElement("strong", null, exonStartLocation.nucleotideLocation),
|
|
8524
|
+
' ',
|
|
8525
|
+
"of amino acid",
|
|
8526
|
+
' ',
|
|
8527
|
+
createElement("strong", null, exonStartLocation.aminoAcidLocation),
|
|
8472
8528
|
createElement("br", null),
|
|
8473
|
-
"End: ",
|
|
8474
|
-
|
|
8529
|
+
"End: Nucleotide",
|
|
8530
|
+
' ',
|
|
8531
|
+
createElement("strong", null, exonEndLocation.nucleotideLocation),
|
|
8532
|
+
' ',
|
|
8533
|
+
"of amino acid",
|
|
8534
|
+
' ',
|
|
8535
|
+
createElement("strong", null, exonEndLocation.aminoAcidLocation),
|
|
8475
8536
|
createElement("br", null),
|
|
8476
|
-
"Length:
|
|
8477
|
-
|
|
8537
|
+
"Length:",
|
|
8538
|
+
' ',
|
|
8539
|
+
createElement("strong", null, exonLength.aminoAcidLength),
|
|
8540
|
+
' ',
|
|
8541
|
+
"amino acids",
|
|
8542
|
+
' ',
|
|
8543
|
+
exonLength.nucleotideLength && (createElement(Fragment, null,
|
|
8544
|
+
' ',
|
|
8545
|
+
"and",
|
|
8546
|
+
' ',
|
|
8547
|
+
createElement("strong", null, exonLength.nucleotideLength),
|
|
8548
|
+
' ',
|
|
8549
|
+
"nucleotides")),
|
|
8550
|
+
createElement("br", null),
|
|
8551
|
+
"Genomic location:", " ",
|
|
8552
|
+
createElement("a", { target: "_blank", href: link, rel: "noopener noreferrer" },
|
|
8553
|
+
createElement(Fragment, null,
|
|
8554
|
+
linkText, " ",
|
|
8555
|
+
createElement("i", { className: "fa fa-external-link" }))))),
|
|
8478
8556
|
};
|
|
8479
8557
|
})
|
|
8480
8558
|
: [];
|
|
@@ -8505,6 +8583,12 @@ var ExonTrack = /** @class */ (function (_super) {
|
|
|
8505
8583
|
__decorate([
|
|
8506
8584
|
computed
|
|
8507
8585
|
], ExonTrack.prototype, "transcript", null);
|
|
8586
|
+
__decorate([
|
|
8587
|
+
computed
|
|
8588
|
+
], ExonTrack.prototype, "chromosome", null);
|
|
8589
|
+
__decorate([
|
|
8590
|
+
computed
|
|
8591
|
+
], ExonTrack.prototype, "genomeBuild", null);
|
|
8508
8592
|
__decorate([
|
|
8509
8593
|
computed
|
|
8510
8594
|
], ExonTrack.prototype, "exonSpecs", null);
|
|
@@ -11694,6 +11778,28 @@ var DefaultMutationMapperStore = /** @class */ (function () {
|
|
|
11694
11778
|
},
|
|
11695
11779
|
})
|
|
11696
11780
|
});
|
|
11781
|
+
Object.defineProperty(this, "ensemblTranscriptLookUp", {
|
|
11782
|
+
enumerable: true,
|
|
11783
|
+
configurable: true,
|
|
11784
|
+
writable: true,
|
|
11785
|
+
value: remoteData({
|
|
11786
|
+
await: function () { return [_this.activeTranscript]; },
|
|
11787
|
+
invoke: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
11788
|
+
var ensemblTranscriptLookUpLink;
|
|
11789
|
+
return __generator(this, function (_a) {
|
|
11790
|
+
ensemblTranscriptLookUpLink = this.genomeBuild === 'hg19'
|
|
11791
|
+
? "https://grch37.rest.ensembl.org/lookup/id/" + this.activeTranscript.result + "?content-type=application/json"
|
|
11792
|
+
: "https://rest.ensembl.org/lookup/id/" + this.activeTranscript.result + "?content-type=application/json";
|
|
11793
|
+
return [2 /*return*/, this.activeTranscript.result
|
|
11794
|
+
? get(ensemblTranscriptLookUpLink)
|
|
11795
|
+
: undefined];
|
|
11796
|
+
});
|
|
11797
|
+
}); },
|
|
11798
|
+
onError: function () {
|
|
11799
|
+
// fail silently, leave the error handling responsibility to the data consumer
|
|
11800
|
+
},
|
|
11801
|
+
})
|
|
11802
|
+
});
|
|
11697
11803
|
makeObservable(this);
|
|
11698
11804
|
}
|
|
11699
11805
|
Object.defineProperty(DefaultMutationMapperStore.prototype, "selectedTranscript", {
|
|
@@ -12003,6 +12109,13 @@ var DefaultMutationMapperStore = /** @class */ (function () {
|
|
|
12003
12109
|
0);
|
|
12004
12110
|
}
|
|
12005
12111
|
});
|
|
12112
|
+
Object.defineProperty(DefaultMutationMapperStore.prototype, "genomeBuild", {
|
|
12113
|
+
get: function () {
|
|
12114
|
+
return this.config.genomeBuild || 'hg19';
|
|
12115
|
+
},
|
|
12116
|
+
enumerable: false,
|
|
12117
|
+
configurable: true
|
|
12118
|
+
});
|
|
12006
12119
|
__decorate([
|
|
12007
12120
|
observable
|
|
12008
12121
|
], DefaultMutationMapperStore.prototype, "_selectedTranscript", void 0);
|
|
@@ -12073,6 +12186,9 @@ var DefaultMutationMapperStore = /** @class */ (function () {
|
|
|
12073
12186
|
__decorate([
|
|
12074
12187
|
autobind
|
|
12075
12188
|
], DefaultMutationMapperStore.prototype, "getDefaultEntrezGeneId", null);
|
|
12189
|
+
__decorate([
|
|
12190
|
+
computed
|
|
12191
|
+
], DefaultMutationMapperStore.prototype, "genomeBuild", null);
|
|
12076
12192
|
return DefaultMutationMapperStore;
|
|
12077
12193
|
}());
|
|
12078
12194
|
|
|
@@ -12779,5 +12895,5 @@ var MutationMapper = /** @class */ (function (_super) {
|
|
|
12779
12895
|
return MutationMapper;
|
|
12780
12896
|
}(Component));
|
|
12781
12897
|
|
|
12782
|
-
export { Annotation, 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, MSI_H_NAME, 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, OTHER_BIOMARKER_HUGO_SYMBOL, OTHER_BIOMARKER_NAME, OncoKB, OncoKBSuggestAnnotationLinkout, OncoKbFeedback, OncoKbHelper, OncoKbTooltip, OncoKbTreatmentTable, OtherBiomarkersQueryType, ProteinChange, ProteinImpactTypeBadgeSelector, ProteinImpactTypeDropdownSelector, RefComponent, ReferenceList, LollipopPlot as Sequence, Signal, SignalTable, SummaryWithRefs, TEXT_INPUT_FILTER_ID, TMB_H_NAME, TrackName, TrackSelector, USE_DEFAULT_PUBLIC_INSTANCE_FOR_ONCOKB, sortValue$4 as annotationSortValue, applyDataFilters, applyDataFiltersOnDatum, applyDefaultMutationFilter, applyDefaultMutationStatusFilter, applyDefaultPositionFilter, applyDefaultProteinImpactTypeFilter, calculateGnomadAlleleFrequency, download as civicDownload, sortValue as civicSortValue, download$3 as clinvarDownload, sortValue$5 as clinvarSortValue, download$4 as dbsnpDownload, sortValue$6 as dbsnpSortValue, defaultOncoKbFilter, errorIcon, fetchVariantAnnotationsByMutation, fetchVariantAnnotationsIndexedByGenomicLocation, findAllUniquePositions, findNonTextInputFilters, findOneMutationFilterValue, findTextInputFilter, getAllOptionValues, getAnnotationData, getClinvarData, getColorForProteinImpactType, getGnomadData, getHgvscColumnData, getHgvsgColumnData, getProteinImpactTypeBadgeLabel, getProteinImpactTypeOptionLabel, getSelectedOptionValues, getSignalData,
|
|
12898
|
+
export { Annotation, 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, MSI_H_NAME, 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, OTHER_BIOMARKER_HUGO_SYMBOL, OTHER_BIOMARKER_NAME, OncoKB, OncoKBSuggestAnnotationLinkout, OncoKbFeedback, OncoKbHelper, OncoKbTooltip, OncoKbTreatmentTable, OtherBiomarkersQueryType, ProteinChange, ProteinImpactTypeBadgeSelector, ProteinImpactTypeDropdownSelector, RefComponent, ReferenceList, LollipopPlot as Sequence, Signal, SignalTable, SummaryWithRefs, TEXT_INPUT_FILTER_ID, TMB_H_NAME, TrackName, TrackSelector, USE_DEFAULT_PUBLIC_INSTANCE_FOR_ONCOKB, sortValue$4 as annotationSortValue, applyDataFilters, applyDataFiltersOnDatum, applyDefaultMutationFilter, applyDefaultMutationStatusFilter, applyDefaultPositionFilter, applyDefaultProteinImpactTypeFilter, calculateGnomadAlleleFrequency, download as civicDownload, sortValue as civicSortValue, download$3 as clinvarDownload, sortValue$5 as clinvarSortValue, download$4 as dbsnpDownload, sortValue$6 as dbsnpSortValue, defaultOncoKbFilter, errorIcon, fetchVariantAnnotationsByMutation, fetchVariantAnnotationsIndexedByGenomicLocation, findAllUniquePositions, findNonTextInputFilters, findOneMutationFilterValue, findTextInputFilter, getAllOptionValues, getAnnotationData, getClinvarData, getColorForProteinImpactType, getGnomadData, getHgvscColumnData, getHgvsgColumnData, getProteinImpactTypeBadgeLabel, getProteinImpactTypeOptionLabel, getSelectedOptionValues, getSignalData, getSingleSignalValue, getUrl, download$5 as gnomadDownload, sortValue$7 as gnomadSortValue, groupDataByGroupFilters, groupDataByProteinImpactType, groupOncoKbIndicatorDataByMutations, handleOptionSelect, download$6 as hgvscDownload, sortValue$8 as hgvscSortValue, sortValue$3 as hotspotAnnotationSortValue, includesSearchTextIgnoreCase, indexPositions, initDefaultMutationMapperStore, initDefaultTrackVisibility, initGenomeNexusClient, initGenomeNexusInternalClient, initOncoKbClient, levelIconClassNames, loaderIcon, mergeColumns, mutationTypeSort, download$1 as myCancerGenomeDownload, sortValue$1 as myCancerGenomeSortValue, normalizeLevel, onFilterOptionSelect, download$2 as oncoKbAnnotationDownload, sortValue$2 as oncoKbAnnotationSortValue, oncogenicityIconClassNames, proteinChangeSortMethod, rightAlignedCell, download$7 as signalDownload, getSortValue as signalSortValue, updatePositionHighlightFilters, updatePositionRangeHighlightFilters, updatePositionSelectionFilters };
|
|
12783
12899
|
//# sourceMappingURL=index.es.js.map
|