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 8, 2024
1 parent d6e6364 commit b1a0aad
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ class FunctionalPrediction extends React.Component<IFunctionalPredictionProps> {
public getData(
genomeNexusData: VariantAnnotation | undefined
): IFunctionalImpactData {
const mutationAssessor =
genomeNexusData && genomeNexusData.mutation_assessor;
const mutationAssessor = genomeNexusData?.mutation_assessor;
const siftScore =
genomeNexusData &&
genomeNexusData.transcript_consequences &&
Expand Down
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
// TODO Change to new url when manuscript is 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 progress. 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
// TODO Replace to new url when manuscript is 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
{/* TODO 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 progress. Click{` `}
<a href="http://mutationassessor.org/r3/" target="_blank">
here
</a>
{` `} to see information about V3 data.
</div>
);
}
Expand Down

0 comments on commit b1a0aad

Please sign in to comment.