buildTimeSeries: Generate a list of data matrices

Description Usage Arguments Value Examples

View source: R/ATEN.R

Description

Build the binary time series dataset matrix that used for network inference

Usage

1
buildTimeSeries(network, numSeries, numPoints, noiseLevel, wildtype)

Arguments

network

A network structure generated by generateRandomNKNetwork() in BoolNet

numSeries

The number of time series

numPoints

The number of time points that is covered by each time series

noiseLevel

The level of the nosie. e.g. 0.05 indiciates the value of a gene can be flipped with probability $5%$

wildtype

A vector containing the wildtype expression values. This vector is the initial state.

Value

A list of data matrices containg the expression values of each gene. The row/column corresponds to time point/gene respectively. The second element refers to the input data. The third element refers to the respond data of the target gene.

Examples

1
2
3
4
5
6
ngenes<-10
## k is the maximum number of genes
k<-5
## call generateRandomNKNetwork to generate a Boolean network
net1<-generateRandomNKNetwork(ngenes, k, topology="scale_free",simplify=TRUE,readableFunctions=TRUE)
datalist<-buildTimeSeries(network=net1,numSeries=10,numPoints=10,noiseLevel=0)

ningshi/ATEN documentation built on April 27, 2021, 7:40 a.m.