本文整理汇总了Python中Bio.SeqFeature.SeqFeature.qualifiers["mol_type"]方法的典型用法代码示例。如果您正苦于以下问题:Python SeqFeature.qualifiers["mol_type"]方法的具体用法?Python SeqFeature.qualifiers["mol_type"]怎么用?Python SeqFeature.qualifiers["mol_type"]使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bio.SeqFeature.SeqFeature
的用法示例。
在下文中一共展示了SeqFeature.qualifiers["mol_type"]方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: SeqFeature
# 需要导入模块: from Bio.SeqFeature import SeqFeature [as 别名]
# 或者: from Bio.SeqFeature.SeqFeature import qualifiers["mol_type"] [as 别名]
seq_record.description = 'Buzura supperssaria NPV, complete genome.'
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