simulateNetwork: Simulate Boolean Network

Description Usage Arguments Details Value Examples

View source: R/simulateNetwork.R

Description

Simulates a Boolean network and generates noise of user-defined model preference and paramters.

Usage

1
simulateNetwork(net, n.data, p, obsModel)

Arguments

net

A boolean Network object (specified in BoolNet vernacular) to be simulated

n.data

Length of time-series to simulate

p

Process noise to build into the simulation. Should be 0<p<0.5.

obsModel

Parameters for the chosen observation model.

Details

The simulateNetwork function can simulate many observation models to create observational data. An overvoew of how to use the various types of observation models present in BoolFilter is given below:

Value

X

Original Boolean state trajectory, without observation noise

Y

Observation trajectory

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(p53net_DNAdsb1)

#generate data from poisson observation model
dataPoisson <- simulateNetwork(p53net_DNAdsb1, n.data = 100, p = 0.02, 
                          obsModel = list(type = 'Poisson',
                                          s = 10.875, 
                                          mu = 0.01, 
                                          delta = c(2,2,2,2)))

#generate data from Bernoulli observation model
dataBernoulli <- simulateNetwork(p53net_DNAdsb1, n.data = 100, p = 0.02, 
                          obsModel = list(type = 'Bernoulli',
                                          q = 0.05))

levimcclenny/BoolFilter documentation built on May 21, 2019, 5:11 a.m.