Skip to content

Commit

Permalink
Add note on tooltip to indicate this is v4 data
Browse files Browse the repository at this point in the history
  • Loading branch information
leexgh committed Oct 3, 2024
1 parent 8ab1fcb commit f8c2e98
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,32 @@ export default class MutationAssessor extends React.Component<
IMutationAssessorProps,
{}
> {
// Change to new url when available
// Change to new url when manuscript available
// New url will need to be added in tooltip, discrption, "Please refer to the score range here." and "Go to Mutation Assessor"
// private static MUTATION_ASSESSOR_URL: string = 'http://mutationassessor.org/r3/';

private static mutationAssessorText() {
return (
<div style={{ width: 450, height: 110 }}>
<div style={{ width: 450, height: 130 }}>
Mutation Assessor predicts the functional impact of amino-acid
substitutions in proteins, such as mutations discovered in
cancer or missense polymorphisms. The functional impact is
assessed based on evolutionary conservation of the affected
amino acid in protein homologs. The method has been validated on
a large set of disease associated and polymorphic variants
(ClinVar).
a large set of disease associated and polymorphic variants (
<a href="https://www.ncbi.nlm.nih.gov/clinvar/" target="_blank">
ClinVar
</a>
).
<br />
<b>
Mutation Assessor V4 data is now available in the portal!
</b>{' '}
New manuscript is in preparation. Click{` `}
<a href="http://mutationassessor.org/r3/" target="_blank">
here
</a>
{` `} to see information about V3 data.
</div>
);
}
Expand Down Expand Up @@ -146,14 +158,6 @@ export default class MutationAssessor extends React.Component<

public render() {
let maContent: JSX.Element = <span />;
const dataSource = (
<>
Mutation Assessor&nbsp;
<i className="fas fa-external-link-alt" />
{!this.props.isCanonicalTranscriptSelected && <span> *</span>}
</>
);

if (
this.props.mutationAssessor &&
this.props.mutationAssessor.functionalImpactPrediction != null &&
Expand All @@ -168,7 +172,15 @@ export default class MutationAssessor extends React.Component<
return (
<div className={featureTableStyle['feature-table-layout']}>
<div className={featureTableStyle['data-source']}>
{this.mutationAssessorTooltip(<>{dataSource}</>)}
{this.mutationAssessorTooltip(
<>
Mutation Assessor&nbsp;
<i className="fas fa-external-link-alt" />
{!this.props.isCanonicalTranscriptSelected && (
<span> *</span>
)}
</>
)}
</div>
<div>
{this.mutationAssessorTooltip(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class MutationAssessor extends React.Component<
IMutationAssessorProps,
{}
> {
// Replace to new url when publication available
// Replace to new url when manuscript available
// static MUTATION_ASSESSOR_URL: string = 'http://mutationassessor.org/r3/';

constructor(props: IMutationAssessorProps) {
Expand Down Expand Up @@ -87,8 +87,8 @@ export default class MutationAssessor extends React.Component<
<tr>
<td>Source</td>
<td>
{/* Add link when pubilcation is available */}
MutationAssessor
{/* Add link when manuscript is available */}
Mutation Assessor
</td>
</tr>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,26 @@ class FunctionalImpactColumnTooltip extends React.Component<

public static mutationAssessorText() {
return (
<div style={{ width: 450, height: 100 }}>
<div style={{ width: 450, height: 130 }}>
Mutation Assessor predicts the functional impact of amino-acid
substitutions in proteins, such as mutations discovered in
cancer or missense polymorphisms. The functional impact is
assessed based on evolutionary conservation of the affected
amino acid in protein homologs. The method has been validated on
a large set of disease associated and polymorphic variants
(ClinVar).
a large set of disease associated and polymorphic variants (
<a href="https://www.ncbi.nlm.nih.gov/clinvar/" target="_blank">
ClinVar
</a>
).
<br />
<b>
Mutation Assessor V4 data is now available in the portal!
</b>{' '}
New manuscript is in preparation. Click{` `}
<a href="http://mutationassessor.org/r3/" target="_blank">
here
</a>
{` `} to see information about V3 data.
</div>
);
}
Expand Down

0 comments on commit f8c2e98

Please sign in to comment.