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

initial values for "corSymm" must be between -1 and 1 #37

Open
sapuizait opened this issue Mar 8, 2024 · 2 comments
Open

initial values for "corSymm" must be between -1 and 1 #37

sapuizait opened this issue Mar 8, 2024 · 2 comments

Comments

@sapuizait
Copy link

Hi there

Excellent package!
Its running nicely on my data with the exception of the phylogenetic signal!
When I am using the phylocom data to identify traits following the phylogenetic signal it runs fine - but when I am usingmy data I get the following error:

Error in Initialize.corSymm(X[[i]], ...) : 
  initial values for "corSymm" must be between -1 and 1

Which I do not get because I think I am doing everything right; my tree is rooted, with tip labels and everything
traits are in a dataframe and species are in the same order as the tree...

x.txt
traits3.txt

Thanks in advance for helping me figure out whats wrong :)

@skembel
Copy link
Owner

skembel commented Mar 11, 2024

Hello, your phylogeny has numerous edges with a length of zero, this error often happens when your tree contains zero-length branches, which cause problems for the calculation of phylogenetic signal. You can try to turn zero-length edges into polytomies and then recalculate using the function ape::di2multi to see if that helps.

@sapuizait
Copy link
Author

Good to know - yeap, unfortunately I cannot avoid some 0 length branches! Thanks for the tip though, will give it a try and let you know!

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