Skip to content

Commit 2bfe813

Browse files
committed
abr11 protocol with stacker
1 parent b4bfa2d commit 2bfe813

File tree

2 files changed

+32
-33
lines changed

2 files changed

+32
-33
lines changed

abr-testing/abr_testing/protocols/active_protocols/11_Dynabeads_IP_Flex_96well_RIT.py

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -65,35 +65,33 @@ def run(protocol: ProtocolContext) -> None:
6565
# if on deck:
6666
INCUBATION_SPEED = heater_shaker_speed * 0.5
6767
INCUBATION_MIN = 60
68-
# load labware
69-
70-
sample_plate_1 = protocol.load_labware(
71-
"nest_96_wellplate_2ml_deep", "B2", "sample plate 1"
68+
# load labware stacker
69+
stacker_deep_wells = helpers.load_stacker_module(
70+
protocol, "PS241204SZEVT22", "C4", "nest_96_wellplate_2ml_deep"
7271
)
73-
sample_plate_2 = protocol.load_labware(
74-
"nest_96_wellplate_2ml_deep", "C4", "sample plate 2"
75-
)
76-
72+
# load labware
73+
sample_plate_1 = stacker_deep_wells.unload_and_move_labware("B2")
7774
wash_res = protocol.load_labware("nest_12_reservoir_15ml", "B1", "wash")
7875
reagent_res = protocol.load_labware(
7976
"opentrons_15_tuberack_nest_15ml_conical", "C3", "reagents"
8077
)
8178
waste_res = protocol.load_labware("nest_1_reservoir_290ml", "D2", "Liquid Waste")
82-
83-
tips = protocol.load_labware("opentrons_flex_96_tiprack_1000ul", "B3")
84-
tips_sample = protocol.load_labware(
85-
"opentrons_flex_96_tiprack_1000ul", "A2", "sample tips"
79+
# stacker 1: 1000 ul tips
80+
tip_stacker_1000 = helpers.load_stacker_module(
81+
protocol, "PS241204SZEVT25", "B4", "opentrons_flex_96_tiprack_1000ul"
8682
)
83+
# Unload tip racks
84+
tips = tip_stacker_1000.unload_and_move_labware("B3")
85+
tips_sample = tip_stacker_1000.unload_and_move_labware("A2")
8786
tips_sample_loc = tips_sample.wells()[:95]
87+
tips_reused = tip_stacker_1000.unload_and_move_labware("C2")
88+
tips_reused_loc = tips_reused.wells()[:95]
89+
tip_rack_list: List[Labware] = [tips, tips_sample, tips_reused]
8890
if READY_FOR_SDSPAGE == 0:
89-
tips_elu = protocol.load_labware(
90-
"opentrons_flex_96_tiprack_1000ul", "A1", "elution tips"
91-
)
91+
tips_elu = tip_stacker_1000.unload_and_move_labware("A1")
9292
tips_elu_loc = tips_elu.wells()[:95]
93-
tips_reused = protocol.load_labware(
94-
"opentrons_flex_96_tiprack_1000ul", "C2", "reused tips"
95-
)
96-
tips_reused_loc = tips_reused.wells()[:95]
93+
tip_rack_list.append(tips_elu)
94+
9795
p1000 = protocol.load_instrument(
9896
"flex_8channel_1000", eight_channel_mount, tip_racks=[tips]
9997
)
@@ -103,24 +101,21 @@ def run(protocol: ProtocolContext) -> None:
103101
h_s: HeaterShakerContext = protocol.load_module(
104102
helpers.hs_str, "D1"
105103
) # type: ignore[assignment]
106-
working_plate, h_s_adapter = helpers.load_hs_adapter_and_labware(
107-
"nest_96_wellplate_2ml_deep", h_s, "Working Plate"
108-
)
104+
h_s_adapter = h_s.load_adapter("opentrons_96_deep_well_adapter")
105+
h_s.open_labware_latch()
106+
working_plate = stacker_deep_wells.unload_and_move_labware(h_s_adapter)
109107

110108
if READY_FOR_SDSPAGE == 0:
111109
temp: TemperatureModuleContext = protocol.load_module(
112110
helpers.temp_str, "D3"
113111
) # type: ignore[assignment]
114-
final_plate, temp_adapter = helpers.load_temp_adapter_and_labware(
115-
"nest_96_wellplate_2ml_deep", temp, "Final Plate"
116-
)
112+
temp_adapter = temp.load_adapter("opentrons_96_deep_well_adapter")
113+
final_plate = stacker_deep_wells.unload_and_move_labware(temp_adapter)
117114
mag: MagneticBlockContext = protocol.load_module(
118115
helpers.mag_str, "C1"
119116
) # type: ignore[assignment]
120-
121117
# liquids
122118
samples1 = sample_plate_1.rows()[0][:NUM_COL] # 1
123-
samples2 = sample_plate_2.rows()[0][:NUM_COL] # 1
124119
beads = reagent_res.wells()[0] # 2
125120
ab = reagent_res.wells()[1] # 3
126121
elu = reagent_res.wells()[2] # 4
@@ -139,7 +134,6 @@ def run(protocol: ProtocolContext) -> None:
139134
"Elution": [{"well": elu, "volume": 9800.0}],
140135
"Wash": [{"well": wash, "volume": 1500.0}],
141136
"Samples 1": [{"well": samples1, "volume": 250.0}],
142-
"Samples 2": [{"well": samples2, "volume": 250.0}],
143137
}
144138
helpers.find_liquid_height_of_loaded_liquids(
145139
protocol, liquid_vols_and_wells, p1000_single
@@ -296,12 +290,14 @@ def run(sample_plate: Labware) -> None:
296290
use_gripper=True,
297291
flex_stacker=True,
298292
)
299-
helpers.move_labware_to_destination(
300-
protocol=protocol, labware=sample_plate_2, dest="B2", use_gripper=True
301-
)
293+
sample_plate_2 = stacker_deep_wells.unload_and_move_labware("B2")
294+
stacker_deep_wells.move_and_store_labware(sample_plate_1)
295+
302296
run(sample_plate_2)
303297

304298
helpers.clean_up_plates(p1000_single, [wash_res], waste, 1000)
305299
helpers.find_liquid_height_of_all_wells(protocol, p1000_single, [waste_res["A1"]])
300+
# reload tip racks and labware
301+
helpers.move_to_stacker_and_store(tip_stacker_1000, tip_rack_list)
306302
if deactivate_modules_bool:
307303
helpers.deactivate_modules(protocol)

abr-testing/abr_testing/protocols/helpers.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,9 +688,12 @@ def unload_and_move(
688688
stacker.unload_and_move_labware(new_location=new_location)
689689

690690

691-
def move_to_stacker_and_store(stacker: StackerModule, lw: Labware) -> None:
691+
def move_to_stacker_and_store(
692+
stacker: StackerModule, list_of_labware: List[Labware]
693+
) -> None:
692694
"""Move labware from deck into stacker."""
693-
stacker.move_and_store_labware(lw=lw)
695+
for labware in list_of_labware:
696+
stacker.move_and_store_labware(lw=labware)
694697

695698

696699
def move_lid_from_stacker_to_tc_plate(

0 commit comments

Comments
 (0)