没有项目描述

caravagene的Python项目详细描述


…原始::html

<;p align="center">;
<;img alt="caravagene logo"title="lala logo" src="https://raw.githubusercontent.com/edinburgh-genome-foundry/caravagene/master/logo.png"width="500">;
<;br/><;br/>>;
<;p>;

图片:https://travis-ci.org/edinburgh-genome-foundry/caravagene.svg?branch=master
:目标:https://travis ci.org/edinburgh genome foundry/lala
:alt:travis ci构建状态

…图片::https://coveralls.io/repos/github/edinburgh-genome-foundry/caravagene/badge.svg?branch=master
:目标:https://coveralls.io/github/edinburgh-genome-foundry/caravagene?branch=master


caravagene(完整文档`此处<;https://edinburgh genome foundry.github.io/caravagene/>;``uu)是一个python库,用于从一个部分列表绘制dna结构的模式:

。代码::python



部分('insulator',label='i1')
])


构造.到图像('construct.jpeg')

…原始:html

<;p align="center">;
<;img src="https://raw.githubusercontent.com/edinburgh-genome-foundry/caravagene/master/examples/construct.jpeg"width="600">;
<;/p>;

https://raw.githubusercontent.com/edinburgh genome foundry/caravagene/master/examples/multiconstruct.pdf>;`
显示多个结构:

…代码::python


部分('rc1',category='recombose-recognition-sequence'),
部分('my promotor',category='promotor'),
部分('rna稳定性',category='rna-stability-sequence'),
部分('<;i>;acs<;/i>;',category='cds'),
部件('polya',category='terminator'),
部件('i1',category='绝缘体'),
构造(name="asm2",部件=[
部件('my promotor',category='promotor'),
部分('gene with a very long name',category='cds'),
部分('polya',category='terminator'),
部分('i1',category='insulator')
]
]
My_constructs.to_pdf('multiconstruct.pdf')

……原始::html

<;p align="center">;
<;img src="https://raw.githubusercontent.com/edinburgh-genome-foundry/caravagene/master/examples/multiconstruct_screen_capture.png"width="800">;
<;/p>;

也可以扩展caravagene以支持其他类别/符号,如下所示:

…代码::python

from caravagene import symbol_files
symbol_files['my-new-category']="path/to/some/symbol.svg'


>最后,这里是一个使用excel电子表格的示例:

**电子表格:**

。原始:html

<;p align="center">;
<;img src="https://raw.githubusercontent.com/edinburgh-genome-foundry/caravagene/master/examples/from_spreadsheet_sample.png"width="600">;
<;/p>;

**Python代码:**

代码::python

from caravagene import constructlist
my_constructs=constructlist("my_spreadsheet.xlsx")
my_constructs.to_pdf('my_schemas.pdf')

或**命令行(一次性使用):**

代码::外壳y_spreadsheet.xlsx my_schemas.pdf


或**命令行(当电子表格在磁盘上更改时重新呈现):**

…代码::shell

caravagene my_spreadsheet.xlsx my_schemas.pdf--查看

**输出:**




…原始:html

<;p align="center">;
<;img src="https://raw.githubusercontent.com/edinburgh-genome-foundry/caravagene/master/examples/from_spreadsheet_capture.png"width="700">;
<;/p>;



安装
----


安装它。代码::shell

(sudo)apt get install wkhtmltopf




代码::shell

sudo pip install caravagene

代码::shell

sudo python setup.py install



license
--

在github<;https://github.com/edinburgh genome foundry/caravagene>;``上发布,获得麻省理工学院许可证(版权所有,Edinburgh genome foundry)。
欢迎大家参与!< BR>

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
不同窗口中的java视图   java创建SQL插入语句到CSV文件   java效率检查:Opengl动画代码   在clojure中处理Java可选<T>   java理解camel中的输入/输出交换模式行为   对于使用jpackage构建的应用程序,java LSOpenURLsWithRole()失败,错误为10810   多线程Java同步:多重倒计时闩锁   java哪个类应该做这项工作?   java在运行时出现问题。getRuntime()。执行官   java我们不能在GAE中使用集合或集合作为返回类型吗?   amazon web服务返回类型与RequestHandler<Object,String>不兼容。JAVA中的HandlerRequest(对象、上下文)   如何在Java中使用ExecutorService设置任务的超时时间