Skip to content

Commit

Permalink
Update plot_cpdb3.R
Browse files Browse the repository at this point in the history
factor to character
  • Loading branch information
WeberKang authored Dec 24, 2023
1 parent 8b249e8 commit a44dc34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/plot_cpdb3.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ plot_cpdb3 <- function(
)
requireNamespace("SummarizedExperiment")
requireNamespace("SingleCellExperiment")
lr_interactions[, 3] <- as.character(lr_interactions[, 3])
if (is.null(splitby_key)) {
if (any(lr_interactions[, 3] > 0)) {
if (any(is.na(lr_interactions[, 3]))) {
Expand Down

0 comments on commit a44dc34

Please sign in to comment.