Description Usage Arguments Value References Examples
Derive importance score for models of class iJRF based on one permuted data set.
1 2 | iJRF_permutation(X, W=NULL, ntree=NULL, mtry=NULL,
genes.name, seed, to.store=NULL)
|
X |
List object containing expression data for each class, |
W |
|
ntree |
Numeric value: number of trees. If omitted, |
mtry |
Numeric value: number of predictors to be sampled at each node. If omitted, |
genes.name |
Vector containing genes name. The order needs to match the rows of |
seed |
Integer. Seed of permutation |
to.store |
Optional Integer. Total number of importance scores to be stored. When omitted, all importance scores will be stored. Note that to compute FDR we do not need all |
A matrix with I
rows and C + 2
columns where I
is the total number of gene-gene interactions and C
is the number of classes. The first two columns contain gene names for each interaction while the remaining columns contain importance scores for different classes.
Petralia, F., Song, W.M., Tu, Z. and Wang, P. (2016). New method for joint network analysis reveals common and different coexpression patterns among genes and proteins in breast cancer. Journal of proteome research, 15(3), pp.743-754.
A. Liaw and M. Wiener (2002). Classification and Regression by randomForest. R News 2, 18–22.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # --- Generate data sets
nclasses=2 # number of data sets / classes
n1<-n2<-20 # sample size for each data sets
p<-5 # number of variables (genes)
genes.name<-paste("G",seq(1,p),sep="") # genes name
W<-abs(matrix(rnorm(p*p),p,p)) # generate weights for relationships
data1<-matrix(rnorm(p*n1),p,n1) # generate data1
data2<-matrix(rnorm(p*n2),p,n1) # generate data2
# --- Run JRF and obtain importance score of interactions for each class
out<-iJRF_permutation(X=list(data1,data2),W=W,
genes.name=genes.name,seed=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.