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


热门话题
带有嵌套JAR的java RCP ClassNotFoundException   java在输入框中设置默认值,crud应用程序使用spring   java如何在Heroku中使用fs创建新文件   java将JPanel放在JFrame中   java这个正则表达式会匹配“i.imgur.com/xxx”吗?   java在片段内创建RecylerView,而无需在Android中设置片段   Android上Groovy导致java错误的双精度浮点精度损失   swing Java查找JFrame属于JPanel的内容   java Spring junit自连线自定义类本身必须有构造函数吗?   java textswitcher支持前面的文本   从Android客户端到JAXRS的java Post自定义对象   java如何检索JSON数据并使用MPAndroidChart绘制折线图,以及在安卓上的改进   拒绝用户“root”@“localhost”的java c3p0访问(使用密码“是”)   使用Selenium Webdriver自动化ExtJS应用程序时java面临的问题