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]: `find_db_tablename()` does not identify `_subset` tables #86

Closed loffleraSMH closed 6 months ago

loffleraSMH commented 6 months ago

Please identify the affected function: find_db_tablename()

The current version of this function fails to identify tables on HPC4Health due to the fact that datacut tables use the following convention "tablename_subset", however, the following line of code is missing the underscore:

res <- table_names[table_names %in% c(table, paste0(table, "subset"))]

The correct version should be this:

res <- table_names[table_names %in% c(table, paste0(table, "_subset"))]