@@ -8,7 +8,10 @@ import MutationAssessor from './functionalPrediction/MutationAssesor';
88import Sift from './functionalPrediction/Sift' ;
99import PolyPhen2 from './functionalPrediction/PolyPhen2' ;
1010import AlphaMissense from './functionalPrediction/AlphaMissense' ;
11- import { SHOW_ALPHAMISSENSE } from '../../config/configDefaults' ;
11+ import {
12+ SHOW_ALPHAMISSENSE ,
13+ SHOW_MUTATION_ASSESSOR ,
14+ } from '../../config/configDefaults' ;
1215import Separator from '../Separator' ;
1316import { GENOME_BUILD } from '../../util/SearchUtils' ;
1417
@@ -61,7 +64,6 @@ class FunctionalPrediction extends React.Component<IFunctionalPredictionProps> {
6164 const amPathogenicityScore =
6265 genomeNexusData ?. annotation_summary ?. transcriptConsequenceSummary
6366 ?. alphaMissense ?. score || undefined ;
64-
6567 return {
6668 amClass,
6769 amPathogenicityScore,
@@ -74,29 +76,34 @@ class FunctionalPrediction extends React.Component<IFunctionalPredictionProps> {
7476 }
7577 public render ( ) {
7678 const data = this . getData ( this . props . variantAnnotation ) ;
77- const shouldShowAlphaMissense = SHOW_ALPHAMISSENSE ;
79+ // Mutation Assessor only available in grch37
80+ const shouldShowMutationAssessor =
81+ SHOW_MUTATION_ASSESSOR &&
82+ this . props . genomeBuild === GENOME_BUILD . GRCh37 ;
7883 return (
7984 < div >
8085 < PolyPhen2
8186 polyPhenScore = { data . polyPhenScore }
8287 polyPhenPrediction = { data . polyPhenPrediction }
8388 />
8489 < Separator />
85- < >
86- < MutationAssessor
87- mutationAssessor = { data . mutationAssessor }
88- isCanonicalTranscriptSelected = {
89- this . props . isCanonicalTranscriptSelected
90- }
91- />
92- < Separator />
93- </ >
90+ { shouldShowMutationAssessor && (
91+ < >
92+ < MutationAssessor
93+ mutationAssessor = { data . mutationAssessor }
94+ isCanonicalTranscriptSelected = {
95+ this . props . isCanonicalTranscriptSelected
96+ }
97+ />
98+ < Separator />
99+ </ >
100+ ) }
94101 < Sift
95102 siftScore = { data . siftScore }
96103 siftPrediction = { data . siftPrediction }
97104 />
98105 < Separator />
99- { shouldShowAlphaMissense && (
106+ { SHOW_ALPHAMISSENSE && (
100107 < AlphaMissense
101108 amClass = { data . amClass }
102109 amPathogenicityScore = { data . amPathogenicityScore }
0 commit comments