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

Picking exemplars #77

Closed
rvosa opened this issue Jan 11, 2024 · 3 comments
Closed

Picking exemplars #77

rvosa opened this issue Jan 11, 2024 · 3 comments

Comments

@rvosa
Copy link
Member

rvosa commented Jan 11, 2024

When picking the shallowest exemplars for the backbone, exemplar clades where shallow tips have near zero distance to their subtree root result in a backbone where nearly all change is allocated to the root branch of the of the exemplar clade. When grafting the subtrees onto the basal split, the subtrees become "too tall". Here's the grafted example:

Screenshot 2024-01-11 at 12 33 27

Here's the same topology but with the branch lengths re-estimated by raxml:

Screenshot 2024-01-11 at 12 34 17

A follow up experiment should be to pick the tallest exemplars instead. It's possible that this will make them "too shallow" instead, especially when there is a lot of homoplasy within the clade.

@rvosa
Copy link
Member Author

rvosa commented Jan 16, 2024

Note also that the clade that sticks out very far in the re-estimated tree is rooted incorrectly, which needs to be fixed as per issue #76

@rvosa
Copy link
Member Author

rvosa commented Jan 24, 2024

The way to go about this is as follows:

  • create an exemplar variable in the config.yml, which can be tallest, shortest, median
  • also create a scaling variable, which can be exemplars or outgroup, i.e. scale by the height ratio of the crown in the backbone over the ingroup crown, or the ratio of the distance to the outgroup in the backbone versus that in the subtree
  • implement the various scenarios with case/switch statements in the exemplar picking script and the grafting script
  • compare all possibilities with re-estimated branch lengths: which minimizes the R^2?

@rvosa
Copy link
Member Author

rvosa commented Mar 8, 2024

Picking this up in #79

@rvosa rvosa closed this as completed Mar 8, 2024
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

1 participant