本文整理汇总了Python中autoprotocol.protocol.Protocol.gel_purify方法的典型用法代码示例。如果您正苦于以下问题:Python Protocol.gel_purify方法的具体用法?Python Protocol.gel_purify怎么用?Python Protocol.gel_purify使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类autoprotocol.protocol.Protocol
的用法示例。
在下文中一共展示了Protocol.gel_purify方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_purify
# 需要导入模块: from autoprotocol.protocol import Protocol [as 别名]
# 或者: from autoprotocol.protocol.Protocol import gel_purify [as 别名]
def test_purify(self):
"""
Desired Output:
1. Perform gel purification on the 0.8% agarose gel with band range(s) 0-10
2. Perform gel purification on the 0.8% agarose gel with band range(s) 0-10
3. Perform gel purification on the 0.8% agarose gel with band range(s) 0-10
"""
p = Protocol()
sample_wells = p.ref("sample_wells", None, "96-pcr",
discard=True).wells_from(0, 20)
extract_wells = [p.ref("extract_%s" % i, None, "micro-1.5",
storage="cold_4").well(0) for i in sample_wells]
extract = [
{
"source": sample_wells[i],
"band_list": [{
"band_size_range": {"min_bp": 0, "max_bp": 10},
"elution_volume": Unit("5:microliter"),
"elution_buffer": "water",
"destination": d
}],
"lane": None,
"gel": None
} for i, d in enumerate(extract_wells)
]
p.gel_purify(extract, "10:microliter",
"size_select(8,0.8%)", "ladder1", "gel_purify_test")
pjsonString = json.dumps(p.as_dict(), indent=2)
pjson = json.loads(pjsonString)
parser_instance = english.AutoprotocolParser(pjson)
parser_instance.job_tree()
parsed_output = parser_instance.parsed_output
steps = parser_instance.object_list
forest = parser_instance.forest_list
self.assertEqual(
parsed_output, ["Perform gel purification on the 0.8% agarose gel with band range(s) 0-10",
"Perform gel purification on the 0.8% agarose gel with band range(s) 0-10",
"Perform gel purification on the 0.8% agarose gel with band range(s) 0-10"])
self.assertEqual(forest, [[1, [2, [3]]]])