Skip to content

Commit

Permalink
improved mutation type mappings (fixed issue cBioPortal#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
onursumer committed Nov 2, 2016
1 parent 7f82661 commit b73b502
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/js/util/MutationViewsUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,19 @@ var MutationViewsUtil = (function()
style: "fusion",
mainType: "other",
priority: 10},
silent: {label: "Silent",
longName: "Silent",
style: "other_mutation",
mainType: "other",
priority: 11},
// this
default: {label: "Other",
longName: "Other",
style: "other_mutation",
mainType: "other",
priority: 11},
// mutations mapped to "other" will be labelled
// with their original data value
other: {style: "other_mutation",
mainType: "other",
priority: 11}
Expand All @@ -126,19 +139,25 @@ var MutationViewsUtil = (function()
"nonsense_mutation": _mutationStyleMap.nonsense,
"nonsense": _mutationStyleMap.nonsense,
"stopgain_snv": _mutationStyleMap.nonsense,
"stop_gained": _mutationStyleMap.nonsense,
"splice_site": _mutationStyleMap.splice_site,
"splice": _mutationStyleMap.splice_site,
"splice site": _mutationStyleMap.splice_site,
"splicing": _mutationStyleMap.splice_site,
"splice_site_snp": _mutationStyleMap.splice_site,
"splice_site_del": _mutationStyleMap.splice_site,
"splice_site_indel": _mutationStyleMap.splice_site,
"splice_region_variant": _mutationStyleMap.splice_site,
"translation_start_site": _mutationStyleMap.nonstart,
"initiator_codon_variant": _mutationStyleMap.nonstart,
"start_codon_snp": _mutationStyleMap.nonstart,
"start_codon_del": _mutationStyleMap.nonstart,
"nonstop_mutation": _mutationStyleMap.nonstop,
"stop_lost": _mutationStyleMap.nonstop,
"in_frame_del": _mutationStyleMap.in_frame_del,
"in_frame_deletion": _mutationStyleMap.in_frame_del,
"in_frame_ins": _mutationStyleMap.in_frame_ins,
"in_frame_insertion": _mutationStyleMap.in_frame_ins,
"indel": _mutationStyleMap.in_frame_del,
"nonframeshift_deletion": _mutationStyleMap.inframe,
"nonframeshift": _mutationStyleMap.inframe,
Expand All @@ -147,8 +166,12 @@ var MutationViewsUtil = (function()
"targeted_region": _mutationStyleMap.inframe,
"inframe": _mutationStyleMap.inframe,
"truncating": _mutationStyleMap.truncating,
"feature_truncation": _mutationStyleMap.truncating,
"fusion": _mutationStyleMap.fusion,
"other": _mutationStyleMap.other
"silent": _mutationStyleMap.silent,
"synonymous_variant": _mutationStyleMap.silent,
"any": _mutationStyleMap.default,
"other": _mutationStyleMap.default
};

/**
Expand Down

0 comments on commit b73b502

Please sign in to comment.