Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Fix a bug in netVisual_diffInteraction
Browse files Browse the repository at this point in the history
  • Loading branch information
sqjin authored Sep 22, 2022
1 parent 7e0e903 commit c982c71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/visualization.R
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,7 @@ netVisual_diffInteraction <- function(object, comparison = c(1,2), measure = c("
df.net$target <- factor(df.net$target, levels = cells.level)
df.net$value[is.na(df.net$value)] <- 0
net <- tapply(df.net[["value"]], list(df.net[["source"]], df.net[["target"]]), sum)
net[is.na(net)] <- 0
}

if (remove.isolate) {
Expand Down

0 comments on commit c982c71

Please sign in to comment.