deruncie / MegaLMM

R package for fitting high-dimensional multivariate linear mixed effect models
https://deruncie.github.io/MegaLMM/
MIT License
35 stars 14 forks source link

setup the model function warning (setup_model_MegaLMM function) #9

Open Yansen0515 opened 1 year ago

Yansen0515 commented 1 year ago

Hi, I got a warning (please check below) when I run the "setup_model_MegaLMM function".

"Message d'avis :
as(<matrix>, "lgTMatrix") is deprecated since Matrix 1.5-0; do as(as(as(., "lMatrix"), "generalMatrix"), "TsparseMatrix") instead "

Do you think it will make problems for the following work? I met a problem in the "initialize_MegaLMM(MegaLMM_state) " function.

r in (function (cond):
   error evaluating argument 'x' when selecting a method for function 't': Need S4 class dgCMatrix for a mapped sparse matrix

If you know how to solve this problem, please let me know.

Kind regards, Yansen

deruncie commented 1 year ago

I don’t think the warning was the issue, but I pushed a fix for that. Try re-installing the package and see if the warning and errors go away.

From: Yansen CHEN @.> Date: Friday, March 10, 2023 at 12:54 AM To: deruncie/MegaLMM @.> Cc: Subscribed @.***> Subject: [deruncie/MegaLMM] setup the model function warning (setup_model_MegaLMM function) (Issue #9)

Hi, I got a warning (please check below) when I run the "setup_model_MegaLMM function".

"Message d'avis :

as(, "lgTMatrix") is deprecated since Matrix 1.5-0; do as(as(as(., "lMatrix"), "generalMatrix"), "TsparseMatrix") instead "

Do you think it will make problems for the following work? I met a problem in the "initialize_MegaLMM(MegaLMM_state) " function.

r in (function (cond):

error evaluating argument 'x' when selecting a method for function 't': Need S4 class dgCMatrix for a mapped sparse matrix

If you know how to solve this problem, please let me know.

Kind regards, Yansen

— Reply to this email directly, view it on GitHubhttps://github.com/deruncie/MegaLMM/issues/9, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB2IDTKSYQCHRJ2Z6YOWNHTW3LT5JANCNFSM6AAAAAAVWEW7N4. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Yansen0515 commented 1 year ago

Hello,

I update the MegaLMM package. Then, I still have the first warning, however, the second error from "initialize_MegaLMM" disappeared. Thank you for your help.

Kind regards, Yansen

deruncie commented 1 year ago

That is not what I was expecting! Can you re-post the warning you get? Is it exactly the same?

From: Yansen CHEN @.> Date: Tuesday, March 14, 2023 at 8:41 AM To: deruncie/MegaLMM @.> Cc: Daniel E Runcie @.>, Comment @.> Subject: Re: [deruncie/MegaLMM] setup the model function warning (setup_model_MegaLMM function) (Issue #9)

Hello,

I update the MegaLMM package. Then, I still have the first warning, however, the second error from "initialize_MegaLMM" disappeared. Thank you for your help.

Kind regards, Yansen

— Reply to this email directly, view it on GitHubhttps://github.com/deruncie/MegaLMM/issues/9#issuecomment-1468343827, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB2IDTMGTRYRRQ34IB2ALNLW4CGTRANCNFSM6AAAAAAVWEW7N4. You are receiving this because you commented.Message ID: @.***>

Yansen0515 commented 1 year ago

Hi,

Yes. It is exactly the same as before. And I use the same code and data as before (just update he package this time).

Message d'avis :
as(<matrix>, "lgTMatrix") is deprecated since Matrix 1.5-0; do as(as(as(., "lMatrix"), "generalMatrix"), "TsparseMatrix") instead 

Kind regards, Yansen