Description Usage Arguments Value See Also Examples
Given a time-series data, try to find the important prime implicants that are predictive for the gene expression level of a target gene
1 | findPIs(B, datalist, datasamples, parameters, seed)
|
B |
The number of And/Or trees that used for generating a set of new prime implicants |
datalist |
A data list generated by buildTimeSeries or bootstrap |
datasamples |
The number of nodes in the Boolean network |
parameters |
A vector includes 6 parameters; startT, endT and maxIter refer to the upper, lower temperature (on a log10 scale) and the maximum number of iterations used in simulated annealing algorithm maxK represents the maximum number of input nodes of the target node (the maximum number of leaves in an And/Or tree), it is required when prior knowledge, e.g. the in-degree is 8, is available. If such information is not known, then it can be set as a very large value, e.g. '.Machine$integer.max' rate represents how many non-important PIs are removed in each recursion. nodes represents the number of node in the Boolean network |
seed |
This seed is made for parLapply to reproduce the results |
A set of important prime implicants. Or if only a few prime implicants are found, then a final Boolean function will be generated afterwards.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## ngenes is the number of nodes in a Boolean network
library(BoolNet)
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)
## build the time-series data
datalist<-buildTimeSeries(network=net1,numSeries=10,numPoints=10,noiseLevel=0)
## select a target gene
target<-3
## Generate the bootstrap samples and oob samples according to the time-series data
datasamples<-bootstrap(datalist)
## respinbag and respoutbag save the expression values of the target node
datasamples$respinbag<-matrix(datasamples$respinbag[,target])
datasamples$respoutbag<-matrix(datasamples$respoutbag[,target])
## Initilize the parameters
parameters<-c(startT=2,endT=-1,maxIter=5000,maxK=8,rate=0.2,nodes=ngenes)
## Try to find the prime implicants
PIs<-findPIs(B=10,datalist,datasamples,parameters,123)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.