Skip to content

Commit 2a071aa

Browse files
committed
restore tutorial protocol files
1 parent 1591f9b commit 2a071aa

File tree

4 files changed

+146
-0
lines changed

4 files changed

+146
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
from opentrons import protocol_api
2+
3+
metadata = {
4+
"apiLevel": "2.16",
5+
"protocolName": "Serial Dilution Tutorial – OT-2 single-channel",
6+
"description": """This protocol is the outcome of following the
7+
Python Protocol API Tutorial located at
8+
https://docs.opentrons.com/v2/tutorial.html. It takes a
9+
solution and progressively dilutes it by transferring it
10+
stepwise across a plate.""",
11+
"author": "New API User",
12+
}
13+
14+
15+
def run(protocol: protocol_api.ProtocolContext):
16+
tips = protocol.load_labware("opentrons_96_tiprack_300ul", 1)
17+
reservoir = protocol.load_labware("nest_12_reservoir_15ml", 2)
18+
plate = protocol.load_labware("nest_96_wellplate_200ul_flat", 3)
19+
left_pipette = protocol.load_instrument(
20+
"p300_single_gen2", "left", tip_racks=[tips]
21+
)
22+
23+
# distribute diluent
24+
left_pipette.transfer(100, reservoir["A1"], plate.wells())
25+
26+
# loop through each row
27+
for i in range(8):
28+
29+
# save the destination row to a variable
30+
row = plate.rows()[i]
31+
32+
# transfer solution to first well in column
33+
left_pipette.transfer(100, reservoir["A2"], row[0], mix_after=(3, 50))
34+
35+
# dilute the sample down the row
36+
left_pipette.transfer(100, row[:11], row[1:], mix_after=(3, 50))
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
from opentrons import protocol_api
2+
3+
metadata = {
4+
"protocolName": "Serial Dilution Tutorial – Flex 1-channel",
5+
"description": """This protocol is the outcome of following the
6+
Python Protocol API Tutorial located at
7+
https://docs.opentrons.com/v2/tutorial.html. It takes a
8+
solution and progressively dilutes it by transferring it
9+
stepwise across a plate.""",
10+
"author": "New API User",
11+
}
12+
13+
requirements = {"robotType": "Flex", "apiLevel": "2.16"}
14+
15+
16+
def run(protocol: protocol_api.ProtocolContext):
17+
tips = protocol.load_labware("opentrons_flex_96_tiprack_200ul", "D1")
18+
reservoir = protocol.load_labware("nest_12_reservoir_15ml", "D2")
19+
plate = protocol.load_labware("nest_96_wellplate_200ul_flat", "D3")
20+
trash = protocol.load_trash_bin("A3")
21+
left_pipette = protocol.load_instrument(
22+
"flex_1channel_1000", "left", tip_racks=[tips]
23+
)
24+
25+
# distribute diluent
26+
left_pipette.transfer(100, reservoir["A1"], plate.wells())
27+
28+
# loop through each row
29+
for i in range(8):
30+
31+
# save the destination row to a variable
32+
row = plate.rows()[i]
33+
34+
# transfer solution to first well in column
35+
left_pipette.transfer(100, reservoir["A2"], row[0], mix_after=(3, 50))
36+
37+
# dilute the sample down the row
38+
left_pipette.transfer(100, row[:11], row[1:], mix_after=(3, 50))
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
from opentrons import protocol_api
2+
3+
metadata = {
4+
"apiLevel": "2.16",
5+
"protocolName": "Serial Dilution Tutorial – OT-2 8-channel",
6+
"description": """This protocol is the outcome of following the
7+
Python Protocol API Tutorial located at
8+
https://docs.opentrons.com/v2/tutorial.html. It takes a
9+
solution and progressively dilutes it by transferring it
10+
stepwise across a plate.""",
11+
"author": "New API User",
12+
}
13+
14+
15+
def run(protocol: protocol_api.ProtocolContext):
16+
tips = protocol.load_labware("opentrons_96_tiprack_300ul", 1)
17+
reservoir = protocol.load_labware("nest_12_reservoir_15ml", 2)
18+
plate = protocol.load_labware("nest_96_wellplate_200ul_flat", 3)
19+
left_pipette = protocol.load_instrument(
20+
"p300_multi_gen2", "right", tip_racks=[tips]
21+
)
22+
23+
# distribute diluent
24+
left_pipette.transfer(100, reservoir["A1"], plate.rows()[0])
25+
26+
# no loop, 8-channel pipette
27+
28+
# save the destination row to a variable
29+
row = plate.rows()[0]
30+
31+
# transfer solution to first well in column
32+
left_pipette.transfer(100, reservoir["A2"], row[0], mix_after=(3, 50))
33+
34+
# dilute the sample down the row
35+
left_pipette.transfer(100, row[:11], row[1:], mix_after=(3, 50))
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
from opentrons import protocol_api
2+
3+
metadata = {
4+
"protocolName": "Serial Dilution Tutorial – Flex 8-channel",
5+
"description": """This protocol is the outcome of following the
6+
Python Protocol API Tutorial located at
7+
https://docs.opentrons.com/v2/tutorial.html. It takes a
8+
solution and progressively dilutes it by transferring it
9+
stepwise across a plate.""",
10+
"author": "New API User",
11+
}
12+
13+
requirements = {"robotType": "Flex", "apiLevel": "2.16"}
14+
15+
16+
def run(protocol: protocol_api.ProtocolContext):
17+
tips = protocol.load_labware("opentrons_96_tiprack_300ul", "D1")
18+
reservoir = protocol.load_labware("nest_12_reservoir_15ml", "D2")
19+
plate = protocol.load_labware("nest_96_wellplate_200ul_flat", "D3")
20+
trash = protocol.load_trash_bin("A3")
21+
left_pipette = protocol.load_instrument(
22+
"flex_8channel_1000", "right", tip_racks=[tips]
23+
)
24+
25+
# distribute diluent
26+
left_pipette.transfer(100, reservoir["A1"], plate.rows()[0])
27+
28+
# no loop, 8-channel pipette
29+
30+
# save the destination row to a variable
31+
row = plate.rows()[0]
32+
33+
# transfer solution to first well in column
34+
left_pipette.transfer(100, reservoir["A2"], row[0], mix_after=(3, 50))
35+
36+
# dilute the sample down the row
37+
left_pipette.transfer(100, row[:11], row[1:], mix_after=(3, 50))

0 commit comments

Comments
 (0)