绘制Kraken的摘要输出。
krakenplot的Python项目详细描述
Krakenplot
碱基取代光谱和特征的分析和绘图库。
❯ pip install krakenplot
可能实现的功能包括:
- 条形图或散点图集成,显示分配给系统发生树中每个节点的序列数量。
- 用于forcing的方法对线性分支进行向上或向下计数,以简化序列分类。
- 基于分类学归属和系统发育顺序的分支折叠。
阅读文档:krakenplot.readthedocs.io
>>>fromkrakenplotimportKrakenSummary>>>summary=KrakenSummary('sample-report.txt')>>>summary.newick'(((Mus musculus musculus:1):1,(Rattus norvegicus albus:1):1,Homo sapiens:1),unclassified:1);'
>>>canvas,coords=summary.toytree.draw(>>>width=500,>>>height=175,>>>tip_labels_color=['red','black','black','black'],>>># Make Carl Linnaeus proud and italicize those species names!>>>tip_labels=[f'<i>{l}</i>'forlinsummary.toytree.get_tip_labels()])