-
Notifications
You must be signed in to change notification settings - Fork 7
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
Do not show needs curation for categorical alterations #417
Conversation
@@ -22,6 +24,10 @@ const NotCuratableBadge: React.FunctionComponent<INotCuratableBadgeProps> = ({ m | |||
const mutationStrings: [string[], string[]] = [[], []]; | |||
for (const name of mutationName.split(',')) { | |||
const trimmedName = name.trim(); | |||
if (Object.values(CategoricalAlterationType).includes(parseAlterationName(trimmedName)[0].alteration as CategoricalAlterationType)) { |
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.
Currently, for non-string mutations, only Oncogenic Mutations
is not curatable. See util method: isMutationEffectCuratable
. Maybe move the excludedMutations arrays out to a constants, so you can use it here?
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.
Ah gotcha, looking at the method, I could just use it directly
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.
LGTM!
* do not show needs curation for categorical alterations * address comments
* do not show needs curation for categorical alterations * address comments
* do not show needs curation for categorical alterations * address comments
resolves https://github.com/oncokb/oncokb-pipeline/issues/517