Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export of binary characterization features limited to first 1M records #9

Open
anthonysena opened this issue Aug 20, 2024 · 3 comments

Comments

@anthonysena
Copy link
Collaborator

anthonysena commented Aug 20, 2024

I've discovered a bug whereby the binary characterization results from the study were limited to the first 1 million records. The good news is that you do not need to re-run the study since the full set of results are stored in your strategusWork folder. If you have removed your strategusWork folder, you'll need to recover it (if possible) or worst case run that part of the study again.

I've put together a script that will allow you to re-export the characterization results here: https://github.com/ohdsi-studies/SemaglutideNaion/blob/master/extras/ExportCharacterizationPatch.R. Here are some instructions on how to run the script at your site on the machine used to run the study:

@hmorgancooper
Copy link

Hey Anthony :)

In line 35 there is a hard coded table location
sql <- "SELECT * from main.c_covariates;"

Do I need to edit this line? Also, I don't see any table called c_covariates in the BQ table outputs from running the study

@anthonysena
Copy link
Collaborator Author

Hi @hmorgancooper - good question. Let me provide further details. When the characterization task ran, it writes a SQLite database into the strategusWork folder that contains the full set of results. The bug we encountered (which this patch addresses) aims to export the full set of results from the SQLite DB that is on your file system and not on the server that hosts your OMOP CDM. So the query:

SELECT * from main.c_covariates;

Will run against the SQLite DB and not your OMOP CDM. If you have removed the strategusWork folder, you can re-run the Characterization part of the study to recreate this file and then run the patch to obtain the full set of results. Please let me know if you have any further questions.

@hmorgancooper
Copy link

Hey Anthony,

Thanks! That makes sense! I had changed the connection details to point at our STARR OMOP database so it was searching there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants