% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/build_graph_from_wgcna.R
\name{build_graph_from_wgcna}
\alias{build_graph_from_wgcna}
\title{Build a graph object from WGCNA result}
\usage{
build_graph_from_wgcna(
  wgcna_tom,
  module = NULL,
  node_annotation = NULL,
  directed = F,
  seed = 1115
)
}
\arguments{
\item{wgcna_tom}{WGCNA TOM matrix.}

\item{module}{Module data frame}

\item{node_annotation}{Data Frame
The annotation file of nodes in network}

\item{directed}{Logical (default: \code{FALSE}).
Whether edges between nodes are directed.}

\item{seed}{nteger (default = 1115).
Random seed for reproducibility.}
}
\value{
An graph object representing the correlation network.
Node/edge attributes from WGCNA TOM matrix (optionally) module labels.
}
\description{
Build a graph object from WGCNA result
}
\examples{
\dontrun{
# `wgcna_tom` is a long-format TOM edge list (from, to, weight)
# produced by `trans_TOM_in_WGCNA()`, and `module` is the WGCNA
# module-assignment data frame with columns (ID, Module).
obj <- build_graph_from_wgcna(
  wgcna_tom = wgcna_tom,
  module    = module
)
}
}
