immunogenomics / harmony

Fast, sensitive and accurate integration of single-cell data with Harmony
https://portals.broadinstitute.org/harmony/
Other
513 stars 98 forks source link

The error of harmony after subsetting data #256

Open Carrey14 opened 3 weeks ago

Carrey14 commented 3 weeks ago

Hello, Thanks for developing an excellent tool for batch correction. When I used Harmony to correct batch between two datasets, I found that Harmony perfectly corrected the batch effects in the overall cell population. 大群1

However, when I extracted a small subset, such as the T cell population, and re-ran all the steps from scaling to Harmony on this subset, I observed that while samples from a single dataset integrated well, the T cells from the two datasets showed clear batch effects, resulting in two distinct T cell clusters corresponding to the original datasets. Why is this happening?How to solve this problem? T2

Samples from all belong to one data set, and II belongs to another. Thanks!