另一个seqrecord类有方法:退化seq、基于读取帧的密码子位置等。
seqrecord_expanded的Python项目详细描述
tests | |
---|---|
package |
另一个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。
许可证
疯牛病。