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

EmbedSWNE fails #2

Closed
bobermayer opened this issue Apr 27, 2018 · 2 comments
Closed

EmbedSWNE fails #2

bobermayer opened this issue Apr 27, 2018 · 2 comments
Assignees

Comments

@bobermayer
Copy link

Hi,

I have a large dataset with more than 20k cells. trying

swne.embedding <- EmbedSWNE(nmf.scores, snn, alpha.exp=alpha.exp, snn.exp=snn.exp, n_pull=3, dist.use='IC')

I get the following error:

Error in SNN %*% t(H) : 
  Cholmod error 'X and/or Y have wrong dimensions' at file ../MatrixOps/cholmod_sdmult.c, line 90

although the dimensions should match (after subsetting snn to the relevant cells):

dim(nmf.scores)
[1]     4 20565
dim(snn)
[1] 20565 20565

any ideas what's wrong here?

thanks!

@yanwu2014
Copy link
Owner

Ah that might be because in certain corner cases we need to filter the NMF matrix for columns with all zeros, which may cause the dimensions to be off. I've pushed an update to SWNE. Can you reinstall the package and see if you're still getting the bug?

@yanwu2014 yanwu2014 self-assigned this Apr 28, 2018
@bobermayer
Copy link
Author

yes, thanks a lot, that fixed it!

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