randomize_net: Randomize a metabolic network edge list by randomly sampling...

View source: R/shuffle_network.R View source: R/core_functions.R

randomize_netR Documentation

Randomize a metabolic network edge list by randomly sampling 2 edges and if it works, switching products

Description

Randomly sample 2 edges and if it works, switch products

Usage

randomize_net(netw, n_reps)

randomize_net(netw, n_reps)

Arguments

netw

edge list network

n_reps

number of times to successfully sample and switch

Value

Network edge list in the same format with the same compounds and degree distribution, but with randomized edges

randomized edge list

Examples

randomize_net(edge_list, 3000)
randomize_net(allnet1, 1000)

borenstein-lab/mimosa2 documentation built on Dec. 19, 2024, 12:44 a.m.