react-mutation-mapper 0.8.121 → 0.9.2
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/clinvar/ClinvarSummary.d.ts +1 -1
- package/dist/component/column/Annotation.d.ts +2 -2
- package/dist/component/column/ClinvarInterpretation.d.ts +1 -1
- package/dist/component/column/ColumnHeader.d.ts +1 -1
- package/dist/component/column/Hgvsc.d.ts +1 -1
- package/dist/component/column/Hgvsg.d.ts +1 -1
- package/dist/component/column/MutationStatus.d.ts +1 -1
- package/dist/component/column/MutationType.d.ts +2 -2
- package/dist/component/column/MyVariantInfoHelper.d.ts +1 -1
- package/dist/component/column/ProteinChange.d.ts +1 -1
- package/dist/component/column/Signal.d.ts +2 -2
- package/dist/component/dataTable/ColumnSelector.d.ts +2 -2
- package/dist/component/dataTable/DataTable.d.ts +4 -4
- package/dist/component/dataTable/DataTableToolbar.d.ts +1 -1
- package/dist/component/dbsnp/DbsnpId.d.ts +1 -1
- package/dist/component/filter/BadgeLabel.d.ts +1 -1
- package/dist/component/filter/BadgeSelector.d.ts +2 -2
- package/dist/component/filter/DropdownSelector.d.ts +1 -1
- package/dist/component/filter/MutationStatusBadgeSelector.d.ts +1 -1
- package/dist/component/filter/ProteinImpactTypeBadgeSelector.d.ts +1 -1
- package/dist/component/filter/ProteinImpactTypeDropdownSelector.d.ts +1 -1
- package/dist/component/gnomad/GnomadFrequency.d.ts +1 -1
- package/dist/component/hotspot/HotspotInfo.d.ts +1 -1
- package/dist/component/lollipopMutationPlot/DefaultLollipopPlotLegend.d.ts +1 -1
- package/dist/component/lollipopMutationPlot/LollipopMutationPlot.d.ts +1 -1
- package/dist/component/lollipopMutationPlot/LollipopMutationPlotControls.d.ts +1 -1
- package/dist/component/lollipopPlot/Domain.d.ts +1 -1
- package/dist/component/lollipopPlot/Lollipop.d.ts +1 -1
- package/dist/component/lollipopPlot/LollipopPlot.d.ts +1 -1
- package/dist/component/lollipopPlot/LollipopPlotNoTooltip.d.ts +1 -1
- package/dist/component/lollipopPlot/Sequence.d.ts +1 -1
- package/dist/component/mutationMapper/DefaultMutationRateSummary.d.ts +2 -2
- package/dist/component/mutationMapper/FilterResetPanel.d.ts +1 -1
- package/dist/component/mutationMapper/GeneSummary.d.ts +1 -1
- package/dist/component/mutationMapper/MutationMapper.d.ts +1 -1
- package/dist/component/mutationMapper/TranscriptDropdown.d.ts +1 -1
- package/dist/component/mutationTable/DefaultMutationTable.d.ts +2 -2
- package/dist/component/ptm/PtmAnnotationTable.d.ts +1 -1
- package/dist/component/ptm/PtmReferenceList.d.ts +1 -1
- package/dist/component/track/ExonTrack.d.ts +1 -1
- package/dist/component/track/HotspotTrack.d.ts +1 -1
- package/dist/component/track/OncoKbTrack.d.ts +1 -1
- package/dist/component/track/OncoKbTrackTooltip.d.ts +1 -1
- package/dist/component/track/PtmTrack.d.ts +1 -1
- package/dist/component/track/Track.d.ts +1 -1
- package/dist/component/track/TrackCircle.d.ts +2 -2
- package/dist/component/track/TrackItem.d.ts +2 -2
- package/dist/component/track/TrackPanel.d.ts +1 -1
- package/dist/component/track/TrackRect.d.ts +2 -2
- package/dist/component/track/TrackSelector.d.ts +3 -3
- package/dist/component/track/UniprotTopologyTrack.d.ts +1 -1
- package/dist/filter/CancerTypeFilter.d.ts +1 -1
- package/dist/filter/CategoricalFilter.d.ts +2 -2
- package/dist/filter/HotspotFilter.d.ts +1 -1
- package/dist/filter/MutationFilter.d.ts +2 -2
- package/dist/filter/MutationStatusFilter.d.ts +1 -1
- package/dist/filter/NumericalFilter.d.ts +2 -2
- package/dist/filter/OncoKbFilter.d.ts +1 -1
- package/dist/filter/PositionFilter.d.ts +1 -1
- package/dist/filter/ProteinChangeFilter.d.ts +1 -1
- package/dist/filter/ProteinImpactTypeFilter.d.ts +1 -1
- package/dist/index.es.js +97 -79
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +95 -77
- package/dist/index.js.map +1 -1
- package/dist/model/DataFilter.d.ts +1 -1
- package/dist/model/DomainSpec.d.ts +1 -1
- package/dist/model/FilterApplier.d.ts +1 -1
- package/dist/model/GnomadSummary.d.ts +1 -1
- package/dist/model/LollipopSpec.d.ts +2 -2
- package/dist/model/SequenceSpec.d.ts +1 -1
- package/dist/store/DefaultMutationMapperDataStore.d.ts +1 -1
- package/package.json +9 -9
|
@@ -2,7 +2,7 @@ import { ICivicEntry, ICivicGeneIndex, ICivicVariantIndex, IHotspotIndex, IOncoK
|
|
|
2
2
|
import { CancerGene, IndicatorQueryResp } from 'oncokb-ts-api-client';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { VariantAnnotation, Vues as VUE } from 'genome-nexus-ts-api-client';
|
|
5
|
-
export
|
|
5
|
+
export type AnnotationProps = {
|
|
6
6
|
mutation?: Mutation;
|
|
7
7
|
enableOncoKb: boolean;
|
|
8
8
|
enableHotspot: boolean;
|
|
@@ -25,7 +25,7 @@ export declare type AnnotationProps = {
|
|
|
25
25
|
userDisplayName?: string;
|
|
26
26
|
hasMultipleCancerTypes?: boolean;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type GenericAnnotationProps = {
|
|
29
29
|
annotation: IAnnotation;
|
|
30
30
|
enableCivic: boolean;
|
|
31
31
|
enableHotspot: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Clinvar, VariantAnnotation } from 'genome-nexus-ts-api-client';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Mutation, RemoteData } from 'cbioportal-utils';
|
|
4
|
-
|
|
4
|
+
type ClinvarInterpretationProps = {
|
|
5
5
|
mutation: Mutation;
|
|
6
6
|
indexedVariantAnnotations?: RemoteData<{
|
|
7
7
|
[genomicLocation: string]: VariantAnnotation;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Mutation, RemoteData } from 'cbioportal-utils';
|
|
3
3
|
import { VariantAnnotation } from 'genome-nexus-ts-api-client';
|
|
4
|
-
|
|
4
|
+
type HgvscProps = {
|
|
5
5
|
mutation: Mutation;
|
|
6
6
|
indexedVariantAnnotations?: RemoteData<{
|
|
7
7
|
[genomicLocation: string]: VariantAnnotation;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Mutation } from 'cbioportal-utils';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
|
|
3
|
+
type HgvsgProps = {
|
|
4
4
|
mutation: Mutation;
|
|
5
5
|
constructHref?: (hgvsg: string) => string;
|
|
6
6
|
constructLink?: (hgvsg: string, content: JSX.Element, href?: string) => JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Mutation } from 'cbioportal-utils';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
|
|
3
|
+
type MutationTypeProps = {
|
|
4
4
|
mutation: Mutation;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type MutationTypeFormat = {
|
|
7
7
|
label?: string;
|
|
8
8
|
className: string;
|
|
9
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Mutation, RemoteData } from 'cbioportal-utils';
|
|
2
2
|
import { MyVariantInfo, VariantAnnotation } from 'genome-nexus-ts-api-client';
|
|
3
|
-
export
|
|
3
|
+
export type MyVariantInfoProps = {
|
|
4
4
|
mutation?: Mutation;
|
|
5
5
|
indexedVariantAnnotations?: RemoteData<{
|
|
6
6
|
[genomicLocation: string]: VariantAnnotation;
|
|
@@ -2,14 +2,14 @@ import * as React from 'react';
|
|
|
2
2
|
import 'rc-tooltip/assets/bootstrap_white.css';
|
|
3
3
|
import { IExtendedSignalMutation, Mutation, RemoteData, Pathogenicity } from 'cbioportal-utils';
|
|
4
4
|
import { VariantAnnotation } from 'genome-nexus-ts-api-client';
|
|
5
|
-
|
|
5
|
+
type SignalProps = {
|
|
6
6
|
mutation: Mutation;
|
|
7
7
|
indexedVariantAnnotations?: RemoteData<{
|
|
8
8
|
[genomicLocation: string]: VariantAnnotation;
|
|
9
9
|
} | undefined>;
|
|
10
10
|
mutationType?: Pathogenicity;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type SignalValueProps = SignalProps & {
|
|
13
13
|
significantDigits?: number;
|
|
14
14
|
};
|
|
15
15
|
export declare function getSignalData(mutation: Mutation, indexedVariantAnnotations?: RemoteData<{
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Option } from 'cbioportal-frontend-commons';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export
|
|
3
|
+
export type ColumnVisibilityDef = {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
6
|
visible: boolean;
|
|
7
7
|
togglable?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type ColumnSelectorProps = {
|
|
10
10
|
name?: string;
|
|
11
11
|
placeholder?: string;
|
|
12
12
|
columnVisibility?: ColumnVisibilityDef[];
|
|
@@ -5,7 +5,7 @@ import { Column, RowInfo, TableProps } from 'react-table';
|
|
|
5
5
|
import { DataFilter } from '../../model/DataFilter';
|
|
6
6
|
import { DataStore } from '../../model/DataStore';
|
|
7
7
|
import { ColumnSelectorProps, ColumnVisibilityDef } from './ColumnSelector';
|
|
8
|
-
export
|
|
8
|
+
export type DataTableColumn<T> = Column<T> & {
|
|
9
9
|
name?: string;
|
|
10
10
|
togglable?: boolean;
|
|
11
11
|
searchable?: boolean;
|
|
@@ -14,11 +14,11 @@ export declare enum ColumnSortDirection {
|
|
|
14
14
|
ASC = "asc",
|
|
15
15
|
DESC = "desc"
|
|
16
16
|
}
|
|
17
|
-
export
|
|
17
|
+
export type ColumnSort = {
|
|
18
18
|
column: string;
|
|
19
19
|
sortDirection?: ColumnSortDirection;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type DataTableProps<T> = {
|
|
22
22
|
data?: T[];
|
|
23
23
|
dataStore?: DataStore;
|
|
24
24
|
columns?: DataTableColumn<T>[];
|
|
@@ -85,7 +85,7 @@ export default class DataTable<T> extends React.Component<DataTableProps<T>, {}>
|
|
|
85
85
|
protected createFilterInputResetReaction(dataStore: DataStore): IReactionDisposer;
|
|
86
86
|
protected getTrProps(state: any, row?: RowInfo): {
|
|
87
87
|
style: {
|
|
88
|
-
background:
|
|
88
|
+
background: any;
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
91
|
protected filterInputRef(input: HTMLInputElement): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ColumnSelectorProps, ColumnVisibilityDef } from './ColumnSelector';
|
|
3
|
-
|
|
3
|
+
type DataTableToolbarProps = {
|
|
4
4
|
showColumnVisibility?: boolean;
|
|
5
5
|
visibilityToggle?: (selectedColumnIds: string[]) => void;
|
|
6
6
|
columnVisibility?: ColumnVisibilityDef[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MyVariantInfo } from 'genome-nexus-ts-api-client';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export
|
|
3
|
+
export type DbsnpIdProps = {
|
|
4
4
|
myVariantInfo?: MyVariantInfo;
|
|
5
5
|
};
|
|
6
6
|
export default class DbsnpId extends React.Component<DbsnpIdProps, {}> {
|
|
@@ -2,14 +2,14 @@ import * as React from 'react';
|
|
|
2
2
|
import { CSSProperties } from 'react';
|
|
3
3
|
import { DataFilter } from '../../model/DataFilter';
|
|
4
4
|
import { CheckBoxType, Option } from 'cbioportal-frontend-commons';
|
|
5
|
-
export
|
|
5
|
+
export type BadgeSelectorOption = {
|
|
6
6
|
value: string;
|
|
7
7
|
label?: string | JSX.Element;
|
|
8
8
|
badgeContent?: number | string;
|
|
9
9
|
badgeStyleOverride?: CSSProperties;
|
|
10
10
|
badgeStyleSelectedOverride?: CSSProperties;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type BadgeSelectorProps = {
|
|
13
13
|
name?: string;
|
|
14
14
|
placeholder?: string;
|
|
15
15
|
isDisabled?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Option } from 'cbioportal-frontend-commons';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { DataFilter } from '../../model/DataFilter';
|
|
4
|
-
export
|
|
4
|
+
export type DropdownSelectorProps = {
|
|
5
5
|
name?: string;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
onSelect?: (selectedOptionIds: string[], allValuesSelected?: boolean) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BadgeSelectorOption, BadgeSelectorProps } from './BadgeSelector';
|
|
3
|
-
export
|
|
3
|
+
export type MutationStatusBadgeSelectorProps = BadgeSelectorProps & {
|
|
4
4
|
rates?: {
|
|
5
5
|
[mutationStatus: string]: number;
|
|
6
6
|
};
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { CSSProperties } from 'react';
|
|
4
4
|
import { IProteinImpactTypeColors } from '../../model/ProteinImpact';
|
|
5
5
|
import { BadgeSelectorOption, BadgeSelectorProps } from './BadgeSelector';
|
|
6
|
-
export
|
|
6
|
+
export type ProteinImpactTypeBadgeSelectorProps = BadgeSelectorProps & {
|
|
7
7
|
colors: IProteinImpactTypeColors;
|
|
8
8
|
counts?: {
|
|
9
9
|
[proteinImpactType: string]: number;
|
|
@@ -2,7 +2,7 @@ import { ProteinImpactType } from 'cbioportal-frontend-commons';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { IProteinImpactTypeColors } from '../../model/ProteinImpact';
|
|
4
4
|
import { DropdownSelectorProps } from './DropdownSelector';
|
|
5
|
-
export
|
|
5
|
+
export type ProteinImpactTypeDropdownSelectorProps = DropdownSelectorProps & {
|
|
6
6
|
colors: IProteinImpactTypeColors;
|
|
7
7
|
};
|
|
8
8
|
export declare class ProteinImpactTypeDropdownSelector extends React.Component<ProteinImpactTypeDropdownSelectorProps, {}> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MyVariantInfo, VariantAnnotation } from 'genome-nexus-ts-api-client';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { GnomadSummary } from '../../model/GnomadSummary';
|
|
4
|
-
export
|
|
4
|
+
export type GnomadFrequencyProps = {
|
|
5
5
|
myVariantInfo?: MyVariantInfo;
|
|
6
6
|
annotation?: VariantAnnotation;
|
|
7
7
|
};
|
|
@@ -6,7 +6,7 @@ import { MutationMapperStore } from '../../model/MutationMapperStore';
|
|
|
6
6
|
import { TrackDataStatus, TrackName, TrackVisibility } from '../track/TrackSelector';
|
|
7
7
|
import './lollipopMutationPlot.scss';
|
|
8
8
|
import { AxisScale } from './AxisScaleSwitch';
|
|
9
|
-
export
|
|
9
|
+
export type LollipopMutationPlotProps<T extends Mutation> = {
|
|
10
10
|
store: MutationMapperStore<T>;
|
|
11
11
|
controlsConfig?: LollipopPlotControlsConfig;
|
|
12
12
|
pubMedCache?: MobxCache;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { TrackDataStatus, TrackName, TrackVisibility } from '../track/TrackSelector';
|
|
3
3
|
import 'react-rangeslider/lib/index.css';
|
|
4
4
|
import { AxisScale } from './AxisScaleSwitch';
|
|
5
|
-
|
|
5
|
+
type LollipopMutationPlotControlsProps = {
|
|
6
6
|
showControls: boolean;
|
|
7
7
|
hugoGeneSymbol: string;
|
|
8
8
|
countRange: [number, number];
|
|
@@ -3,7 +3,7 @@ import DataStore from '../../model/DataStore';
|
|
|
3
3
|
import { SequenceSpec } from '../../model/SequenceSpec';
|
|
4
4
|
import { LollipopSpec } from '../../model/LollipopSpec';
|
|
5
5
|
import { DomainSpec } from '../../model/DomainSpec';
|
|
6
|
-
export
|
|
6
|
+
export type LollipopPlotProps = {
|
|
7
7
|
sequence?: SequenceSpec;
|
|
8
8
|
lollipops: LollipopSpec[];
|
|
9
9
|
domains: DomainSpec[];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { SyntheticEvent } from 'react';
|
|
4
4
|
import { LollipopPlotProps } from './LollipopPlot';
|
|
5
|
-
export
|
|
5
|
+
export type LollipopPlotNoTooltipProps = LollipopPlotProps & {
|
|
6
6
|
setHitZone?: (hitRect: {
|
|
7
7
|
x: number;
|
|
8
8
|
y: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type MutationRate = {
|
|
3
3
|
rate: number;
|
|
4
4
|
title: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type DefaultMutationRateSummaryProps = {
|
|
8
8
|
rates: MutationRate[];
|
|
9
9
|
fractionDigits?: number;
|
|
10
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Mutation, RemoteData } from 'cbioportal-utils';
|
|
3
3
|
import { EnsemblTranscript, VariantAnnotation } from 'genome-nexus-ts-api-client';
|
|
4
|
-
export
|
|
4
|
+
export type GeneSummaryProps = {
|
|
5
5
|
hugoGeneSymbol: string;
|
|
6
6
|
uniprotId?: string;
|
|
7
7
|
transcriptSummaryUrlTemplate?: string;
|
|
@@ -11,7 +11,7 @@ import DefaultMutationMapperStore from '../../store/DefaultMutationMapperStore';
|
|
|
11
11
|
import { ColumnSort, DataTableColumn } from '../dataTable/DataTable';
|
|
12
12
|
import { MutationRate } from './DefaultMutationRateSummary';
|
|
13
13
|
import { TrackDataStatus, TrackName, TrackVisibility } from '../track/TrackSelector';
|
|
14
|
-
export
|
|
14
|
+
export type MutationMapperProps = {
|
|
15
15
|
hugoSymbol?: string;
|
|
16
16
|
entrezGeneId?: number;
|
|
17
17
|
data?: Partial<Mutation>[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Mutation, RemoteData } from 'cbioportal-utils';
|
|
3
3
|
import { EnsemblTranscript, VariantAnnotation } from 'genome-nexus-ts-api-client';
|
|
4
|
-
export
|
|
4
|
+
export type TranscriptDropdownProps = {
|
|
5
5
|
showDropDown: boolean;
|
|
6
6
|
showOnlyAnnotatedTranscriptsInDropdown: boolean;
|
|
7
7
|
activeTranscript?: string;
|
|
@@ -6,7 +6,7 @@ import { Column } from 'react-table';
|
|
|
6
6
|
import { DataTableColumn, DataTableProps } from '../dataTable/DataTable';
|
|
7
7
|
import { MutationColumn } from './MutationColumnHelper';
|
|
8
8
|
import './defaultMutationTable.scss';
|
|
9
|
-
export
|
|
9
|
+
export type DefaultMutationTableProps = {
|
|
10
10
|
hotspotData?: RemoteData<IHotspotIndex | undefined>;
|
|
11
11
|
oncoKbData?: RemoteData<IOncoKbData | Error | undefined>;
|
|
12
12
|
oncoKbCancerGenes?: RemoteData<CancerGene[] | Error | undefined>;
|
|
@@ -48,7 +48,7 @@ export default class DefaultMutationTable extends React.Component<DefaultMutatio
|
|
|
48
48
|
protected getDefaultColumnAccessor(columnKey: MutationColumn): ((mutation: Mutation) => import("../column/Annotation").IAnnotation) | ((mutation: Mutation) => MyVariantInfo | undefined) | ((mutation: Mutation) => string | null) | ((mutation: Mutation) => import("cbioportal-utils").IExtendedSignalMutation) | ((mutation: Mutation) => import("genome-nexus-ts-api-client").Clinvar | undefined) | undefined;
|
|
49
49
|
protected getDefaultColumnCellRender(columnKey: MutationColumn): ((column: any) => JSX.Element) | undefined;
|
|
50
50
|
get columns(): {
|
|
51
|
-
accessor?:
|
|
51
|
+
accessor?: import("react-table").Accessor<Partial<Mutation>> | undefined;
|
|
52
52
|
id?: string | undefined;
|
|
53
53
|
aggregate?: import("react-table").Aggregator | undefined;
|
|
54
54
|
width?: number | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Column } from 'react-table';
|
|
3
3
|
import { Cache, MobxCache, PostTranslationalModification } from 'cbioportal-utils';
|
|
4
|
-
export
|
|
4
|
+
export type PtmSummaryTableProps = {
|
|
5
5
|
data: PostTranslationalModification[];
|
|
6
6
|
pubMedCache?: MobxCache;
|
|
7
7
|
initialSortColumn?: string;
|
|
@@ -4,7 +4,7 @@ import { TrackProps } from './Track';
|
|
|
4
4
|
import { TrackItemSpec } from './TrackItem';
|
|
5
5
|
import { Mutation } from 'cbioportal-utils';
|
|
6
6
|
import { EnsemblTranscript } from 'genome-nexus-ts-api-client';
|
|
7
|
-
|
|
7
|
+
type ExonTrackProps = TrackProps & {
|
|
8
8
|
store: MutationMapperStore<Mutation>;
|
|
9
9
|
};
|
|
10
10
|
export default class ExonTrack extends React.Component<ExonTrackProps, {}> {
|
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import MutationMapperStore from '../../model/MutationMapperStore';
|
|
5
5
|
import { TrackProps } from './Track';
|
|
6
6
|
import { TrackItemSpec } from './TrackItem';
|
|
7
|
-
|
|
7
|
+
type HotspotTrackProps = TrackProps & {
|
|
8
8
|
store: MutationMapperStore<Mutation>;
|
|
9
9
|
hotspotIndex: IHotspotIndex;
|
|
10
10
|
};
|
|
@@ -3,7 +3,7 @@ import MutationMapperStore from '../../model/MutationMapperStore';
|
|
|
3
3
|
import { TrackProps } from './Track';
|
|
4
4
|
import { TrackItemSpec } from './TrackItem';
|
|
5
5
|
import { Mutation } from 'cbioportal-utils';
|
|
6
|
-
|
|
6
|
+
type OncoKbTrackProps = TrackProps & {
|
|
7
7
|
store: MutationMapperStore<Mutation>;
|
|
8
8
|
};
|
|
9
9
|
export declare function getOncoKbImage(): JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Mutation } from 'cbioportal-utils';
|
|
3
3
|
import { IndicatorQueryResp } from 'oncokb-ts-api-client';
|
|
4
|
-
|
|
4
|
+
type OncoKbTrackTooltipProps = {
|
|
5
5
|
usingPublicOncoKbInstance: boolean;
|
|
6
6
|
mutations: Mutation[];
|
|
7
7
|
indicatorData?: IndicatorQueryResp[];
|
|
@@ -4,7 +4,7 @@ import { MobxCache, Mutation, PostTranslationalModification } from 'cbioportal-u
|
|
|
4
4
|
import MutationMapperStore from '../../model/MutationMapperStore';
|
|
5
5
|
import { TrackProps } from './Track';
|
|
6
6
|
import { TrackItemSpec } from './TrackItem';
|
|
7
|
-
|
|
7
|
+
type PtmTrackProps = TrackProps & {
|
|
8
8
|
store: MutationMapperStore<Mutation>;
|
|
9
9
|
pubMedCache?: MobxCache;
|
|
10
10
|
ensemblTranscriptId?: string;
|
|
@@ -4,7 +4,7 @@ import { SyntheticEvent } from 'react';
|
|
|
4
4
|
import { DataFilter } from '../../model/DataFilter';
|
|
5
5
|
import DataStore from '../../model/DataStore';
|
|
6
6
|
import TrackItem, { TrackItemSpec } from './TrackItem';
|
|
7
|
-
export
|
|
7
|
+
export type TrackProps = {
|
|
8
8
|
dataStore: DataStore;
|
|
9
9
|
width: number;
|
|
10
10
|
proteinLength: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
type TrackCircleProps = {
|
|
3
3
|
x: number;
|
|
4
4
|
y: number;
|
|
5
5
|
radius?: number;
|
|
@@ -9,7 +9,7 @@ declare type TrackCircleProps = {
|
|
|
9
9
|
hitZoneXOffset?: number;
|
|
10
10
|
spec: TrackCircleSpec;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type TrackCircleSpec = {
|
|
13
13
|
startCodon: number;
|
|
14
14
|
label?: string;
|
|
15
15
|
color?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
type TrackItemProps = {
|
|
3
3
|
x: number;
|
|
4
4
|
y: number;
|
|
5
5
|
dim1: number;
|
|
@@ -13,7 +13,7 @@ export declare enum TrackItemType {
|
|
|
13
13
|
CIRCLE = 0,
|
|
14
14
|
RECTANGLE = 1
|
|
15
15
|
}
|
|
16
|
-
export
|
|
16
|
+
export type TrackItemSpec = {
|
|
17
17
|
startCodon: number;
|
|
18
18
|
endCodon?: number;
|
|
19
19
|
itemType?: TrackItemType;
|
|
@@ -3,7 +3,7 @@ import { MobxCache, Mutation } from 'cbioportal-utils';
|
|
|
3
3
|
import MutationMapperStore from '../../model/MutationMapperStore';
|
|
4
4
|
import { TrackName, TrackVisibility } from './TrackSelector';
|
|
5
5
|
import './defaultTrackTooltipTable.scss';
|
|
6
|
-
|
|
6
|
+
type TrackPanelProps = {
|
|
7
7
|
store: MutationMapperStore<Mutation>;
|
|
8
8
|
pubMedCache?: MobxCache;
|
|
9
9
|
geneWidth: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
type TrackRectProps = {
|
|
3
3
|
x: number;
|
|
4
4
|
y: number;
|
|
5
5
|
width?: number;
|
|
@@ -9,7 +9,7 @@ declare type TrackRectProps = {
|
|
|
9
9
|
hitZoneXOffset?: number;
|
|
10
10
|
spec: TrackRectSpec;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type TrackRectSpec = {
|
|
13
13
|
startCodon: number;
|
|
14
14
|
endCodon?: number;
|
|
15
15
|
label?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Option } from 'cbioportal-frontend-commons';
|
|
3
|
-
export
|
|
3
|
+
export type TrackVisibility = {
|
|
4
4
|
[trackName: string]: 'visible' | 'hidden';
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type TrackDataStatus = {
|
|
7
7
|
[trackName: string]: 'pending' | 'error' | 'complete' | 'empty';
|
|
8
8
|
};
|
|
9
9
|
export declare enum TrackName {
|
|
@@ -15,7 +15,7 @@ export declare enum TrackName {
|
|
|
15
15
|
Exon = "EXON",
|
|
16
16
|
UniprotTopology = "UNIPROT_TOPOLOGY"
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
type TrackSelectorProps = {
|
|
19
19
|
tracks?: TrackName[];
|
|
20
20
|
trackVisibility: TrackVisibility;
|
|
21
21
|
trackDataStatus?: TrackDataStatus;
|
|
@@ -3,7 +3,7 @@ import { TrackProps } from './Track';
|
|
|
3
3
|
import { TrackItemSpec } from './TrackItem';
|
|
4
4
|
import { MutationMapperStore } from '../../model/MutationMapperStore';
|
|
5
5
|
import { Mutation } from 'cbioportal-utils';
|
|
6
|
-
|
|
6
|
+
type UniprotTopologyTrackProps = TrackProps & {
|
|
7
7
|
store: MutationMapperStore<Mutation>;
|
|
8
8
|
subTrackMargin?: number;
|
|
9
9
|
collapsed?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DataFilter } from '../model/DataFilter';
|
|
2
|
-
export
|
|
2
|
+
export type CancerTypeFilter = DataFilter<string>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DataFilter } from '../model/DataFilter';
|
|
2
|
-
export
|
|
2
|
+
export type CategoricalFilterValue = {
|
|
3
3
|
filterCondition: string;
|
|
4
4
|
filterString: string;
|
|
5
5
|
selections: Set<string>;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type CategoricalFilter = DataFilter<CategoricalFilterValue>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Mutation } from 'cbioportal-utils';
|
|
2
2
|
import { DataFilter } from '../model/DataFilter';
|
|
3
|
-
export
|
|
3
|
+
export type MutationFilterValue = {
|
|
4
4
|
[field in keyof Mutation]: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type MutationFilter = DataFilter<MutationFilterValue>;
|