当前位置: 首页>>代码示例>>Python>>正文


Python SeqFeature.qualifiers["organism"]方法代码示例

本文整理汇总了Python中Bio.SeqFeature.SeqFeature.qualifiers["organism"]方法的典型用法代码示例。如果您正苦于以下问题:Python SeqFeature.qualifiers["organism"]方法的具体用法?Python SeqFeature.qualifiers["organism"]怎么用?Python SeqFeature.qualifiers["organism"]使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Bio.SeqFeature.SeqFeature的用法示例。


在下文中一共展示了SeqFeature.qualifiers["organism"]方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: SeqFeature

# 需要导入模块: from Bio.SeqFeature import SeqFeature [as 别名]
# 或者: from Bio.SeqFeature.SeqFeature import qualifiers["organism"] [as 别名]
 
 seq_record.annotations["taxonomy"] = ['Viruses', 'dsDNA viruses, no RNA stage', 'Baculoviridae', 'unclassified NPV']
 seq_record.annotations["sequence_version"] = 1
 seq_record.annotations["source"] = 'Buzura supperssaria NPV'
 seq_record.annotations["keywords"] = ['']
 seq_record.annotations["accessions"] = ['LC_000001']
 seq_record.annotations["gi"] = '000000001'
 seq_record.annotations["data_file_division"] = 'VRL'
 seq_record.annotations["organism"] = 'Buzura supperssaria NPV'
 seq_record.annotations["date"] = '05-DEC-2012'
 
 source_feature = SeqFeature(FeatureLocation(0, len(seq_record.seq), strand=1), type='source')
 
 source_feature.qualifiers["host"] = ['Buzura supperssaria.']
 source_feature.qualifiers["mol_type"] = ['genomic DNA']
 source_feature.qualifiers["organism"] = ['Buzura supperssaria NPV']
 source_feature.qualifiers["country"] = ['China: Wuhan, Hubei']
 
 seq_record.features.append(source_feature)
 
 count = 0;
 for line in orf_tb_file:
     count += 1;
     cds_num = map(int, line.split('\t'))
     cds_seq = seq_record.seq[cds_num[1] - 1:cds_num[2]]
     std = 1
     if cds_num[0] < 0:
         cds_seq = cds_seq.reverse_complement()
         std = -1
         
     cds_translate = str(cds_seq.translate())
开发者ID:lijax,项目名称:bioscript,代码行数:33,代码来源:fas_orf2fake_gb.py


注:本文中的Bio.SeqFeature.SeqFeature.qualifiers["organism"]方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。