Description Usage Arguments Value References See Also Examples
A helper function for computing the importance of each prime implicant in a forest
1 | calImportance(input, resp, forest)
|
input |
A dataset matrix containing all gene expression. Each value corresponds to a gene expression of an input gene at a certain time point t. |
resp |
A vector containing the gene expression of the target gene. |
forest |
A set of And/Or trees, each tree is a list |
a vector includes the importances, the order of the importances corresponds to the order of prime implicants in the forest
Müssel, Christoph, Martin Hopfensitz, and Hans A. Kestler. "BoolNet—an R package for generation, reconstruction and analysis of Boolean networks." Bioinformatics 26.10 (2010): 1378-1380.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ##Generate a random Boolean network
net1<-generateRandomNKNetwork(n=10, k=5, topology="scale_free",linkage="uniform",simplify=TRUE,readableFunctions=TRUE)
##Build the time-series data
datalist<-buildTimeSeries(net1,2,5,0)
##Select the first node as target gene and find 5 putative predictive And/Or trees using very simple parameters
datalist[[3]]<-datalist[[3]][,1]
forest<-lapply(rep(1,5),function(x){saalg(datalist,8,NULL,-2,-1,200)})
##To see all prime implicants in the forest
PIs<-unique(unlist(forest,recursive = F))
Importances<-calImportance(datalist[[2]],datalist[[3]],forest)
print(PIs)
print(Importances)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.