Skip to contents

Build a pie graph object from a data frame

Usage

build_graph_from_pie(df, node_annotation = NULL, directed = F, seed = 1115)

Arguments

df

Data frame. Edge list with columns from, to, and optionally weight. If weight is absent, an unweighted graph is constructed.

node_annotation

Data Frame The annotation file of nodes in network

directed

Logical (default: FALSE). Whether edges between nodes are directed.

seed

Integer (default = 1115). Random seed for reproducibility.

Value

An graph object representing the correlation network. Node/edge attributes include correlation statistics and (optionally) module labels.

Examples

NULL
#> NULL