另一个seqrecord类有方法:退化seq、基于读取帧的密码子位置等。

seqrecord_expanded的Python项目详细描述


tests
Travis-CI Build StatusRequirements StatusCoverage Status
Code issues
packagePyPI Package latest releasePyPI WheelSupported versionsSupported implementations

另一个seqrecord类具有方法:退化seqs,密码子位置基于 读取帧等

用法

默认情况下,它假定dna序列具有不明确的字符。

>>>fromseqrecord_expandedimportSeqRecordExpanded>>>seq_record=SeqRecordExpanded('TCTGAATGGAAGACAAAGCGTCCA',...voucher_code='CP100-09',...taxonomy={'genus':'Melitaea',...'species':'phoebe',...},...gene_code='EF1a',...reading_frame=1,...table=1,# translation table...)>>># Degenerate sequence standard genetic code>>>seq_record.degenerate()'TCNGARTGGAARACNAARMGNCCN'>>>>>># Degenerate sequence S method>>>seq_record.degenerate(method='S')'AGYGARTGGAARACNAARMGNCCN'>>>>>># Degenerate sequence Z method>>>seq_record.degenerate(method='Z')'TCNGARTGGAARACNAARMGNCCN'>>>>>># Degenerate sequence SZ method>>>seq_record.degenerate(method='SZ')'NNNGARTGGAARACNAARMGNCCN'>>>>>># get first codon positions>>>seq_record.first_codon_position()'TGTAAACC'>>>>>># get second codon positions>>>seq_record.second_codon_position()'CAGACAGC'>>>>>># get third codon positions>>>seq_record.third_codon_position()'TAGGAGTA'>>>>>># get first and second positions>>>seq_record.first_and_second_positions()'TCGATGAAACAACGCC'>>>>>># translate to aminoacid sequence>>>seq_record.translate()'SEWKTKRP'>>># translate to aminoacid sequence>>>seq_record.translate(table=1)'SEWKTKRP'

安装

pip install seqrecord-expanded

要求

pip install -r requirements.txt

兼容性

支持的python版本:2.6、2.7、3.3、3.4、3.5、pypy。

许可证

疯牛病。

作者

seqrecord expandedCarlos Peña编写。

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

推荐PyPI第三方库


热门话题
Kotlin应该为Java类中的合成属性进行反射   hadoop。pig脚本与java嵌入式pig:哪一个最快?   java要求用户在不关闭程序的情况下输入一个double而不是字符串   Raspberry PI和windows pc代码之间的java差异   使用maven的基于java Spring引导概要文件的WAR   Java中的内联数组定义   jsf如何在Tomcat上安装和使用CDI?   当数据来自mySQL时,在java的微调器中删除重复项   java如何定制Android ListView的每一行?   对于web应用程序,为什么java也被称为平台无关?   java如何获得排序hashmap中两个给定键之间的所有键值?   帮我把这个Java翻译成Scheme,让我脑子里的东西运转起来   java共享子域cookie   hibernate多Java列表删除   java队列可以用来交换链表的相邻节点吗?   java遇到错误:当我在安卓应用程序中单击主屏幕快捷方式时,找不到应用程序