Subsetting Seurat object after running Harmony results in dimension mismatch in obj@reductions$harmony@misc$R because the subset function as implemented in Seurat does not modify the misc slot. This fixes the mismatch by subsetting to the appropriate rows before matmul.
Subsetting Seurat object after running Harmony results in dimension mismatch in obj@reductions$harmony@misc$R because the subset function as implemented in Seurat does not modify the misc slot. This fixes the mismatch by subsetting to the appropriate rows before matmul.