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

average relative phylogenetic endemism across 1000 trees #792

Open
mariaguerrina opened this issue May 11, 2021 · 2 comments
Open

average relative phylogenetic endemism across 1000 trees #792

mariaguerrina opened this issue May 11, 2021 · 2 comments

Comments

@mariaguerrina
Copy link

Hi all,
I have a question (probably a silly one!): I would like to estimate the relative phylogenetic endemism on 1000 trees (they are random trees with the same species in) and as result I would like to have the average of the results of each tree. Is there a way to estimate it without selecting every time a different tree, downloading the single result and then calculating the average?

I hope my question is clear (not so sure about it!)

Cheers
Maria

@shawnlaffan shawnlaffan changed the title relative phylogenetic endemism average relative phylogenetic endemism across 1000 trees May 11, 2021
@shawnlaffan
Copy link
Owner

shawnlaffan commented May 11, 2021

Hello Maria,

This is possible, but is not practical with the GUI if you are using your own trees.

If the random trees have the same topology as the original, but the names are simply shuffled across the tips then you can use a randomisation analysis that uses the rand_no_change model, but which shuffles the tree tips. In version 4 and above you can extract the mean of the trees using the SUMX_PHYLO_RPE2 and Q_PHYLO_RPE2 indices from the rand>>SPATIAL_RESULTS list (where rand is the name you specify for the randomisation output). See also the blog post about this and the documentation. Version 4 is yet to be released, but I can do a development release if you need to use this approach.

If the topologies differ then it can be done with a script. I can work one up if you need this approach.

Regards,
Shawn.

@mariaguerrina
Copy link
Author

Hi Shawn,
thanks a lot for your reply!
I would like to estimate RPE on endemic species of a small area of the European Alps. Not for all the studied species a phylogeny was present. For this reason, I started from the species-level time-calibrated global phylogeny (Smith and Brown 2018) and added random (to a pre-specified clade) the lacking species and pruning at the end the trees in order to retain only the studied species. In this way, I generated 1000 random trees, which mainly differ for the branches length.
Now, on these 1000 random trees, I would like to estimate the RPE, having as final result an average and standard deviation of the results of each tree.
I tried the randomisation analysis you proposed, but I'm not sure this lead to the result I would like to have.

Best
Maria

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