-
Notifications
You must be signed in to change notification settings - Fork 140
netAnalysis_river for subset of pathways and order them based on similarity #255
Comments
@jv-20 Have you figure it out? If not, you can source the following codes. #' River plot showing the associations of latent patterns with cell groups and ligand-receptor pairs or signaling pathways #' @importFrom ggalluvial geom_stratum geom_flow to_lodes_form#' @importFrom ggplot2 geom_text scale_x_discrete scale_fill_manual theme ggtitle suppressMessages(require(ggalluvial))res.pattern <- methods::slot(object, slot.name)$pattern[[pattern]] if (is.null(data2)) {
} else {
} |
Hi @sqjin , Many thanks for this. I haven't figured out yet. I will try this and get back. Thanks again Kind regards |
Hi @sqjin
Quick question on
netAnalysis_river
function.I am trying to generate river plot for a set of pathways of interest and would like to order them based on similarity.
netAnalysis_river(cellchat.obj, pattern = "incoming", do.order=TRUE,signaling = pathways_interest)
However, I receive the following error when using do.order=TRUE.
Error in hclust(d, "ave") : NA/NaN/Inf in foreign function call (arg 10)
Would you be able to give some insights on this please?
Thanks
The text was updated successfully, but these errors were encountered: