iJRFNet_permutation: Derive importance scores for M permuted data sets.

Description Usage Arguments Value References Examples

Description

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.

Usage

1
2
3
iJRFNet_permutation(X,W=NULL, ntree=NULL, mtry=NULL,
       genes.name=NULL, M=NULL, model, ptm.name=NULL, 
       to.store=NULL)

Arguments

X

List object containing expression data for each class, X=list(x_1,x_2, ... ) where x_j is a (p x n_j) matrix with rows corresponding to genes and columns to samples. Rows need to be the same across objects, while samples can vary. Missing values are not allowed. If model="ptmJRF", the first object of the list must contain the expression of post translational modification variables. Only in this case, the number of variables in the first object might differ from that of other objects. Rows of X[[1]] does not need to be ordered in a specific way.

W

(p x p) Optional symmetric matrix containing sampling scores. When omitted, the standard JRF algorithm without weighted sampling scheme will be implemented. Element (i,j) contains interaction score (i - j). Scores must be non-negative. Larger value of sampling score corresponds to higher likelihood of gene i interacting with gene j. Columns and rows of W must be in the same order as the columns of X. Sampling scores W are computed considering one prior data such as protein-protein interactions.

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, mtry is set to the square root of the number of variables.

genes.name

Vector containing genes name. The order needs to match the rows of x_j.

M

Integer: total number of permutations. If omitted, 100 permutations will be run.

model

Variable indicating which iJRFNet model needs to be run. Takes values in c("iJRF", "iRafNet","ptmJRF")

ptm.name

List of post translational modification variables in protein domain. This list must be ordered as rows of X[[1]].

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 (p-p) x p / 2 importance scores where p is the total number of proteins/genes, a sufficiently large number would work. This number is usually chosen based on the number of nodes. Suggested value is p x 20.

Value

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.

References

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.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 # --- 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
    
 # --- Obtain importance scores for M permuted data sets
  out<-iJRFNet_permutation(X=list(data1,data2), ntree=1000,
  mtry=sqrt(5), genes.name=genes.name, M=5, model="iJRF")

petraf01/iJRF documentation built on Dec. 22, 2021, 7:46 a.m.