Skip to content

Bug in lfmm_lasso function if K = 1 #3

@madleina

Description

@madleina

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions