Skip to main content

tree_matching_distance

An implementation of the tree distance metric suggested by Lin, Rajan, and Moret, at ISBRA 2011.

Description

This package contains a function to import and provides a command-line tool that compares two given trees and return a distance between them.

Usage

Run the program like

  tree_matching_distance t1.tree t2.tree

where the two file parameters contain trees in Newick format on the same taxa.

To use the distance method from within your own code, write

  from ete3 import Tree
  from tree_matching_distance import distance
  t1 = Tree('((a, b), (c, d));')
  t2 = Tree('((a, c), (b, d));')
  d = distance(t1, t2)
  print(d)

for a simple test. Note that this package requires ETE3 trees.

Metadata

Release files for tree-matching-distance 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for tree-matching-distance 1.0.7
File Interpreter ABI Platform
tree_matching_distance-1.0.7-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / tree_matching_distance-1.0.7-py2.py3-none-any.whl

Download URL tree_matching_distance-1.0.7-py2.py3-none-any.whl
Size 4.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2399e559ef8d4db1dc6e8c198d1a32b45095ca547e96a1b5773a36749d7360de
BLAKE2b-256 checksum
How to use checksums
56a034e52ab18a1b36e440b4ff40678e7017c51aece10362696aee28173d271f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

Release history Release notifications | RSS feed

This release

1.0.7 This release

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page