| remove_batch_effect | R Documentation |
Remove batch effect.
remove_batch_effect(
x,
batch = NULL,
batch2 = NULL,
method = c("mum", "cn", "beta"),
offset = 1,
verbose = TRUE,
...
)
x |
An object of |
batch |
A character scalar of the column name of interested batch in
phenotype |
batch2 |
A character scalar of the column name of interested batch2 in
phenotype |
method |
A character scalar of methods, including "mum" (methylation and unmethylation separately), "cn" (copy number), "beta" (beta-value). Default to "mum". |
offset |
The offset is chosen to avoid log2 transform on zeros. Default to 1. Only valid for "mum" method. |
verbose |
A logical scalar. Default to TRUE. |
... |
Other arguments can be passed to |
Batch effect is removed by calling removeBatchEffect.
The methylation and unmethylation signals are log2 transformed, removed
batch effect, and transformed back.
An object of GenomicMethylSet-class.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.