Description Usage Arguments Details Value Note Author(s) References
This function is directly modified from the original irwsva.build() in the SVA package. It was noticed that under certain circumstances a subscript out of bounds error would occur while running the SVA function. Therefore, this modified code has a single line altered that conditionally uses the generic singular decomposition, svd(), instead of fast singular decomposition, fast.svd().
1  | irwsva.build2(dat, mod, mod0 = NULL, n.sv, B = 5)
 | 
dat | 
 A m CpG sites by n subjects matrix of methylation data.  | 
mod | 
 A n by k model matrix corresponding to the primary model fit (see model.matrix)  | 
mod0 | 
 A n by k0 model matrix corresponding to the null model to be compared to mod.  | 
n.sv | 
 The number of surrogate variables to construct.  | 
B | 
 The number of iterations of the algorithm to perform.  | 
See http://www.bioconductor.org/packages/release/bioc/manuals/sva/man/sva.pdf
sv | 
 A n by n.sv matrix where each column is a distinct surrogate variable.  | 
pprob.gam   | 
 A vector with the posterior probability estimates that each row is affected by dependence.  | 
pprob.b | 
 A vector with the posterior probabiliity estimates that each row is affected by the variables in mod, but not in mod0.  | 
n.sv | 
 The number of suggorate variables estimated.  | 
sva Vignette http://www.biostat.jhsph.edu/~jleek/sva/
Original irwsva.build: Jeffrey T. Leek <jleek@jhsph.edu>, John Storey jstorey@princeton.edu
Original sva: Leek JT and Storey JD. (2008) A general framework for multiple testing dependence.Proceedings of the National Academy of Sciences, 105: 18718-18723.
Leek JT and Storey JD. (2007) Capturing heterogeneity in gene expression studies by surrogate variable analysis. PLoS Genetics, 3: e161.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.