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

Seurat object with Harmony generate from PCA using specified features #44

Closed
HarryShen668 opened this issue Mar 2, 2023 · 1 comment

Comments

@HarryShen668
Copy link

The loadings in my Seurat object's harmony information were generated from PCA using specified features, rather than PCA using variable features as the input. However, downstream analysis, including the buildReferenceFromSeurat function, uses variable genes. This causes an error when multiplying the matrices t(ref1$loadings) and exp_query_scaled_sync in mapQuery function because their dimensions do not match, which gives

Error in t(ref_obj$loadings) %*% exp_query_scaled_sync : 
  non-conformable arguments

If I need to use PCA with specified features for downstream analysis, including harmonization, how can I resolve this issue?

@HarryShen668
Copy link
Author

close for problem solved

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

1 participant