本文整理汇总了Python中sqlitedict.SqliteDict.itervalues方法的典型用法代码示例。如果您正苦于以下问题:Python SqliteDict.itervalues方法的具体用法?Python SqliteDict.itervalues怎么用?Python SqliteDict.itervalues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sqlitedict.SqliteDict
的用法示例。
在下文中一共展示了SqliteDict.itervalues方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_1_theoretical_ion_space_step
# 需要导入模块: from sqlitedict import SqliteDict [as 别名]
# 或者: from sqlitedict.SqliteDict import itervalues [as 别名]
def test_1_theoretical_ion_space_step(self):
print("test_1_theoretical_ion_space_step")
ms_digest = MSDigestParameters.parse(self.protein_prospector_file)
theo_ions = entry_point.generate_theoretical_ion_space(
self.ms1_matching_output_file, self.glycosylation_sites_file,
ms_digest.constant_modifications, ms_digest.variable_modifications,
ms_digest.enzyme, self.num_procs)
self.assertTrue(os.path.exists(theo_ions))
self.theoretical_ion_space_file = theo_ions
theoretical_ions = SqliteDict(theo_ions, tablename="theoretical_search_space")
sequence_set = theoretical_ions.itervalues()
peptide_sequences = [
sequence.Sequence(s["Seq_with_mod"]) for s in sequence_set]
peptide_mods = set()
for seq in peptide_sequences:
for resid, mod in seq:
peptide_mods.update((m.rule for m in mod))
print(peptide_mods)