View source: R/normalize_batch.R
| counts_from_surrogates | R Documentation | 
Given an initial set of counts and a series of surrogates, what would the resulting count table look like? Hopefully this function answers that question.
counts_from_surrogates(
  data,
  adjust = NULL,
  design = NULL,
  method = "ruv",
  cond_column = "condition",
  batch_column = "batch",
  matrix_scale = "linear",
  return_scale = "linear",
  ...
)
| data | Original count table, may be an expt/expressionset or df/matrix. | 
| adjust | Surrogates with which to adjust the data. | 
| design | Experimental design if it is not included in the expressionset. | 
| method | Which methodology to follow, ideally these agree but that seems untrue. | 
| cond_column | design column containing the condition data. | 
| batch_column | design column with the batch data, used for subtractive methods. | 
| matrix_scale | Was the input for the surrogate estimator on a log or linear scale? | 
| return_scale | Does one want the output linear or log? | 
| ... | Arguments passed to downstream functions. | 
A data frame of adjusted counts.
[sva] [RUVSeq] [crossprod()] [tcrossprod()] [solve()]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.