Skip to content

Commit

Permalink
Update plot_cpdb_heatmap.R
Browse files Browse the repository at this point in the history
  • Loading branch information
zktuong committed Feb 17, 2024
1 parent 3689d07 commit 2d1a536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot_cpdb_heatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ plot_cpdb_heatmap <- function(pvals, cell_types = NULL, degs_analysis = FALSE, l
all_intr <- t(all_intr[, -c(1:col_start - 1)])
colnames(all_intr) <- intr_pairs
if (is.null(cell_types)) {
cell_types <- sort(unique(unlist(strsplit(colnames(all_intr)[col_start:ncol(all_intr)],
cell_types <- sort(unique(unlist(strsplit(colnames(pvals)[col_start:ncol(pvals)],
paste0("\\", DEFAULT_CPDB_SEP)))))
}
cell_types_comb <- apply(expand.grid(cell_types, cell_types), 1, function(z) {
Expand Down

0 comments on commit 2d1a536

Please sign in to comment.