Skip to content

Deprecate Tree.newick and replace with Tree.as_newick (or similar) #1671

Closed

Description

@jeromekelleher

The default behaviour of Tree.newick of making node labels the sample ID + 1 is horrible, and makes it very hard to integrate well with other libraries. This was done originally for compatibility with ms, but that's not a good reason to keep it.

We should make a new function which does the right thing. It cant use the same infrastructure (we don't need to fiddle with the C code, for now). We can keep Tree.newick indefinitely, but it should be marked as deprecated.

@hyanwong - are there other phylo-type functions we need to consider deprecating which inherited this behaviour?

Activity

  1. added this to the Python 0.3.8 milestone on Sep 7, 2021
  2. added
    Python API
    on Sep 7, 2021
  3. added 3 commits that reference this issue on Oct 25, 2021
    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

No one assigned

    Labels

    Python API

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions