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

Identify nodes in a phylogeny #1683

Closed
psorigue opened this issue Jan 25, 2024 · 11 comments
Closed

Identify nodes in a phylogeny #1683

psorigue opened this issue Jan 25, 2024 · 11 comments

Comments

@psorigue
Copy link

Hi,

I am using aBSREL and I obtained the already-parsed output. However, my phylogeny is very large, and I cannot identify the nodes that are named as 'node131'. Is there a way to map these nodes on the phylogeny, so I can identify what branches were under selection?

Thanks for the support

@stevenweaver
Copy link
Member

Dear @psorigue,

You can use HyPhy Vision to view the results. There is an option to show internal tree labels.

Screenshot 2024-01-25 at 08 18 38

If this is not an option for you, we also have a phylogenetic tree viewer example with internal nodes labeled here

Best,
Steven

@spond
Copy link
Member

spond commented Jan 25, 2024

Dear @psorigue,

Yes, indeed. There are several ways to do it.

  1. The Newick tree string reported in the JSON file is annotated with node names, including internal names.
    image. This is useful if you wish to use an external tree viewer, or annotate things programmatically (e.g. in Python)

  2. You can view internal node names by loading the JSON file into https://observablehq.com/@spond/absrel as @stevenweaver suggested.

Best,
Sergei

@psorigue
Copy link
Author

psorigue commented Jan 25, 2024 via email

@spond
Copy link
Member

spond commented Jan 25, 2024

Dear @psorigue,

Could you please re-upload the image directly at github? If you attach images in an e-mail response, they don't make it through.

Best,
Sergei

@psorigue
Copy link
Author

Sorry!

Here it goes:

image

@spond
Copy link
Member

spond commented Jan 25, 2024

Dear @psorigue,

If you adjust the dimension of the plot, e.g. to 8192x800 (and click Resize), you should have enough room to see the labels.

Best,
Sergei

@psorigue
Copy link
Author

psorigue commented Jan 25, 2024 via email

@psorigue
Copy link
Author

I saw that some nodes that appear in the output, are not present in the phylogeny internal nodes. Is there a reason that I'm missing for this?

@spond
Copy link
Member

spond commented Jan 25, 2024

Dear @psorigue,

Those are most likely zero-length branches which get deleted in the analysis tree for speed. The input tree retains such nodes.

Best,
Sergei

@psorigue
Copy link
Author

psorigue commented Jan 25, 2024 via email

Copy link

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants