Description Usage Arguments Value Note Author(s)
Globally adjust data matrix using both negative controls and replicates.
1 2 |
Y |
The data. A m by n matrix, where m is the number of observations and n is the number of features. |
M |
The replicate structure. Represented internally as a mapping matrix. The mapping matrix has m rows (one for each observation), and each column represents a set of replicates. The (i, j)-th entry of the mapping matrix is 1 if the i-th observation is in replicate set j, and 0 otherwise. Each observation must be in exactly one set of replicates (some replicate sets may contain only one observation), and thus each row of M must sum to 1. |
ctl |
An index vector to specify the negative controls. Either a logical vector of length n or a vector of integers. |
k |
The number of unwanted factors to use. Can be 0, in which case no adjustment is made. Can also be NULL (the default value), in which case the maximum possible value of k is used; note that in this case no singular value decomposition is necessary and execution is faster. |
eta |
Gene-wise (as opposed to sample-wise) covariates. These covariates are adjusted for by RUV-1 before any further analysis proceeds. Can be either (1) a matrix with n columns, (2) a matrix with n rows, (3) a dataframe with n rows, (4) a vector or factor of length n, or (5) simply 1, for an intercept term. |
include.intercept |
When |
average |
Average replicates after adjustment. |
fullalpha |
Can be included to speed up execution. Is returned by previous calls of |
return.info |
If |
inputcheck |
Perform a basic sanity check on the inputs, and issue a warning if there is a problem. |
If codereturn.info is TRUE
, a list is returned that contains:
newY |
The adjusted data matrix. |
M |
The replicate mapping matrix. Included for reference. |
fullalpha |
Can be used to speed up future calls to |
Otherwise, if return.info
is FALSE
, only the adjusted data matrix is returned.
Additional resources can be found at http://www-personal.umich.edu/~johanngb/ruv/.
Johann Gagnon-Bartsch johanngb@umich.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.