树木的简单操作
smot的Python项目详细描述
smot-简单的树木操作
smot
是一个命令行工具,用于从
系统发育树。在
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 |
安装
pip install smot
要求
Python模块:
- 生物赛顿
- 帕塞克
- docopt文件
pythonv3.6及更高版本(字符串插值需要)
示例
访问每个子命令的用法信息:
^{pr2}$# 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
- 项目
标签: