Skip to content

Nexus trees should be marked with "rooted" indicator #1815

Closed

Description

@jeromekelleher

As @jeetsukumaran notes in #1803 (comment)

The other big thing is to whether or not the trees should be seen as rooted vs unrooted. Typically, a tree string is prepended with "[&R]" to indicate a rooted tree vs "[&U]" an unrooted tree. This is a fairly standard convention and widely -supported. The problem is when such a token is not present, should the trees be considered unrooted (even if there is a basal bifurcation) or rooted? Here there is no consensus. Many and maybe most bioinformatics programs assume rooted trees, but PAUP* (which for me is the reference standard for the Nexus foramt) assumes unrooted trees (and so does DendroPy).

I responded:

Trees are always rooted in tskit as far as I know, since there's a time associated with each node and therefore always an unambiguously "deepest node". So I think adding the [&R] prefix sounds like a good idea.

So I think we should add the rooting prefix.

Activity

  1. added
    enhancement
    Python API
    on Oct 18, 2021
  2. jeetsukumaran commented on Oct 18, 2021

    @jeetsukumaran
    Contributor

    Sounds good. I'm happy to help with this if nobody else picks it up before.

  3. added 4 commits that reference this issue on Oct 22, 2021
    5af7a04
    b4a4b2a
    712417a
    66c7eb6
  4. added 3 commits that reference this issue on Nov 2, 2021
    ec4840f
    8e9308e
    8386079
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Python APIenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions