Git Product home page Git Product logo

Comments (2)

oltionchampari avatar oltionchampari commented on September 23, 2024

Current status :

  • Alembic has been integrated using the extension point tdp-sql-database-migration.
  • We have extracted the schema from the old ordino postgres10-alpine database and the new postgres12.1 ordino database with the new data.
  • We are in the process of extracting a diff from the old and the new schema in order to update the schema on the old ordino database without deleting any data.
  • Currently using a tool called pgCodeKeeper to extract the diff and compose a migration script.
  • In the process of testing said script to make sure it just alters the schema without deleting any data on the target db.

schema

from tdp_publicdb.

thinkh avatar thinkh commented on September 23, 2024

We discovered that a diff/upgrade from hg19 to hg38 would be too complex. That's why we will add only the missing table/columns for the hg19 to run with the newest SQL queries in Python. For now only the integration of HLA Type, MSI is considered (see Caleydo/tdp_bi_bioinfodb#63).

Add a alembic revision with the follwing content:

  • upgrade
    1. create tables microsatelliteinstabilityview, mutationalburden
    2. alter/replace the tdp_cellline view
  • downgrade
    1. alter/replace the with the old tdp_cellline view
    2. remove tables microsatelliteinstabilityview, mutationalburden

Important: We only need to run this revision for hg19 and we must not run it on hg38! Manually create a table public._h19_marker only for hg19 and check before upgrade and downgrade if this table exists.

Note that the table hla_a_type (from h38) is already available as view in hg19, so no table needs to be created during the migration.

from tdp_publicdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.