Skip to contents

Create and plot an interactive network that summarize how cell-types and their interactions are over-represented.

Usage

BuildNetwork(
  object,
  network_type = c("ORA_network"),
  layout_type = c("bipartite", "conventional"),
  abbreviation_table = NULL
)

# S4 method for scDiffCom
BuildNetwork(
  object,
  network_type = c("ORA_network"),
  layout_type = c("bipartite", "conventional"),
  abbreviation_table = NULL
)

Arguments

object

scDiffCom object

network_type

Type of network to display. Currently, only ORA_network (default) is supported.

layout_type

Layout of the network to display. Can either be "bipartite" (default) or "conventional".

abbreviation_table

Table with abbreviations for the cell types present in the object. If NULL (default), full names of the cell-types are displayed. Otherwise, it must be a data.frame or data.table with exactly two columns with names ORIGINAL_CELLTYPE and ABBR_CELLTYPE.

Value

A visNetwork object.