本文整理汇总了Python中screed.ScreedDB.itervalues方法的典型用法代码示例。如果您正苦于以下问题:Python ScreedDB.itervalues方法的具体用法?Python ScreedDB.itervalues怎么用?Python ScreedDB.itervalues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类screed.ScreedDB
的用法示例。
在下文中一共展示了ScreedDB.itervalues方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: range
# 需要导入模块: from screed import ScreedDB [as 别名]
# 或者: from screed.ScreedDB import itervalues [as 别名]
for i in range(0, len(str(virus_seq))):
if str(read[i]) != str(virus_seq[i]):
mismatch_count += 1
elif mismatch_count > k:
break
return mismatch_count
# EXAMPLE:
# CGTAGCGATAGAGAGAGAAGGGACT
# CTGAG
birnaxrecords = []
a=0
for record in birna_x_virusdb.itervalues():
birnaxrecords.append(record)
#print "\nPrinting added record\n"
#print record['sequence']
birnaxrecords[a]['sequence'] = str(record['sequence'])
a+=1
print birnaxrecords
#typing: $ records
# PRODUCES: [{'description': 'Drosophila melanogaster birnavirus SW-2009a strain DBV segment A, complete sequence', 'id': 0, 'name': 'gi|262225302|gb|GQ342962.1|', 'sequence': <_screed_attr 'sequence'>}, {'description': 'Drosophila melanogaster birnavirus SW-2009a strain DBV segment B, complete sequence', 'id': 1, 'name': 'gi|262225305|gb|GQ342963.1|', 'sequence': <_screed_attr 'sequence'>}]
#len(record['sequence'])
# 3014
#record['sequence']
# <_screed_attr 'sequence'>
print "\n\n\n"
#print "Printing a count: all birna records (should equal to 2)...\n"