stereoAlign.alignment.harmony_alignment¶
- stereoAlign.alignment.harmony_alignment(adata: AnnData, batch_key, hvg=None, n_pca=100, **kwargs)[source]¶
Harmony wrapper function
Based on harmony-pytorch
- Parameters:
adata – preprocessed
anndataobjectbatch_key – batch key in
adata.obshvg – list of highly variables to subset to. If
None, the full dataset will be usedn_pca – PCA component
- Returns:
anndataobject containing the corrected feature matrix as well as an embedding representation of the corrected data