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

Fix 9461 mutations api endpoint final #9914

Conversation

jagnathan
Copy link
Collaborator

@jagnathan jagnathan commented Dec 2, 2022

Fix #9461

API Changes:

  • Mutations endpoint has these fields removed:
    • functionalImpactScore
    • fisValue
    • linkXVar
    • linkPdb
    • linkMsa
    • oncotatorDbSnpRs
    • oncotatorUniprotName
  • Mutations endpoint has these fields renamed:
    • oncotatorRefseqMrnaId to refseqMrnaId
    • oncotatorUniprotAccession to uniprotAccession
    • oncotatorCodonChange to codonChange
    • oncotatorProteinPosStart to proteinPosStart
    • oncotatorProteinPosEnd to proteinPosEnd

Schema Changes:

  • mutation_event table removes oncotator fields:
    • ONCOTATOR_DBSNP_RS
    • ONCOTATOR_DBSNP_RS
  • mutation_event table renames oncotator fields:
    • ONCOTATOR_REFSEQ_MRNA_ID to REFSEQ_MRNA_ID
    • ONCOTATOR_CODON_CHANGE to CODON_CHANGE
    • ONCOTATOR_UNIPROT_ACCESSION to UNIPROT_ACCESSION
    • ONCOTATOR_PROTEIN_POS_START to PROTEIN_POS_START
    • ONCOTATOR_PROTEIN_POS_END to PROTEIN_POS_END
  • mutation_event table removes other unnecessary fields:
    • FUNCTIONAL_IMPACT_SCORE
    • FIS_VALUE
    • LINK_XVAR
    • LINK_PDB
    • LINK_MSA

- modified java files to remove unused properties and changes to tests
- db changes, mutationmapper.xml
- Update seed_mini.sql

roll back changes for refseqMrnaId

roll back changes for refseqMrnaId

Update ExtendedMutation.java

Added required property setOncotatorRefseqMrnaId and getOncotatorRefseqMrnaId
Updated more files for removed fields

Remove unused oncotator fields

Remove unused oncotator fields
ONCOTATOR_DBSNP_RS
ONCOTATOR_UNIPROT_ENTRY_NAME

remove fields from sql file

ONCOTATOR_DBSNP_RS and ONCOTATOR_UNIPROT_ENTRY_NAME removal from sql file
db changes in sql for renaming columns
renamed the column prefixes from oncotator to mutation on multiple classes and files
Update testSql.sql

updating testSql for the name change of columns from ONCOTATOR to MUTATION

Update DaoMutation.java

The data files still use the old column prefix of ONCOTATOR instead of MUTATION

Update DaoMutation.java

Update migration.sql

Adding quotes around column names
db changes in sql for renaming columns
renamed the column prefixes from oncotator to mutation on multiple classes and files
Update migration.sql

fix syntax errors in mysql change column

Update migration.sql

fix syntax errors in mysql change column

setting db version

setting db version
Removed Link columns and modified the documentation
@sonarcloud
Copy link

sonarcloud bot commented Dec 2, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 7 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@jagnathan jagnathan requested a review from inodb December 20, 2022 17:13
@jagnathan jagnathan changed the base branch from master to demo-v5.3.0 February 22, 2023 22:38
Copy link
Member

@dippindots dippindots left a comment

Choose a reason for hiding this comment

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

@jagnathan Thanks for making these changes. @inodb could you do a quick final review about changes in this pr?
I just wanted to add a few things about versioning:
We also need to change another two files to make sure DB version is in sync everywhere:

  1. https://github.com/cBioPortal/cbioportal/blob/master/pom.xml#L317
  2. https://github.com/cBioPortal/cbioportal/blob/master/db-scripts/src/main/resources/cgds.sql#L765

And the version should be 2.13.0 based on Database-Versioning

ALTER TABLE `mutation_event` CHANGE COLUMN `ONCOTATOR_UNIPROT_ACCESSION` `MUTATION_UNIPROT_ACCESSION` varchar(64);
ALTER TABLE `mutation_event` CHANGE COLUMN `ONCOTATOR_PROTEIN_POS_START` `MUTATION_PROTEIN_POS_START` int(11);
ALTER TABLE `mutation_event` CHANGE COLUMN `ONCOTATOR_PROTEIN_POS_END` `MUTATION_PROTEIN_POS_END` int(11);
UPDATE `info` SET `DB_SCHEMA_VERSION`="2.12.16";
Copy link
Member

Choose a reason for hiding this comment

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

@jagnathan Based on the database versioning we discussed, we should update the version to 2.13.0: https://github.com/cBioPortal/cbioportal/blob/master/docs/Database-Versioning.md

@sonarcloud
Copy link

sonarcloud bot commented Mar 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@@ -103,16 +103,14 @@ public class MafRecord {
private String maLinkMsa;
private String maLinkPdb;

// Oncotator cols
Copy link
Member

Choose a reason for hiding this comment

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

should we leave this entire MafRecord file as is? Doesn't feel like the oncotator -> maf renaming adds much. Prolly better to leave this for the ticket where we fix the maf parser

Copy link
Member

@inodb inodb Mar 8, 2023

Choose a reason for hiding this comment

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

but if it's easier to keep the current changes, that's fine too

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.

Great! Thanks so much @dippindots and @jagnathan !

@inodb inodb added the cleanup label Mar 8, 2023
@dippindots dippindots merged commit ec2236f into cBioPortal:demo-v5.3.0 Mar 14, 2023
@dippindots dippindots mentioned this pull request Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean up Mutations end point
3 participants