View source: R/BatchCorrection.R
SnapATAC_runHarmony | R Documentation |
Perform batch effect using harmony
SnapATAC_runHarmony( mapSnapATAC, meta_data, nPC = 30, vars_use = NULL, weightDimReduct = FALSE )
mapSnapATAC |
list, output of SnapATAC_runDiffusionMaps, at least contains
|
meta_data |
Either (1) Dataframe with variables to integrate or (2) vector with labels. |
nPC |
integer, how many PCs used for Harmony, default is 30. |
vars_use |
string, if meta_data is dataframe, this defined which variable(s) to remove (character vector). Default is NULL |
weightDimReduct |
bool, if weighted the PCs by multiplying sdev, default is FALSE |
Matrix, cell by updated principle components
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.