Description Usage Arguments Value References Examples
This function computes importance score for M
permuted data sets. Sample labels of target genes are randomly permuted and JRF is implemented. Resulting importance scores can be used to derive an estimate of FDR.
1 2 |
X |
List object containing expression data for each class, |
W |
|
ntree |
Numeric value: number of trees. If omitted, 1000 trees are considered. |
mtry |
Numeric value: number of predictors to be sampled at each node. If omitted, |
model |
Variable indicating which iJRFNet model needs to be run. Takes values in |
genes.name |
Vector containing genes name. The order needs to match the rows of |
ptm.name |
List of post translational modification variables in protein domain. This list must be ordered as rows of |
A three dimensional matrix (I
x M
x C
) with I
being the number of total interactions, M
the number of permutations and C
the number of classes. Element (i,j,k)
corresponds to the importance score for interaction i
, permuted data j
and class k
.
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 14 15 16 17 18 19 20 21 22 | # --- 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
data1<-matrix(rnorm(p*n1),p,n1) # generate data1
data2<-matrix(rnorm(p*n2),p,n1) # generate data2
##---------------------------------------------------------------------------##
## --- Run iJRFNet
# --- Obtain importance scores of gene-gene (protein-protein) interactions
out<-iJRFNet(X=list(data1,data2),genes.name=genes.name,model="iJRF")
##---------------------------------------------------------------------------##
## --- Run iRafNet
W<-abs(matrix(rnorm(p*p),p,p)) # generate weights for interactions
# --- Obtain importance scores of gene-gene (protein-protein) interactions
out<-iJRFNet(X=list(data1),W=W,genes.name=genes.name,model="iRafNet")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.