Skip to content

Commit

Permalink
Update featureHeatmapByCluster.R
Browse files Browse the repository at this point in the history
coerce sparse matrix to normal matrix
  • Loading branch information
derrik-gratz authored Oct 27, 2023
1 parent 20ae4d1 commit a2c6c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/featureHeatmapByCluster.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ featureHeatmapByCluster <- function(obj,
}
DefaultAssay(obj) <- assay
obj <- obj[feats,]
plot_data <- cbind(obj@meta.data, as.data.frame(t(obj[[assay]]@data))) %>%
plot_data <- cbind(obj@meta.data, as.data.frame(t(as.matrix(obj[[assay]]@data)))) %>%
dplyr::group_by(.data[[ cluster_column ]]) %>%
dplyr::summarize_at(.vars = feats, .funs = median) %>%
tibble::remove_rownames() %>%
Expand Down

0 comments on commit a2c6c90

Please sign in to comment.