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

Db migration: remove gene length #6312

Merged
merged 4 commits into from
Jun 26, 2019
Merged

Conversation

inodb
Copy link
Member

@inodb inodb commented Jun 21, 2019

This information is stored in Genome Nexus. We don't need it in
cBioPortal anymore.

Fix #6308

  • Verify that it is no longer used in frontend? (it was used in Mutated Genes tab of study view)
  • Remove LENGTH in gene table
  • Remove it from API
  • Remove it from import code

@inodb inodb requested a review from sheridancbio June 21, 2019 21:22
@inodb
Copy link
Member Author

inodb commented Jun 21, 2019

@sheridancbio i forgot what the rules are regarding schema versioning. Where can I find that again?

@inodb inodb force-pushed the remove-gene-length branch 6 times, most recently from 411c9bc to 04db2e6 Compare June 25, 2019 18:32
@inodb inodb requested review from pieterlukasse, pvannierop and ao508 and removed request for sheridancbio June 25, 2019 18:33
@inodb inodb force-pushed the remove-gene-length branch 5 times, most recently from a327ad8 to 38228fb Compare June 25, 2019 20:05
@@ -1,259 +0,0 @@
/*
Copy link
Member Author

Choose a reason for hiding this comment

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

don't think this is used anymore either, all pfam data is in genome nexus

@@ -362,15 +362,6 @@
<url-pattern>/omaRedirect.do</url-pattern>
</servlet-mapping>

<servlet>
Copy link
Member Author

Choose a reason for hiding this comment

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

don't think this is used anymore either, all pfam data is in genome nexus

This information is stored in Genome Nexus. We don't need it in
cBioPortal anymore.

Fix cBioPortal#6308
Copy link
Member

@pieterlukasse pieterlukasse left a comment

Choose a reason for hiding this comment

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

thanks @inodb . Happy to see some cleanup taking place! Looks good to me 👍

Only one small request: please also update the documentation here https://github.com/cBioPortal/cbioportal/blob/master/docs/Updating-gene-and-gene_alias-tables.md#mysql-steps (step 5).

@inodb
Copy link
Member Author

inodb commented Jun 26, 2019

Thanks @pieterlukasse ! Good catch! Updated

That reminds me we might have to do a mouse version of genome nexus:

genome-nexus/genome-nexus-importer#22

I don't think mouse support for cBioPortal will work currently:

#6326

@inodb inodb requested a review from pieterlukasse June 26, 2019 14:54
Copy link
Member

@pieterlukasse pieterlukasse left a comment

Choose a reason for hiding this comment

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

thanks @inodb! Good point regarding mouse support. Thanks for logging the issue 👍

Removing gene length is a pretty substantial change
Copy link
Contributor

@ao508 ao508 left a comment

Choose a reason for hiding this comment

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

code looks good, just 2 minor requests:

  • remove var declarations for TEST_LENGTH* in test classes (see comments)
  • update usage statement in documentation

docs/Updating-gene-and-gene_alias-tables.md Outdated Show resolved Hide resolved
@@ -132,7 +130,6 @@ public void getGene() throws Exception {
gene.setHugoGeneSymbol(HUGO_GENE_SYMBOL_1);
gene.setType(TYPE_1);
gene.setCytoband(CYTOBAND_1);
gene.setLength(LENGTH_1);
Copy link
Contributor

Choose a reason for hiding this comment

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

same comment here about removing the LENGTH* vars

@@ -283,7 +283,6 @@ public void getMutationsInMolecularProfileBySampleListIdDetailedProjection() thr
.andExpect(MockMvcResultMatchers.jsonPath("$[0].gene.hugoGeneSymbol").value(TEST_HUGO_GENE_SYMBOL_1))
.andExpect(MockMvcResultMatchers.jsonPath("$[0].gene.type").value(TEST_TYPE_1))
.andExpect(MockMvcResultMatchers.jsonPath("$[0].gene.cytoband").value(TEST_CYTOBAND_1))
Copy link
Contributor

Choose a reason for hiding this comment

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

same comment here about removing the TEST_LENGTH* vars

@inodb inodb requested a review from ao508 June 26, 2019 19:20
@inodb
Copy link
Member Author

inodb commented Jun 26, 2019

@ao508 Thanks for catching those ! Updated the PR

Copy link
Contributor

@ao508 ao508 left a comment

Choose a reason for hiding this comment

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

approving changes

@inodb inodb merged commit 31eaef8 into cBioPortal:rc Jun 26, 2019
@pvannierop
Copy link
Contributor

pvannierop commented Jun 27, 2019

@inodb Gene length appears to be used in the lollipop plot and oncoprint components so I do not think this can be removed from GN.

  private get proteinLength(): number {
        return (this.props.store.allTranscripts.result &&
            this.props.store.activeTranscript &&
            this.props.store.transcriptsByTranscriptId[this.props.store.activeTranscript] &&
            this.props.store.transcriptsByTranscriptId[this.props.store.activeTranscript].proteinLength) ||
            Math.round(this.props.store.gene.length / 3);
    }
function formatGeneticTrackSublabel(oqlFilter: UnflattenedOQLLineFilterOutput<object>): string {
    if (isMergedTrackFilter(oqlFilter)) {
        return ""; // no oql sublabel for merged tracks - too cluttered
    } else {
        return oqlFilter.oql_line.substring(oqlFilter.gene.length).replace(";",""); // get rid of gene in beginning of OQL line, and semicolon at end
    }
}

@pvannierop
Copy link
Contributor

I misunderstood the idea of the PR. It was remapping of gene.length from cBP-db to GN. Never mind my comment.

@sheridancbio
Copy link
Contributor

Hi @inodb ... here were old rules we adopted for db schema version number assignment. I'm not sure what our current practice is. https://github.com/cBioPortal/cbioportal/wiki/EP-Review-Changes-to-Database-Schema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants