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_aggregate
Browse files Browse the repository at this point in the history
  • Loading branch information
sqjin committed Jul 19, 2023
1 parent 268b447 commit 7ee94c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/visualization.R
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,7 @@ netVisual_aggregate <- function(object, signaling, signaling.name = NULL, color.
stop("Please run `netAnalysis_computeCentrality` to compute the network centrality scores! ")
}
vertex.weight = object@netP$centr[[signaling]]$indeg
}
if (vertex.weight == "outgoing"){
} else if (vertex.weight == "outgoing"){
if (length(slot(object, "netP")$centr) == 0) {
stop("Please run `netAnalysis_computeCentrality` to compute the network centrality scores! ")
}
Expand Down

0 comments on commit 7ee94c3

Please sign in to comment.