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

Dont include CNA gain or hetloss when querying DRIVER in OQL #3150

Merged
merged 2 commits into from
Apr 16, 2020

Conversation

adamabeshouse
Copy link
Contributor

@adamabeshouse adamabeshouse commented Apr 14, 2020

Fixes cBioPortal/cbioportal#7376

When querying EGFR: DRIVER

From:

image

to:

Screen Shot 2020-04-16 at 9 47 48 AM

Copy link
Member

@inodb inodb left a comment

Choose a reason for hiding this comment

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

Solve the issue reported cBioPortal/cbioportal#7376

@@ -1,21 +1,111 @@
/* eslint camelcase: "off" */
Copy link
Member

Choose a reason for hiding this comment

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

@adamabeshouse what's the main change here - adding types (js -> ts)? Anything else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that plus just the logic change I just indicated below

@@ -1,83 +0,0 @@
//export function filterCBioPortalWebServiceData(oql_query, data, opt_default_oql, opt_by_oql_line, opt_mark_oql_regulation_direction) {
Copy link
Member

Choose a reason for hiding this comment

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

@adamabeshouse why can this be removed now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we no longer need a type declaration file because the actual file is now in typescript. before, this served as like a typescript interface.

);
const cnaValue = accessors.cna(datum);
datumWanted =
cnaValue !== 'gain' && // dont include gains or hetloss here
Copy link
Contributor Author

Choose a reason for hiding this comment

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

only logic change is here @inodb

private isMutation(d: Datum): d is Mutation {
return (
this.molecularAlterationType(d.molecularProfileId) ===
'MUTATION_EXTENDED'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't we have this in enum somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, good catch, I was just copy pasting code here

Abeshouse, Adam A./Sloan Kettering Institute added 2 commits April 16, 2020 14:04
Signed-off-by: Abeshouse, Adam A./Sloan Kettering Institute <abeshoua@mskcc.org>
Signed-off-by: Abeshouse, Adam A./Sloan Kettering Institute <abeshoua@mskcc.org>
@adamabeshouse adamabeshouse merged commit e74b99a into cBioPortal:master Apr 16, 2020
@adamabeshouse adamabeshouse deleted the oql-driver branch April 16, 2020 19:05
Copy link
Member

@jjgao jjgao left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks, @adamabeshouse

inodb pushed a commit to inodb/cbioportal-frontend that referenced this pull request Jan 12, 2022
Dont include CNA gain or hetloss when querying DRIVER in OQL

Former-commit-id: e74b99a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants