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

errro uploading CohortDiagnostics in ShinyApp #14

Closed golozara closed 3 years ago

golozara commented 3 years ago

I am getting the following when I am trying to upload the NCR, Bordeaux and MDH data to ShinyApp. This will then results in empty shells in the ShinyApp

CohortDiagnostics::preMergeDiagnosticsFiles(file.path(outputFolder, "NCR")) . . . Processing table concept_synonym Warning: Table concept_synonym in zip file /Users/asieh.golozar/Desktop/CD/Strata/NCR/Results_NCR.zip has duplicate rows. Removing 19 records.

Processing table incidence_rate Warning: Table incidence_rate in zip file /Users/asieh.golozar/Desktop/CD/Strata/NCR/Results_NCR.zip has duplicate rows. Removing 9108 records.

CohortDiagnostics::launchDiagnosticsExplorer(file.path(outputFolder, "NCR"))

Listening on http://127.0.0.1:4453 Warning: warning: Values are not uniquely identified; output will contain list-cols.

Warning: Error in FUN: invalid argument to unary operator 110: eval 109: eval 108: Ops.data.frame 104: exprFunc [/Users/asieh.golozar/Library/R/3.6/library/CohortDiagnostics/shiny/DiagnosticsExplorer/server.R#353]

keesvanbochove commented 3 years ago

This is likely caused by the fact that all three of these result sets have different cohorts than the Shiny app expects. Bordeaux was run with an older version of the package, and the MDH and NCR cohort definitions are suffering from a character set - related problem (see #17). In order to be able to fix and debug this easier in the future, we are adding metadata to the cohort diagnostics results (see https://github.com/ohdsi-studies/PioneerWatchfulWaiting/pull/15).

keesvanbochove commented 3 years ago

@Anne0507 could you check if an error like this still appears with the latest results files from running v0.3.2?