View source: R/construct_random_networks.R
randomize_network | R Documentation |
randomize_network
Randomizes a network of interest by edge swapping to preserve the degree of the nodes
randomize_network(network,output_weighted = FALSE)
network |
A data frame / tibble containing gene-gene interactions (required columns: $from, $to) |
output_weighted |
Indicate whether the output network should be made weighted by assigning a weight of 1 to each interaction. |
A randomized network ($from, $to; and $weight = 1 if output_weighted == TRUE).
## Not run:
random_lr = randomize_network(lr_network)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.