文尼图四套图,像文尼。
pyvenn的Python项目详细描述
绘制四组venn图,如venny(http://bioinfogp.cnb.csic.es/tools/venny/) 但是使用python集合:
安装
安装库,可能在virtualenv中:
$ pip install pyvenny
命令行界面
包含命令行脚本,vennyplot:
usage: vennyplot [-h] --output OUTPUT --sets SETS SETS SETS SETS [--labels LABELS LABELS LABELS LABELS] Generate a Venn diagram of four files taken as sets of lines. optional arguments: -h, --help show this help message and exit --output OUTPUT absolute path to output file --sets SETS SETS SETS SETS absolute paths to four files --labels LABELS LABELS LABELS LABELS four set labels
应用编程接口
在python代码中使用它:
>>> import pyvenny >>> with open('diagram.svg', 'w') as f: f.write( pyvenny.render_four_set_venn( set(['a','b','c','d']), set(['b','c','d','e']), set(['c','d','e','f']), set(['d','e','f','g']))