simple manipulation of trees
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
smot-0.7.0.tar.gz
(12.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
smot-0.7.0-py3-none-any.whl
(13.5 kB
view details)
File details
Details for the file smot-0.7.0.tar.gz.
File metadata
- Download URL: smot-0.7.0.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18fbb8558aee110e1188502feaa7d7755d868873cf2990cfae3ebeda1b383408
|
|
| MD5 |
9540ee83f93abeeb88f3c5013feaa812
|
|
| BLAKE2b-256 |
b59493f5423ab7fb7d2ed95ec451e83668bdba3c2c37449ed824f0c0f7ed0eb4
|
File details
Details for the file smot-0.7.0-py3-none-any.whl.
File metadata
- Download URL: smot-0.7.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff035cb7013afd779f327db8825ab881d8da40f352263ac786698055cc759562
|
|
| MD5 |
cc288ff25c3dc44d82f800607e67a1d8
|
|
| BLAKE2b-256 |
749301719581d494b15589f5486753b6cec05c247a6fe8d25a798b1288451d1f
|