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

Bug in lfmm_lasso function if K = 1 #3

Open
madleina opened this issue Jun 24, 2019 · 0 comments
Open

Bug in lfmm_lasso function if K = 1 #3

madleina opened this issue Jun 24, 2019 · 0 comments

Comments

@madleina
Copy link

Hi,

I want to run LFMM2 on my data. The lfmm_ridge function works fine, but when I use the lfmm_lasso function, I keep getting the error:

Error in tcrossprod(crossprod(x, U), V) : non-conformable arguments

I think it has something to do with

  1. the fact that I use K = 1, because when I change to K = 2, everything works fine; and
  2. the R version I'm using (which is the newest one: R version 3.6.0 (2019-04-26) -- "Planting of a Tree"). I was running it before with an older version (R 3.4.4, "Someone to Lean On"), which worked fine.

Please find below a zip-folder containing a file envFile.env (with the explanatory variables) and a file genoFile.lfmm (with the response variables) as well as the R script I use to run the ridge and lasso regression. I hope you can reproduce the error, otherwise please let me know.

I would be very grateful for a quick response!

Cheers,

Madleina

reportBug.zip

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