immunogenomics / harmony

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

Integrating pairs of samples separately in a Seurat object #196

Open zhang248 opened 1 year ago

zhang248 commented 1 year ago

Hi,

I have a Seurat object with four samples named Heart-1, Heart-2, Liver-1, and Liver-2, which come from four distinct donors. Now I want to perform batch correction specifically for samples within the same tissue, namely Heart-1 and Heart-2, as well as Liver-1 and Liver-2.

In Seurat, I can identify all anchor pairs between each pair of these samples and then exclude the anchor pairs between heart and liver samples by subsetting the AnchorSet object. I'm wondering if there is a way to achieve the same using the RunHarmony function.

Thanks!