Skip to content

Commit

Permalink
Merge pull request #365 from monarch-initiative/364-fix-error-in-nami…
Browse files Browse the repository at this point in the history
…ng-columns-to-drop-from-table-in-benchmarking

Fix error in dropping columns in benchmarking db
  • Loading branch information
yaseminbridges authored Oct 20, 2024
2 parents 428c571 + fd3c36e commit 97f7eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pheval/analyse/generate_summary_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def create_comparison_table(
table_name (str): Name of the table to extract ranks from
"""
connector.drop_table(comparison_table_name)
excluded_columns = (", ".join(drop_columns), "identifier") if drop_columns else ("identifier",)
excluded_columns = tuple(drop_columns + ["identifier"]) if drop_columns else ("identifier",)
connector.conn.execute(
f'CREATE TABLE "{comparison_table_name}" AS SELECT * '
f"EXCLUDE {excluded_columns} FROM {table_name}"
Expand Down

0 comments on commit 97f7eb0

Please sign in to comment.