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

Error in irlba(ref_exp_scaled, nv = 20) #38

Closed
Lila3141 opened this issue Nov 25, 2022 · 1 comment
Closed

Error in irlba(ref_exp_scaled, nv = 20) #38

Lila3141 opened this issue Nov 25, 2022 · 1 comment

Comments

@Lila3141
Copy link

Lila3141 commented Nov 25, 2022

Dear Symphony developer team,
First of all, thanks a lot for this great package and vignette!

Following the steps of vignette, I got good results with all my data sets except with one for which I am running into following error:

s = irlba(ref_exp_scaled, nv = 20)
Error in irlba(ref_exp_scaled, nv = 20) :
BLAS/LAPACK routine 'DLASCLS' gave error code -4

I noticed that there are many NAs (115200) in the ref_exp_scaled (1:789, 1:19200), which might cause this problem.
Running ref_exp_scaled = singlecellmethods::scaleDataWithStats(ref_exp, vargenes_means_sds$mean, vargenes_means_sds$stddev, 1)
does not give an error and ref_exp, vargenes_means_sds$mean and vargenes_means_sds$stddev do not contain any NAs.
For troubleshooting, I tried to run the contents of the function scaleDataWithStats, but can't find the function scaleRowsWithStats_dgc. My dataset is unfortunately not public. ref_exp is a Large dgCMatrix with 472536288 elements, 387.6 MB.

Do you have any idea what could cause this problem?
Thanks a lot in advance!

@Lila3141
Copy link
Author

I found the reason. The one dataset that was giving me this error was missing some of the highly variable genes from my var_genes list.

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