PediatricOpenTargets / OpenPedCan-api

2 stars 7 forks source link

Build CNV Database #81

Open kelseykeith opened 1 year ago

kelseykeith commented 1 year ago

Build CNV database schema and tables with the correct structure for the Evidence Plot proposed in PediatricOpenTargets/ticket-tracker#288. This ticket is heavily based off the thorough example @logstar wrote for building the methylation database schema in PedatricOpenTargets/OpenPedCan-api#69.

Adding a CNV Database Schema

Add new copy number variant (CNV) database schema, using any appropriate name, to store all CNV tables and to avoid table name collisions with existing tables in bulk_expression schema. Following are the steps to add in a new dna_methylation schema:

Adding CNV Tables

Add new CNV tables to store CNV results that are required to generate plots and tables for MTP. The DNA methylation tables can have any appropriate names, and the following description uses dna_methylation_summary as an example table name. Following are the steps to add a new dna_methylation_summary table:

The updated database building procedure can be tested using ./db/build_db.sh.