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

load harmonized embeddings into harmony object for use with Symphony #15

Closed
hbandukw opened this issue Oct 12, 2021 · 1 comment
Closed

Comments

@hbandukw
Copy link

Hello,

I have an atlas that was produced by integrating data with Harmony. I want to use the integrated data with Symphony's mapQuery function. The recommended option i.e. Option 1 listed on https://github.com/immunogenomics/symphony starts with an existing harmony object which is then used to make a Symphony reference using buildReferenceFromHarmonyObj.

I currently have the harmonized embeddings integrated into a .h5seurat file. Is there a way I can extract the necessary components from this file and load them into R as a harmony object?

Please note that I have also posted this issue on harmony: immunogenomics/harmony#142

@joycekang
Copy link
Collaborator

Hi there,

Apologies for the delay in getting back to you. We currently do not have the ability to generate a Symphony reference using only the harmonized embedding, unfortunately. This is because the Symphony soft cluster centroids and "reference compression terms" are not saved into the Seurat object by default, and we currently don't have a way to back-calculate them after the fact. If you have the list of steps and parameters that were used to generate the Seurat object, I wonder if you can recreate it, then use the RunHarmony.Seurat function in vignettes/utils_seurat.R (following our Seurat tutorial).

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