Skip to content

Commit

Permalink
Update methods.R
Browse files Browse the repository at this point in the history
  • Loading branch information
Biomiha authored Nov 3, 2023
1 parent aa97269 commit 767b2b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ setMethod("aggregate_cells", "SingleCellExperiment", function(.data,
aggregate_sce_fun <- function(sce) {
aggregated_vals <- assays(altExps(sce)[[selected_exp]])[selected_assays$assay_name] |>
as.list() |>
set_names(selected_assays$assay_id) |>
purrr::set_names(selected_assays$assay_id) |>
map(.f = \(.list) aggregation_function(.list))
map(.x = seq_along(aggregated_vals), \(.num) enframe(x = aggregated_vals[[.num]], name = ".feature", value = selected_assays$assay_id[[.num]])) |>
suppressMessages(reduce(full_join))
Expand Down

0 comments on commit 767b2b5

Please sign in to comment.