-
Notifications
You must be signed in to change notification settings - Fork 63
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 La.svd(x, nu, nv) : error code 1 from Lapack routine 'dgesdd' #214
Comments
Hey Conrad, I'm afraid I'm not entirely sure what's causing this problem for you. You're correct that the warning message should be there, as you have single-individual clusters and xval won't be able to do anything with these (nor, for that matter, will it be especially able to do very useful things with small clusters like n=2 -- just something to consider.) Regarding your svd error. I believe svd is being called within the lda function (in the dapc function, in the xval function). The type of clustering approach you took should not be the problem, as long as the pop factor is in the right format. Thibaut or other adegenet contributors will likely know more about what causes this svd error. In the meantime, have you tried this potential fix? If not, it seems to have worked for others getting this error, and all it takes is to run these lines of code:
If that doesn't resolve the issue, hopefully someone else will be able to chime in with a more specific solution shortly. Cheers, |
Hi there, I have the same issue when running the ordiR2step function from vegan.
It happens for some variables when they are added to the model. This seems to be dependent on the order in which they are computed also. Why do I think so? The issue only occurs for some runs but not for others for the same variable if I remove a different variable from the varlist1. Thanks for your help! |
Exact same error for me and unfortunately @caitiecollins suggestions do not work for me neither Thanks in advance for new solutions |
I'm late to this thread, and my comment isn't strictly related to this package, but when I googled this error for other reasons, this was one of the only useful pieces of info. I was bootstrapping then doing PCA which causes duplicate samples and, I think, caused problems with the SVD.
I solved this using the svd R package (https://cran.r-project.org/package=svd) and the TL;DR version, use hope this helps... |
My problem was unrelated with this either, but is due to wrong openblas/lapack library that R is using after I made some changes to my conda environment. |
Hi, I was wondering if someone was able to solve the issue. Got the same error as @ghanesh when running ordistep... Thanks! |
@Zepeng-Mu Do you remember whether you changed your LAPACK library, and if this fixed the problem |
sorry it's been so long I totally cannot recall what I did. |
Hello,
I am trying to run DAPC cross-validation using the xvalDapc() function. The data set I am working with is a matrix of 155 rows and ~98K columns representing SNP presence/absence data. Unfortunately, when I try to run the cross-validation, I get the following error:
The main part I am having issues here is the first error "Error in la.svd(x, nu, nv)..." The second warning message I understand and am aware that some clusters contain only one isolate.
From my understanding, this error is saying something about single value decomposition failing/not converging? The pca.clusters.factor is a factor containing the prior groupings I am using. It contains 31 clusters, with varying numbers of isolates per group. These clusters were created using hierarchical clustering of principal components, not the find.clusters() function. I thought that might have been the cause for the error, but I have tried the exact same procedure using a different SNP dataset of similar size and a separate clusters factor (also generated using hierarchical clustering of principal components) with no such errors.
Unfortunately, I do not have much background in dealing with matrix operations, so I am really unsure why svd might be failing.
Any help in resolving this issue would be much appreciated.
Thank you,
Conrad Izydorczyk
The text was updated successfully, but these errors were encountered: