Skip to main content

simple manipulation of trees

Project description

Build Status PyPI

smot - Simple Manipulation Of Trees

smot is a command line tool for manipulating, summarizing, and sampling from phylogenetic trees.

subcommand description
convert convert tree format
tips list tip labels
plot plot the tree
sample sub-sample a tree
factor integrate and/or infer classes for tips
tipsed regex-based search and replace across tip labels
midpoint root tree by midpoint
random make random tree given list of tip labels
clean remove singleton nodes and ladderize

Installation

pip install smot

Requirements

Python modules:

  • biopython
  • parsec
  • docopt

Python v3.6 and later (required for string interpolation)

Examples

Accessing usage information for each subcommand:

smot -h

# image B
smot sample equal --factor-by-capture="(human|swine)" --keep="swine" --seed=42 --max-tips=2 pdm.tre > pdm-equal.tre
# image C
smot sample prop --proportion=0.1 --min-tips=2 --factor-by-capture="(human|swine)" --keep="swine" --seed=42 pdm.tre > pdm-prop.tre
# image D
smot sample para --proportion=0.1 --min-tips=2 --factor-by-capture="(human|swine)" --keep="swine" --seed=42 pdm.tre > pdm-para.tre

Project details


Download files

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

Files for smot, version 0.8.1
Filename, size File type Python version Upload date Hashes
Filename, size smot-0.8.1-py3-none-any.whl (13.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size smot-0.8.1.tar.gz (12.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page