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

runEigDecomp function results in NaN #237

Open
marvinquiet opened this issue Oct 22, 2021 · 0 comments
Open

runEigDecomp function results in NaN #237

marvinquiet opened this issue Oct 22, 2021 · 0 comments

Comments

@marvinquiet
Copy link

marvinquiet commented Oct 22, 2021

Thank you for your great work in developing such a wonderful pipeline for analyzing scATAC-seq.

When using it from my own experience, I noticed that in the runEigDecomp function under https://rdrr.io/github/r3fang/SnapATAC/src/R/utilities.R. The transitions <- as.matrix(d_rot1 %*% norm_p1 %*% d_rot1); may generate NaNs which hinders the calculation on obj@smat@sdev. This can result in an incorrect diffusion map.

I wonder if I can simply replace those NaNs as 0s? Thank you in advance!

@marvinquiet marvinquiet changed the title runEigDecomp and runDiffusionMapsExtension function result in NaN runEigDecomp function results in NaN Oct 22, 2021
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