没有项目描述

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第三方库


热门话题
Google应用程序引擎FreeMarker模板java。安全AccessControlException   在Java中,空字符串(“”)如何存储在内存中?   java如何使用PUT进行创建   java无法构造com的实例。谷歌。云数据存储。钥匙   Java递归中的堆栈溢出错误   java通过结构化设计模式重构冗余代码   javascript使用Selenium IDE 2.9.1上传文件   JAVAutil。扫描仪在Java中将文本文件加载到对象中   这个JAVA程序的时间复杂度是多少   java Springboot+tomcat+ssh=连接链路故障   矢量Java不安全操作   用于Java不同生成代码的协议缓冲区gRPC protobuf生成器   java OSGi为什么我的包命名为“unknown0.0.0”和MANIFEST。MF文件被覆盖了吗?   java日期保持为空(Android)   使用stax解析器java解析xml   java有一种方法可以在运行时确定对象是否是使用Lambdaj创建的。关于()方法?