View source: R/construct_random_networks.R
randomize_datasource_network | R Documentation |
randomize_datasource_network
Randomizes a network of a data source of interest by edge swapping to preserve the degree of the nodes.
randomize_datasource_network(datasource, network)
datasource |
The name of the data source for which the interactions need to be shuffled. |
network |
A data frame / tibble containing gene-gene interactions (required columns: $from, $to, $source) |
A randomized network ($from, $to, $source)
## Not run:
datasource_lr = lr_network$source[1]
lr_randomized_source = randomize_datasource_network(datasource_lr, lr_network)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.