Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use buildReferenceFromSeurat with RunHarmony v1.0.3 #50

Open
dy-lin opened this issue Mar 26, 2024 · 1 comment
Open

Cannot use buildReferenceFromSeurat with RunHarmony v1.0.3 #50

dy-lin opened this issue Mar 26, 2024 · 1 comment

Comments

@dy-lin
Copy link

dy-lin commented Mar 26, 2024

I am trying to build a symphony reference using an existing Seurat object that I've already run harmony on.

However, RunHarmony no longer produces anything in the misc slot of the reduction, so I cannot do any of the calculations that have to do with res$R <- t(obj@reductions$harmony@misc$R[colnames(obj),])

If I try to use the RunHarmony.Seurat provided in the vignette, I run into issue #48

I want to avoid downgrading my Harmony version. Is there a way to access what was stored in the misc$R slot in the updated RunHarmony command? If the R variable is no longer stored in later versions of Harmony, is it really necessary for reference building in Symphony?

@maestriev
Copy link

Were you able to find a work around for this? I am using harmony 1.2.0 and Seurat 5.1.0. I've already run harmony on an existing Seurat object and annotated my reference cells. I was also planning to use symphony to map new datasets; however, I also noticed this issue about missing the misc$R slot. Thanks!

srt.sct = RunHarmony(srt.sct, assay.use="SCT", group.by.vars = "sampleid.pid", reduction.save = "rna_sct_harmony")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants