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

communityPGLMM error #64

Open
ebechtold opened this issue Mar 9, 2021 · 6 comments
Open

communityPGLMM error #64

ebechtold opened this issue Mar 9, 2021 · 6 comments

Comments

@ebechtold
Copy link

Hello!

I'm trying to use pglmm to understand if bacterial community phylogeny is related to the plant host species phylogeny that the bacterial communities were sampled from. However, I'm encountering an error that I can't seem to fix.

The error is:
Error in chol.default(re.i[[3]]) : the leading minor of order 2 is not positive definite

The code that I ran is:
mod.r <- communityPGLMM(count ~ 1 + (1|OTU__) + (1|Grass__) + (1|OTU__@Grass) + (1|OTU@Grass__),
data = data1, cov_ranef = list(OTU = bact.phy, Grass = grass.phy))

bact.phy and grass.phy are just the phylogenetic trees I uploaded as newick files. It seems like the issues is coming from the file bact.phy which relates to the bacterial species phylogeny.

Thank you!

@daijiang
Copy link
Owner

Can you send an exemplary dataset and code to reproduce your problem? Thanks!

@ebechtold
Copy link
Author

ebechtold commented Mar 10, 2021 via email

@daijiang
Copy link
Owner

I did not see the attachments. You can email them to me at daijianglee@gmail.com

@lealorrainsoligon
Copy link

Hello,

Did you found a solution to this problem? I am currently having the exact same problem so I would be very interested if you have an answer

Best

Léa

@daijiang
Copy link
Owner

Can you provide a reproducible example?

@lealorrainsoligon
Copy link

Hi,

Thank you for your quick answer! I resolved the problem today. In fact, one of the branches in my tree had a length of 0.00, which led to this error. I thus manually changed the value to 0.01 and it worked perfectly!

Thank you again

Léa

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

3 participants