-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(api): new and updated Tutorial protocol files (#13075)
* update OT-2, new Flex protocols * links to new protocols * new pipette load names * var name tiprack -> tips * more useful `protocolName`s
- Loading branch information
Showing
5 changed files
with
91 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from opentrons import protocol_api | ||
|
||
metadata = { | ||
'protocolName': 'Serial Dilution Tutorial – Flex 1-channel', | ||
'description': '''This protocol is the outcome of following the | ||
Python Protocol API Tutorial located at | ||
https://docs.opentrons.com/v2/tutorial.html. It takes a | ||
solution and progressively dilutes it by transferring it | ||
stepwise across a plate.''', | ||
'author': 'New API User' | ||
} | ||
|
||
requirements = { | ||
'robotType': 'Flex', | ||
'apiLevel': '2.15' | ||
} | ||
|
||
def run(protocol: protocol_api.ProtocolContext): | ||
tips = protocol.load_labware('opentrons_flex_96_tiprack_200ul', 'D1') | ||
reservoir = protocol.load_labware('nest_12_reservoir_15ml', 'D2') | ||
plate = protocol.load_labware('nest_96_wellplate_200ul_flat', 'D3') | ||
left_pipette = protocol.load_instrument('flex_1channel_1000', 'left', tip_racks=[tips]) | ||
|
||
# distribute diluent | ||
left_pipette.transfer(100, reservoir['A1'], plate.wells()) | ||
|
||
# loop through each row | ||
for i in range(8): | ||
|
||
# save the destination row to a variable | ||
row = plate.rows()[i] | ||
|
||
# transfer solution to first well in column | ||
left_pipette.transfer(100, reservoir['A2'], row[0], mix_after=(3, 50)) | ||
|
||
# dilute the sample down the row | ||
left_pipette.transfer(100, row[:11], row[1:], mix_after=(3, 50)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
api/docs/v2/example_protocols/dilution_tutorial_multi_flex.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from opentrons import protocol_api | ||
|
||
metadata = { | ||
'protocolName': 'Serial Dilution Tutorial – Flex 8-channel', | ||
'description': '''This protocol is the outcome of following the | ||
Python Protocol API Tutorial located at | ||
https://docs.opentrons.com/v2/tutorial.html. It takes a | ||
solution and progressively dilutes it by transferring it | ||
stepwise across a plate.''', | ||
'author': 'New API User' | ||
} | ||
|
||
requirements = { | ||
'robotType': 'Flex', | ||
'apiLevel': '2.15' | ||
} | ||
|
||
def run(protocol: protocol_api.ProtocolContext): | ||
tips = protocol.load_labware('opentrons_96_tiprack_300ul', 'D1') | ||
reservoir = protocol.load_labware('nest_12_reservoir_15ml', 'D2') | ||
plate = protocol.load_labware('nest_96_wellplate_200ul_flat', 'D3') | ||
left_pipette = protocol.load_instrument('flex_8channel_1000', 'right', tip_racks=[tips]) | ||
|
||
# distribute diluent | ||
left_pipette.transfer(100, reservoir['A1'], plate.rows()[0]) | ||
|
||
# no loop, 8-channel pipette | ||
|
||
# save the destination row to a variable | ||
row = plate.rows()[0] | ||
|
||
# transfer solution to first well in column | ||
left_pipette.transfer(100, reservoir['A2'], row[0], mix_after=(3, 50)) | ||
|
||
# dilute the sample down the row | ||
left_pipette.transfer(100, row[:11], row[1:], mix_after=(3, 50)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters