-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(abr-testing): protocol to test disposable lid with any pcr plate…
… type (#16837) <!-- Thanks for taking the time to open a Pull Request (PR)! Please make sure you've read the "Opening Pull Requests" section of our Contributing Guide: https://github.com/Opentrons/opentrons/blob/edge/CONTRIBUTING.md#opening-pull-requests GitHub provides robust markdown to format your PR. Links, diagrams, pictures, and videos along with text formatting make it possible to create a rich and informative PR. For more information on GitHub markdown, see: https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax To ensure your code is reviewed quickly and thoroughly, please fill out the sections below to the best of your ability! --> # Overview Protocol for testing `opentrons_tough_pcr_auto_sealing_lid` with any pcr plate ## Test Plan and Hands on Testing - Simulated profile with each lid type - Physically tested lid on thermocycler with biorad plate ## Changelog - added helper function for parameter with pcr plate types - added evaporation protocol - fixed abr1 bug where it resets a tip rack twice which causes the pipette to pick up from an empty slot - changed abr10 protocol to reflect comments about liquids at top ## Review requests <!-- - What do you need from reviewers to feel confident this PR is ready to merge? - Ask questions. --> ## Risk assessment - lid is currently not compatible with biorad plate or nest plate, but pr in progress for this.
- Loading branch information
Showing
5 changed files
with
162 additions
and
24 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
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
109 changes: 109 additions & 0 deletions
109
abr-testing/abr_testing/protocols/test_protocols/tc_biorad_evap_test.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,109 @@ | ||
"""Test TC Disposable Lid with BioRad Plate.""" | ||
|
||
from opentrons.protocol_api import ( | ||
ProtocolContext, | ||
ParameterContext, | ||
Well, | ||
Labware, | ||
InstrumentContext, | ||
) | ||
from typing import List | ||
from abr_testing.protocols import helpers | ||
from opentrons.protocol_api.module_contexts import ThermocyclerContext | ||
from opentrons.hardware_control.modules.types import ThermocyclerStep | ||
|
||
metadata = {"protocolName": "Tough Auto Seal Lid Evaporation Test"} | ||
requirements = {"robotType": "Flex", "apiLevel": "2.21"} | ||
|
||
|
||
def add_parameters(parameters: ParameterContext) -> None: | ||
"""Add Parameters.""" | ||
helpers.create_single_pipette_mount_parameter(parameters) | ||
helpers.create_tc_lid_deck_riser_parameter(parameters) | ||
helpers.create_tc_compatible_labware_parameter(parameters) | ||
|
||
|
||
def _pcr_cycle(thermocycler: ThermocyclerContext) -> None: | ||
"""30x cycles of: 70° for 30s 72° for 30s 95° for 10s.""" | ||
profile_TAG2: List[ThermocyclerStep] = [ | ||
{"temperature": 70, "hold_time_seconds": 30}, | ||
{"temperature": 72, "hold_time_seconds": 30}, | ||
{"temperature": 95, "hold_time_seconds": 10}, | ||
] | ||
thermocycler.execute_profile( | ||
steps=profile_TAG2, repetitions=30, block_max_volume=50 | ||
) | ||
|
||
|
||
def _fill_with_liquid_and_measure( | ||
protocol: ProtocolContext, | ||
pipette: InstrumentContext, | ||
reservoir: Labware, | ||
plate_in_cycler: Labware, | ||
) -> None: | ||
"""Fill plate with 10 ul per well.""" | ||
locations: List[Well] = [ | ||
plate_in_cycler["A1"], | ||
plate_in_cycler["A2"], | ||
plate_in_cycler["A3"], | ||
plate_in_cycler["A4"], | ||
plate_in_cycler["A5"], | ||
plate_in_cycler["A6"], | ||
plate_in_cycler["A7"], | ||
plate_in_cycler["A8"], | ||
plate_in_cycler["A9"], | ||
plate_in_cycler["A10"], | ||
plate_in_cycler["A11"], | ||
plate_in_cycler["A12"], | ||
] | ||
volumes = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10] | ||
protocol.pause("Weight Armadillo Plate, place on thermocycler") | ||
# pipette 10uL into Armadillo wells | ||
source_well: Well = reservoir["A1"] | ||
pipette.distribute( | ||
volume=volumes, | ||
source=source_well, | ||
dest=locations, | ||
return_tips=True, | ||
blow_out=False, | ||
) | ||
protocol.pause("Weight Armadillo Plate, place on thermocycler, put on lid") | ||
|
||
|
||
def run(ctx: ProtocolContext) -> None: | ||
"""Evaporation Test.""" | ||
pipette_mount = ctx.params.pipette_mount # type: ignore[attr-defined] | ||
deck_riser = ctx.params.deck_riser # type: ignore[attr-defined] | ||
labware_tc_compatible = ctx.params.labware_tc_compatible # type: ignore[attr-defined] | ||
tiprack_50 = ctx.load_labware("opentrons_flex_96_tiprack_50ul", "B2") | ||
ctx.load_trash_bin("A3") | ||
tc_mod: ThermocyclerContext = ctx.load_module( | ||
helpers.tc_str | ||
) # type: ignore[assignment] | ||
plate_in_cycler = tc_mod.load_labware(labware_tc_compatible) | ||
p50 = ctx.load_instrument("flex_8channel_50", pipette_mount, tip_racks=[tiprack_50]) | ||
unused_lids = helpers.load_disposable_lids(ctx, 5, ["D2"], deck_riser) | ||
top_lid = unused_lids[0] | ||
reservoir = ctx.load_labware("nest_12_reservoir_15ml", "A2") | ||
tc_mod.open_lid() | ||
tc_mod.set_block_temperature(4) | ||
tc_mod.set_lid_temperature(105) | ||
|
||
# hold at 95° for 3 minutes | ||
profile_TAG: List[ThermocyclerStep] = [{"temperature": 95, "hold_time_minutes": 3}] | ||
# hold at 72° for 5min | ||
profile_TAG3: List[ThermocyclerStep] = [{"temperature": 72, "hold_time_minutes": 5}] | ||
tc_mod.open_lid() | ||
_fill_with_liquid_and_measure(ctx, p50, reservoir, plate_in_cycler) | ||
ctx.move_labware(top_lid, plate_in_cycler, use_gripper=True) | ||
tc_mod.close_lid() | ||
tc_mod.execute_profile(steps=profile_TAG, repetitions=1, block_max_volume=50) | ||
_pcr_cycle(tc_mod) | ||
tc_mod.execute_profile(steps=profile_TAG3, repetitions=1, block_max_volume=50) | ||
# # # Cool to 4° | ||
tc_mod.set_block_temperature(4) | ||
tc_mod.set_lid_temperature(105) | ||
# Open lid | ||
tc_mod.open_lid() | ||
ctx.move_labware(top_lid, "C2", use_gripper=True) | ||
ctx.move_labware(top_lid, unused_lids[1], use_gripper=True) |