-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add alphaMissense in functional impact column #5042
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for cbioportalfrontend ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Just suggested a few minor changes.
arrowEl.style.display = 'none'; | ||
} | ||
|
||
export const AlphaMissense_URL: string = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need an underscore here?
export const AlphaMissense_URL: string = | |
export const AlphaMissenseURL: string = |
interface IFunctionalImpactColumnTooltipState { | ||
active: 'mutationAssessor' | 'sift' | 'polyPhen2'; | ||
} | ||
|
||
enum FunctionalImpactColumnsName { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big deal but FunctionalImpactColumnName
might be a better name
legend() { | ||
const showMutationAssessor = shouldShowMutationAssessor(); | ||
// Each line in the legend table uses the same style (mutationAssessorStyles) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe rename mutationAssessorStyles
to functionalImpactStyles
or something like that?
FunctionalImpactColumnTooltip.siftText()} | ||
{this.state.active === 'polyPhen2' && | ||
FunctionalImpactColumnTooltip.polyPhen2Text()} | ||
{this.state.active === |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use mobx here instead of react state? I think we used to avoid built-in react state in favor of mobx. Not sure if we are still following that practice though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awsome work! Thank you so much for getting this done!
Add alphaMissense in functional impact column. There are three discrete categories: 'benign', 'pathogenic', or 'ambiguous'. These are derived using the following thresholds: 'benign' if alphamissense_pathogenicity < 0.34; 'pathogenic' if alphamissense_pathogenicity > 0.564; and 'ambiguous' otherwise (category assignments are based on their website)
Test:
link
Add
Functional Impact
column:Hover over AlphaMissense dots, tooltip shows more information:
Download: