GEMINI-Medicine / Rgemini

A custom R package that provides a variety of functions to perform data analyses with GEMINI data
https://gemini-medicine.github.io/Rgemini/
Other
3 stars 0 forks source link

[BUG]: `loop_mlaps ()` does not work on HPC4Health #96

Closed loffleraSMH closed 3 months ago

loffleraSMH commented 4 months ago

Affected function: loop_mlaps ()

The loop_mlaps() function currently doesn't run on HPC4Health due to hard-coding of admdad table in one of the queries, which fails because the admdad table is typically called admdad_subset in HPC4Health datacuts:

Screen Shot 2024-03-16 at 1 44 46 PM

This can be fixed by using the find_db_tabelname() function to automatically identify the name of the admdad table in a given DB version. Examples of how to do this can be found in the readmission function.

Developers/reviewers working on this issue should verify that the implemented solution resolves the issue on HPC4Health before merging the updated code. If you do not have HPC4Health access, please reach out to a team member with access (e.g., Anne, Vaakesan, Bijun, Trong) who can test the code for you.