Closed mauripops closed 2 years ago
You can simply pass the output of Harmony to phateR -- instead of t(GetAssayData(SeuratObj,slot="data"))
you would use Embeddings(sobj, reduction = "harmony")
(or whatever the key is for your Harmony DR.) It will work fine with any latent dimension as input, e.g. PCA, SVD, Harmony on PCA, NMF, etc etc.
Sorry if a similar issue has been raised already but if it did I was unable to find it.
From my understanding from the tutorial PHATE is ran on the normalized data counts of a seurat object. Data which can be accessed with
t(GetAssayData(SeuratObj,slot="data"))
.I am trying to use Harmony to reduce batch effects of the data but the ouput from it is a given as a dimensionality reduction and the tool does not alter the
raw.data
,scale.data
ordata
of the seurat object.What would be the appropriate way to pass the batch normalized data to Phate for analysis?