immunogenomics / symphony

Efficient and precise single-cell reference atlas mapping with Symphony
GNU General Public License v3.0
95 stars 22 forks source link

fix seurat reference if subset after harmony #43

Closed jiwen90 closed 1 year ago

jiwen90 commented 1 year ago

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.