Skip to main content

Distance-based cluster methods for linguistic phylogenies

Project description

PyloCluster

Build Status codecov PyPI

PyloCluster provides basic functionalities for distance-based clustering procedures in Python, including implementations of the Neighbor-joining and the UPGMA algorithm for phylogenetic reconstruction.

Installation

$ pip install pylocluster

Usage

The following examples requires the python-newick package.

>>> from pylocluster import *
>>> from newick import loads
>>> matrix = squareform([0.5,0.67,0.8,0.2,0.4,0.7,0.6,0.8,0.8,0.3])
>>> nwk = linkage(matrix, taxa=['G', 'S', 'I', 'E', 'D'], method='upgma')
>>> print(loads(nwk).ascii_art())
        ┌─S
    ┌───┤
       └─I
────┤
       ┌─E
    └───┤
           ┌─G
        └───┤
            └─D

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylocluster-0.1.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

pylocluster-0.1.0-py2.py3-none-any.whl (9.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pylocluster-0.1.0.tar.gz.

File metadata

  • Download URL: pylocluster-0.1.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for pylocluster-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b69d9d8b9ac27f42a4ebcb46cfb4e928103281c0e555eff8cddba280bfe4af6d
MD5 610aee12a59fcf0698d8ea9c29cdec82
BLAKE2b-256 5994b2b4ac454da456962bbd046b02d704992ef7f9d427336f8534f8f6df302b

See more details on using hashes here.

File details

Details for the file pylocluster-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pylocluster-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for pylocluster-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f406acc8611519438ccecc0cd98855b41f4ea1e9a80b6946c5aea7fe72b2a4da
MD5 e2140981c2cb7c6b4834829de8957fae
BLAKE2b-256 0055573d95a880607ce51749187dcfaae4996f2b33cdd4a66950f6fefa023ed3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page