-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
“ramifarawi”
committed
Mar 6, 2024
1 parent
1fba176
commit 1a099ba
Showing
3 changed files
with
10 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from opentrons import protocol_api | ||
|
||
|
||
metadata = { | ||
'protocolName': 'Plate Filling with CSV Import', | ||
'author': 'Rami Farawi <[email protected]>', | ||
|
@@ -13,14 +14,12 @@ def run(ctx): | |
[csv_samp, | ||
source_format, | ||
dest_format, | ||
transfer_vol, | ||
starting_tip, | ||
p300_mount, | ||
p20_mount] = get_values( # noqa: F821 | ||
"csv_samp", | ||
"source_format", | ||
"dest_format", | ||
"transfer_vol", | ||
"starting_tip", | ||
"p300_mount", | ||
"p20_mount") | ||
|
@@ -52,6 +51,7 @@ def run(ctx): | |
else "corning_384_wellplate_112ul_flat", 2 | ||
if dest_format == "384" | ||
else 1) | ||
transfer_vol = float(csv_lines[0][5]) | ||
|
||
if transfer_vol > 20: | ||
tips300 = [ctx.load_labware('opentrons_96_tiprack_300ul', slot) | ||
|
@@ -78,23 +78,28 @@ def pick_up(pip): | |
pick_up(pip) | ||
|
||
# protocol | ||
|
||
pip = p20 if transfer_vol <= 20 else p300 | ||
pip.flow_rate.aspirate = 1 | ||
pip.flow_rate.dispense = 2 | ||
|
||
if transfer_vol > 20: | ||
pip.starting_tip = tips300[0].wells()[starting_tip] | ||
else: | ||
pip.starting_tip = tips20[0].wells()[starting_tip] | ||
|
||
for row in csv_lines: | ||
source_plate_slot = int(row[1]) | ||
source_well_name = row[2] | ||
dest_well_name = row[4] | ||
pip_transfer_vol = float(row[5]) | ||
|
||
source = ctx.loaded_labwares[source_plate_slot].wells_by_name()[source_well_name] # noqa: E501 | ||
dest = dest_plate.wells_by_name()[dest_well_name] | ||
|
||
pick_up(pip) | ||
pip.transfer(transfer_vol, source.bottom(z=0.2), dest, new_tip='never', | ||
pip.transfer(pip_transfer_vol, source.bottom(z=0.2), dest, | ||
new_tip='never', | ||
blow_out=True, blowout_location='destination well') | ||
pip.drop_tip() | ||
ctx.comment('\n\n') |
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