ZikunY / CARMA

GWAS genetics Fine-mapping method
GNU General Public License v3.0
20 stars 7 forks source link

Type conversion of matrix fails #17

Closed lewis-m closed 10 months ago

lewis-m commented 11 months ago

I am getting the following error when running CARMA Error in as(matrix(0, nrow = nrow(x), ncol = p), "dMatrix") : no method or default for coercing "matrix" to "dMatrix" Calls: CARMA ... index.fun.inner -> as -> .class1 -> as -> .class1 -> as

The issue seems to be in line 536 of CARMA.R and to be independent of my input.

Your help would be much appreciated.

I am able to load the CARMA library without issues and am using the following R setup:

`$platform [1] "x86_64-pc-linux-gnu"

$arch [1] "x86_64"

$os [1] "linux-gnu"

$system [1] "x86_64, linux-gnu"

$version.string [1] "R version 4.1.2 (2021-11-01)"`

ZikunY commented 11 months ago

Hi Lewis,

Please use R/4.2.2 and update the Matrix package. Please let me know if this solved the problem.

Best, Zikun