Learn R Programming

Patterns (version 1.4)

gene_expr_simulation,omics_network-method: Simulates omicsarray data based on a given network.

Description

Simulates omicsarray data based on a given network.

Usage

# S4 method for omics_network
gene_expr_simulation(
  omics_network,
  time_label = 1:4,
  subject = 5,
  peak_level = 100,
  act_time_group = 1:4
)

Value

A omics_array object.

Arguments

omics_network

A omics_network object.

time_label

a vector containing the time labels.

subject

the number of subjects

peak_level

the mean level of peaks.

act_time_group

[NULL] vector ; at which time the groups (defined by sort(unique(group))) are activated ?

Author

Bertrand Frederic, Myriam Maumy-Bertrand.

Examples

Run this code

data(Net)
set.seed(1)

#We simulate gene expressions according to the network Net
Msim<-Patterns::gene_expr_simulation(
	omics_network=Net,
	time_label=rep(1:4,each=25),
	subject=5,
	peak_level=200)
head(Msim)

Run the code above in your browser using DataLab