draw_network: Interactive network view

View source: R/fct_network_inference.R

draw_networkR Documentation

Interactive network view

Description

Visualize the GRN with regulators as green square nodes, and targets as gray discs.

Usage

draw_network(nodes, edges)

Arguments

nodes

dataframe containing nodes, from DIANE::network_data()$nodes

edges

dataframe containing edges, from DIANE::network_data()$edges

Examples

## Not run: 
data("abiotic_stresses")
data("regulators_per_organism")
genes <- get_locus(abiotic_stresses$heat_DEGs)
# mat was inferred using the function network_inference
mat <- abiotic_stresses$heat_DEGs_regulatory_links
network <- DIANE::network_thresholding(mat, n_edges = length(genes))
data <- network_data(network, regulators_per_organism[["Arabidopsis thaliana"]])
DIANE::draw_network(data$nodes, data$edges)
## End(Not run)

OceaneCsn/DIANE documentation built on Jan. 10, 2024, 6:43 p.m.