Skip to content

Commit b1a0aad

Browse files
committed
Add note on tooltip to indicate this is v4 data
1 parent d6e6364 commit b1a0aad

File tree

4 files changed

+44
-21
lines changed

4 files changed

+44
-21
lines changed

packages/react-variant-view/src/component/functionalPrediction/FunctionalPrediction.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ class FunctionalPrediction extends React.Component<IFunctionalPredictionProps> {
3030
public getData(
3131
genomeNexusData: VariantAnnotation | undefined
3232
): IFunctionalImpactData {
33-
const mutationAssessor =
34-
genomeNexusData && genomeNexusData.mutation_assessor;
33+
const mutationAssessor = genomeNexusData?.mutation_assessor;
3534
const siftScore =
3635
genomeNexusData &&
3736
genomeNexusData.transcript_consequences &&

packages/react-variant-view/src/component/functionalPrediction/MutationAssessor.tsx

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,32 @@ export default class MutationAssessor extends React.Component<
2727
IMutationAssessorProps,
2828
{}
2929
> {
30-
// Change to new url when available
30+
// TODO Change to new url when manuscript is available
3131
// New url will need to be added in tooltip, discrption, "Please refer to the score range here." and "Go to Mutation Assessor"
3232
// private static MUTATION_ASSESSOR_URL: string = 'http://mutationassessor.org/r3/';
3333

3434
private static mutationAssessorText() {
3535
return (
36-
<div style={{ width: 450, height: 110 }}>
36+
<div style={{ width: 450, height: 130 }}>
3737
Mutation Assessor predicts the functional impact of amino-acid
3838
substitutions in proteins, such as mutations discovered in
3939
cancer or missense polymorphisms. The functional impact is
4040
assessed based on evolutionary conservation of the affected
4141
amino acid in protein homologs. The method has been validated on
42-
a large set of disease associated and polymorphic variants
43-
(ClinVar).
42+
a large set of disease associated and polymorphic variants (
43+
<a href="https://www.ncbi.nlm.nih.gov/clinvar/" target="_blank">
44+
ClinVar
45+
</a>
46+
).
47+
<br />
48+
<b>
49+
Mutation Assessor V4 data is now available in the portal!
50+
</b>{' '}
51+
New manuscript is in progress. Click{` `}
52+
<a href="http://mutationassessor.org/r3/" target="_blank">
53+
here
54+
</a>
55+
{` `} to see information about V3 data.
4456
</div>
4557
);
4658
}
@@ -146,14 +158,6 @@ export default class MutationAssessor extends React.Component<
146158

147159
public render() {
148160
let maContent: JSX.Element = <span />;
149-
const dataSource = (
150-
<>
151-
Mutation Assessor&nbsp;
152-
<i className="fas fa-external-link-alt" />
153-
{!this.props.isCanonicalTranscriptSelected && <span> *</span>}
154-
</>
155-
);
156-
157161
if (
158162
this.props.mutationAssessor &&
159163
this.props.mutationAssessor.functionalImpactPrediction != null &&
@@ -168,7 +172,15 @@ export default class MutationAssessor extends React.Component<
168172
return (
169173
<div className={featureTableStyle['feature-table-layout']}>
170174
<div className={featureTableStyle['data-source']}>
171-
{this.mutationAssessorTooltip(<>{dataSource}</>)}
175+
{this.mutationAssessorTooltip(
176+
<>
177+
Mutation Assessor&nbsp;
178+
<i className="fas fa-external-link-alt" />
179+
{!this.props.isCanonicalTranscriptSelected && (
180+
<span> *</span>
181+
)}
182+
</>
183+
)}
172184
</div>
173185
<div>
174186
{this.mutationAssessorTooltip(

src/shared/components/annotation/genomeNexus/MutationAssessor.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default class MutationAssessor extends React.Component<
1919
IMutationAssessorProps,
2020
{}
2121
> {
22-
// Replace to new url when publication available
22+
// TODO Replace to new url when manuscript is available
2323
// static MUTATION_ASSESSOR_URL: string = 'http://mutationassessor.org/r3/';
2424

2525
constructor(props: IMutationAssessorProps) {
@@ -87,8 +87,8 @@ export default class MutationAssessor extends React.Component<
8787
<tr>
8888
<td>Source</td>
8989
<td>
90-
{/* Add link when pubilcation is available */}
91-
MutationAssessor
90+
{/* TODO Add link when manuscript is available */}
91+
Mutation Assessor
9292
</td>
9393
</tr>
9494
<tr>

src/shared/components/mutationTable/column/FunctionalImpactColumnFormatter.tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,14 +305,26 @@ class FunctionalImpactColumnTooltip extends React.Component<
305305

306306
public static mutationAssessorText() {
307307
return (
308-
<div style={{ width: 450, height: 100 }}>
308+
<div style={{ width: 450, height: 130 }}>
309309
Mutation Assessor predicts the functional impact of amino-acid
310310
substitutions in proteins, such as mutations discovered in
311311
cancer or missense polymorphisms. The functional impact is
312312
assessed based on evolutionary conservation of the affected
313313
amino acid in protein homologs. The method has been validated on
314-
a large set of disease associated and polymorphic variants
315-
(ClinVar).
314+
a large set of disease associated and polymorphic variants (
315+
<a href="https://www.ncbi.nlm.nih.gov/clinvar/" target="_blank">
316+
ClinVar
317+
</a>
318+
).
319+
<br />
320+
<b>
321+
Mutation Assessor V4 data is now available in the portal!
322+
</b>{' '}
323+
New manuscript is in progress. Click{` `}
324+
<a href="http://mutationassessor.org/r3/" target="_blank">
325+
here
326+
</a>
327+
{` `} to see information about V3 data.
316328
</div>
317329
);
318330
}

0 commit comments

Comments
 (0)