Skip to content

Commit

Permalink
rename fusion colors
Browse files Browse the repository at this point in the history
  • Loading branch information
leexgh committed Apr 20, 2021
1 parent 2dd5776 commit 2a4f5dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 30 deletions.
Expand Up @@ -8,8 +8,7 @@ export const MUT_COLOR_TRUNC_PASSENGER = '#708090';
export const MUT_COLOR_SPLICE = '#e5802b';
export const MUT_COLOR_SPLICE_PASSENGER = '#f0b87b';
export const STRUCTURAL_VARIANT_COLOR = '#8B00C9';
export const MUT_COLOR_FUSION = '#8B00C9';
export const MUT_COLOR_FUSION_PASSENGER = '#ce92e8';
export const STRUCTURAL_VARIANT_PASSENGER_COLOR = '#ce92e8';
export const MUT_COLOR_PROMOTER = '#00B7CE';
export const MUT_COLOR_OTHER = '#cf58bc'; //'#cfb537';
export const MRNA_COLOR_HIGH = '#ff9999';
Expand Down
4 changes: 2 additions & 2 deletions packages/react-mutation-mapper/src/util/MutationTypeUtils.ts
Expand Up @@ -14,7 +14,7 @@ import {
MUT_COLOR_INFRAME_PASSENGER,
MUT_COLOR_TRUNC_PASSENGER,
MUT_COLOR_SPLICE_PASSENGER,
MUT_COLOR_FUSION_PASSENGER,
STRUCTURAL_VARIANT_PASSENGER_COLOR,
} from 'cbioportal-frontend-commons';
import { Mutation } from 'cbioportal-utils';
import _ from 'lodash';
Expand All @@ -31,7 +31,7 @@ export const DEFAULT_PROTEIN_IMPACT_TYPE_COLORS: IProteinImpactTypeColors = {
spliceColor: MUT_COLOR_SPLICE,
spliceVusColor: MUT_COLOR_SPLICE_PASSENGER,
fusionColor: STRUCTURAL_VARIANT_COLOR,
fusionVusColor: MUT_COLOR_FUSION_PASSENGER,
fusionVusColor: STRUCTURAL_VARIANT_PASSENGER_COLOR,
otherColor: MUT_COLOR_OTHER,
};

Expand Down
28 changes: 2 additions & 26 deletions src/shared/lib/MutationUtils.tsx
Expand Up @@ -13,18 +13,7 @@ import {
SampleIdentifier,
} from 'cbioportal-ts-api-client';
import {
MUT_COLOR_INFRAME_PASSENGER,
MUT_COLOR_MISSENSE_PASSENGER,
MUT_COLOR_SPLICE,
MUT_COLOR_SPLICE_PASSENGER,
MUT_COLOR_TRUNC_PASSENGER,
stringListToSet,
MUT_COLOR_FUSION,
MUT_COLOR_INFRAME,
MUT_COLOR_MISSENSE,
MUT_COLOR_OTHER,
MUT_COLOR_TRUNC,
STRUCTURAL_VARIANT_COLOR,
ProteinImpactType,
getProteinImpactType,
DriverVsVusType,
Expand All @@ -39,19 +28,6 @@ import { toSampleUuid } from './UuidUtils';
import { normalizeMutations } from '../components/mutationMapper/MutationMapperUtils';
import { getSimplifiedMutationType } from './oql/AccessorsForOqlFilter';

export const DEFAULT_PROTEIN_IMPACT_TYPE_COLORS: IProteinImpactTypeColors = {
missenseColor: MUT_COLOR_MISSENSE,
missenseVusColor: MUT_COLOR_MISSENSE_PASSENGER,
inframeColor: MUT_COLOR_INFRAME,
inframeVusColor: MUT_COLOR_INFRAME_PASSENGER,
truncatingColor: MUT_COLOR_TRUNC,
truncatingVusColor: MUT_COLOR_TRUNC_PASSENGER,
spliceColor: MUT_COLOR_SPLICE,
spliceVusColor: MUT_COLOR_SPLICE_PASSENGER,
fusionColor: STRUCTURAL_VARIANT_COLOR,
otherColor: MUT_COLOR_OTHER,
};

export const SELECTOR_VALUE_WITH_VUS = [
ProteinImpactType.MISSENSE_PUTATIVE_DRIVER,
ProteinImpactType.MISSENSE_UNKNOWN_SIGNIFICANCE,
Expand Down Expand Up @@ -175,7 +151,7 @@ export function getProteinImpactTypeOptionDisplayValueMap(proteinImpactTypeColor
],
}}
>
Fusion
SV/Fusion
</strong>
),
[ProteinImpactType.FUSION_UNKNOWN_SIGNIFICANCE]: (
Expand All @@ -187,7 +163,7 @@ export function getProteinImpactTypeOptionDisplayValueMap(proteinImpactTypeColor
],
}}
>
Fusion
SV/Fusion
</strong>
),
[ProteinImpactType.OTHER]: (
Expand Down

0 comments on commit 2a4f5dc

Please sign in to comment.