Description Usage Arguments Details Value
View source: R/mbecs_corrections.R
The updated version of RUV-2 also incorporates the residual matrix (w/o treatment effect) to estimate the unknown BEs. To that end it follows the same procedure in case there are no negative control variables and computes pseudo-controls from the data via l(m)m. As RUV-2, this algorithm also uses the parameter 'k' for the number of latent factors. RUV-4 brings the function 'getK()' that estimates this factor from the data itself. The calculated values are however not always reliable. A value of k=0 fo example can occur and should be set to 1 instead.
| 1 | 
| input.obj | phyloseq object or numeric matrix (correct orientation is handeled internally) | 
| model.vars | Vector of covariate names. First element relates to batch. | 
| type | Which abundance matrix to use, one of 'otu, tss, clr'. DEFAULT is 'clr'. | 
| nc.features | (OPTIONAL) A vector of features names to be used as negative controls in RUV-3. If not supplied, the algorithm will use an 'lm' to find pseudo-negative controls | 
The input for this function is supposed to be an MbecData object that contains total sum-scaled and cumulative log-ratio transformed abundance matrices. Output will be a vector of p-values.
A vector of p-values that indicate significance of the batch-effect for the features.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.