Learn R Programming

Patterns (version 1.4)

network_random: Generates a network.

Description

Generates a network.

Usage

network_random(
  nb,
  time_label,
  exp,
  init,
  regul,
  min_expr,
  max_expr,
  casc.level
)

Value

A omics_network object.

Arguments

nb

Integer. The number of genes.

time_label

Vector. The time points measurements.

exp

The exponential parameter, as in the barabasi.game function in igraph package.

init

The attractiveness of the vertices with no adjacent edges. See barabasi.game function.

regul

A vector mapping each gene with its number of regulators.

min_expr

Minimum of strength of a non-zero link

max_expr

Maximum of strength of a non-zero link

casc.level

...

Author

Bertrand Frederic, Myriam Maumy-Bertrand.

Examples

Run this code

set.seed(1)
Net<-network_random(
	nb=100,
	time_label=rep(1:4,each=25),
	exp=1,
	init=1,
	regul=round(rexp(100,1))+1,
	min_expr=0.1,
	max_expr=2,
	casc.level=0.4
	)
plot(Net)

Run the code above in your browser using DataLab