本文整理汇总了Python中autoprotocol.protocol.Protocol.dispense_full_plate方法的典型用法代码示例。如果您正苦于以下问题:Python Protocol.dispense_full_plate方法的具体用法?Python Protocol.dispense_full_plate怎么用?Python Protocol.dispense_full_plate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类autoprotocol.protocol.Protocol
的用法示例。
在下文中一共展示了Protocol.dispense_full_plate方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_web_example
# 需要导入模块: from autoprotocol.protocol import Protocol [as 别名]
# 或者: from autoprotocol.protocol.Protocol import dispense_full_plate [as 别名]
def test_web_example(self):
p = Protocol()
bacterial_sample = p.ref("bacteria", None, "micro-1.5", discard=True)
test_plate = p.ref("test_plate", None, "96-flat", storage="cold_4")
p.dispense_full_plate(test_plate, "lb-broth-noAB", "50:microliter")
w = 0
amt = 1
while amt < 20:
p.transfer(bacterial_sample.well(
0), test_plate.well(w), "%d:microliter" % amt)
amt += 2
w += 1
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(forest, [[1], [2], [3], [4], [5], [
6], [7], [8], [9], [10], [11]])
示例2: test_dispense_suite
# 需要导入模块: from autoprotocol.protocol import Protocol [as 别名]
# 或者: from autoprotocol.protocol.Protocol import dispense_full_plate [as 别名]
def test_dispense_suite(self):
"""
Desired Output:
1. Dispense 100 microliters of water to the full plate of sample_plate5
2. Dispense corresponding amounts of water to 12 column(s) of sample_plate5
3. Dispense 50 microliters of reagent with resource ID rs17gmh5wafm5p to the full plate of sample_plate5
"""
p = Protocol()
sample_plate5 = p.ref("sample_plate5", None,
"96-flat", storage="warm_37")
p.dispense_full_plate(sample_plate5, "water", "100:microliter")
p.dispense(sample_plate5,
"water",
[{"column": 0, "volume": "10:microliter"},
{"column": 1, "volume": "20:microliter"},
{"column": 2, "volume": "30:microliter"},
{"column": 3, "volume": "40:microliter"},
{"column": 4, "volume": "50:microliter"},
{"column": 5, "volume": "60:microliter"},
{"column": 6, "volume": "70:microliter"},
{"column": 7, "volume": "80:microliter"},
{"column": 8, "volume": "90:microliter"},
{"column": 9, "volume": "100:microliter"},
{"column": 10, "volume": "110:microliter"},
{"column": 11, "volume": "120:microliter"}
])
p.dispense_full_plate(sample_plate5, "rs17gmh5wafm5p", "50:microliter", is_resource_id=True)
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
forest = parser_instance.forest_list
self.assertEqual(
parsed_output, ["Dispense 100 microliters of water to the full plate of sample_plate5",
"Dispense corresponding amounts of water to 12 column(s) of sample_plate5",
"Dispense 50 microliters of resource with resource ID rs17gmh5wafm5p to the full plate of sample_plate5"])
self.assertEqual(forest, [[1, [2, [3]]]])