Skip to content
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

Merged
merged 2 commits into from
Aug 16, 2024

Conversation

bprize15
Copy link

@bprize15 bprize15 requested a review from calvinlu3 August 15, 2024 15:52
@@ -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)) {
Copy link
Contributor

@calvinlu3 calvinlu3 Aug 15, 2024

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?

Copy link
Author

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

@bprize15 bprize15 requested a review from calvinlu3 August 15, 2024 20:18
@calvinlu3 calvinlu3 added the fix Fix tag for release label Aug 15, 2024
Copy link
Contributor

@calvinlu3 calvinlu3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@zhx828 zhx828 changed the title do not show needs curation for categorical alterations Do not show needs curation for categorical alterations Aug 15, 2024
@bprize15 bprize15 merged commit ccdb0cd into oncokb:rc Aug 16, 2024
2 checks passed
@bprize15 bprize15 deleted the fix-not-curatable-badge branch August 16, 2024 13:32
jfkonecn pushed a commit to jfkonecn/oncokb-transcript that referenced this pull request Aug 29, 2024
* do not show needs curation for categorical alterations

* address comments
jfkonecn pushed a commit to jfkonecn/oncokb-transcript that referenced this pull request Sep 17, 2024
* do not show needs curation for categorical alterations

* address comments
jfkonecn pushed a commit to jfkonecn/oncokb-transcript that referenced this pull request Sep 23, 2024
* do not show needs curation for categorical alterations

* address comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Fix tag for release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants