FINNGEN / CohortOperationsViewer

Other
0 stars 0 forks source link

Analysis: CodeWAS: Viewer #23

Closed javier-gracia-tabuenca-tuni closed 5 months ago

javier-gracia-tabuenca-tuni commented 6 months ago

duplicate codes from timeCodeWas

replace module to visualize timeCodeWAS with a new module for visualize codeWAS

Visualization can take code from https://github.com/tbilab/meToolkit more info https://prod.tbilab.org/phewas_me_info/A_phewasME_in_depth_intro.html demo https://prod.tbilab.org/phewas_me/

Example of a zip with codeWAS data test_codeWAS.zip

it has 3 tables that may be used, these follow description similart to explained in https://prod.tbilab.org/phewas_me

i made these table to fit what the phewas_me may be using, these can change later, or we can make it to what we need

javier-gracia-tabuenca-tuni commented 6 months ago

i made the initial code only thing missing is to format the raw table

javier-gracia-tabuenca-tuni commented 6 months ago

there is branch 23-analysis-codewas-viewer with some changes already move to the branch launch the app import test file https://github.com/FINNGEN/CohortOperationsViewer/blob/23-analysis-codewas-viewer/tests/testthat/testdata/codeWAS/eunomia_asthmaVSasthmaControls_CodeWASSqlite.zip navigate to 'codeWAS' menu

there is the raw table image

this is rendered at this point in code https://github.com/FINNGEN/CohortOperationsViewer/blob/dfcb400041c536575dd611019e67f5cae5ae4c28/R/mod_CodeWASVisualisation.R#L102

javier-gracia-tabuenca-tuni commented 6 months ago

TODO:

javier-gracia-tabuenca-tuni commented 6 months ago

@mpreeve looking at the picture do you have more filters to add ?

javier-gracia-tabuenca-tuni commented 6 months ago

for reference these are the filter in CohortDiagnostics for similar data image

javier-gracia-tabuenca-tuni commented 6 months ago

Columns in this order

javier-gracia-tabuenca-tuni commented 6 months ago

Filters ,

siirtola commented 5 months ago

Some column names had to be shortened, but otherwise this should be working now.