powered by
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
randomize_datasource_network(datasource, network)
The name of the data source for which the interactions need to be shuffled.
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) # } # NOT RUN { # }
Run the code above in your browser using DataLab