ohdsi-studies / PioneerWatchfulWaiting

This study is part of the joint PIONEER - EHDEN - OHDSI studyathon in March 2021, and aims to advance understanding of clinical management and outcomes of watchful waiting in prostate cancer.
Apache License 2.0
7 stars 18 forks source link

Shiny app v0.4.4 - cohort characterization & cohort comparison empty #89

Closed bdemeulder closed 3 years ago

bdemeulder commented 3 years ago

The tables in cohort char and compare cohort char are empty in the newest version of the package, using the PreMerge data available in teams.

Shiny app 04102021

The error says "the replacement table has 1 line, the replaced table as 0".

Attaching traceback as well. Shiny app 04102021- traceback ll

keesvanbochove commented 3 years ago

Looks like this is caused by https://github.com/ohdsi-studies/PioneerWatchfulWaiting/commit/d865b1984a790da3b3498f500c5a5362c1578be0, fread sees the covariateId column as double while read.csv interpreted as string. As a result global.r:139 no longer works. Possible fix: covIdsAsString <- as.character(covariate$covariateId) covariate$windowId <- as.numeric(substr(covIdsAsString, nchar(covIdsAsString), nchar(covIdsAsString)))