Skip to contents

Create a bipartite graph showing ligand-receptor pairs between two clusters.

Usage

PlotLRPairs(
  x,
  sending,
  target,
  top_n = 20,
  rank_by = c("specificity", "mean", "sum"),
  show_weight = TRUE,
  title = NULL
)

Arguments

x

NOVAResult object

sending

Sending cluster name

target

Target cluster name

top_n

Number of top pairs to show

rank_by

Ranking metric: "specificity", "mean", "sum"

show_weight

Show edge weights

title

Plot title

Value

ggplot object

Examples

if (FALSE) { # \dontrun{
PlotLRPairs(result, sending = "T_cells", target = "Macrophages", top_n = 20)
} # }