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

In mugration analysis: State of root node is not output to annotated nexus tree (but to CSV when using --confidence) #226

Closed
agormp opened this issue Jan 26, 2023 · 1 comment

Comments

@agormp
Copy link

agormp commented Jan 26, 2023

Playing around with your very useful tool here and hugely enjoying it!

One thing: I notice that if you reconstruct ancestral states using the "mugration" sub-command, then the state of the root node is not output on the annotated ancestral tree. Below is the end of a typical Newick string from a Nexus file output by the mugration command:

)NODE_0000179:0.00385[&state="Swine"])NODE_0000000:0.00100;

Note how there is no ancestral state comment listed for NODE_0000000 (the root of the tree), but there is one for NODE_0000179.

If you use the option --confidence then you get the values for the possible states of the root node in the resulting CSV file. Below are the top three lines from such a file:

#name, A, B
NODE_0000000, 0.28847000410188417, 0.7115299958981158
NODE_0000001, 0.28528076828060617, 0.7147192317193939
seq_165, 1.0, 0.0
...

Here, the first line shows the confidences in the possible ancestral states of the root node. Incidentally, it would be useful for the headers to be the actual state names instead of A and B.

@rneher
Copy link
Member

rneher commented Feb 15, 2023

thanks for flagging this. It should be fixed in the latest release!

@rneher rneher closed this as completed Feb 15, 2023
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