Skip to content

Commit

Permalink
Remove the workspace column from the table
Browse files Browse the repository at this point in the history
We separated it into workspace namespace and name, so we don't
need the combined string anymore.
  • Loading branch information
amstilp committed Apr 26, 2024
1 parent 3f0b2f2 commit fe2efd4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion write_primed_phenotype_inventory_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ output_table_name = argv$output_table_name

id_column_name = quo_name(paste0(output_table_name, "_id"))
results <- results %>%
# We separated workspace into namespace and name, so we don't need it anymore.
select(-workspace) %>%
select(
# Set the id column appropriately, using the output table name.
!!id_column_name := phenotype_harmonized_id,
Expand All @@ -81,7 +83,7 @@ results <- results %>%
n_rows,
n_subjects,
file_path,
everything()
everything(),
)

# Delete the table before writing the new data, if it already exists.
Expand Down

0 comments on commit fe2efd4

Please sign in to comment.