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

matrix is not symmetric #20

Open
jakeberv opened this issue Nov 11, 2021 · 3 comments
Open

matrix is not symmetric #20

jakeberv opened this issue Nov 11, 2021 · 3 comments

Comments

@jakeberv
Copy link

jakeberv commented Nov 11, 2021

Hi there,

I'm trying to learn how to use PhylogeneticEM (and l1ou). I set up a test analysis with default parameters for an scOU model as such (three traits):

phyloem.model<-PhyloEM(phylo = l1ou_test$tree, Y_data=t(l1ou_test$Y), process="scOU", parallel_alpha = TRUE, Ncores = 4)

and I'm consistently getting the following error--
@pbastide any idea how to get through it?

Thanks,
Jacob Berv

Error in { : task 9 failed - "matrix is not symmetric [1,2]"
In addition: Warning message:
In find_grid_alpha(phylo, alpha, nbr_alpha = nbr_alpha, allow_negative = allow_negative, :
The chosen alpha_max was above the machine precision. Taking alpha_max as the largest possible on this machine.

@pbastide
Copy link
Owner

Hi Jacob,

Thank you for considering PhylogeneticEM for your analysis, and sorry you are experiencing problems !

The error is not very specific (which is my fault). In the past, this kind of error has been linked with the structure of the tree or the data (e.g. two traits highly correlated almost to one). Do you see anything in the data that might look "odd" ?

It can also be linked with the version of the package you use. Do you have the last CRAN version of PhylogeneticEM (1.5.0) ? Also which version of the Matrix package do you have ?

Sorry I cannot be much more help without a more detailed description. If would be great if you could isolate a "minimal working example" reproducing the error. If you can send me such an example (here or by email), I'd be happy to look into it.

Sorry for the inconvenience, and thank you again for your feed back !

Best,
Paul

@jakeberv
Copy link
Author

jakeberv commented Nov 15, 2021 via email

@pbastide
Copy link
Owner

Hi Jake,

Thank you for the feedback !

Sorry, I'm running out of simple explanations, I'm not sure what could be causing the error.

One thing you could try is to change the tree and use the same data (e.g. take a random tree with the same species, or even a star tree), or use the same tree but different data (e.g. simulated) to see if one of the two components is causing the error... But I'm not sure that it would give good results.

Otherwise, if you have an small example that fails fast, I'm happy to look into it. The address you mention should work.

Sorry for the trouble, and thank you for trying to make it work !

Paul

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

2 participants