Skip to content

Commit

Permalink
add more protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekMaggio committed Mar 4, 2024
1 parent 2efbead commit 56c0390
Show file tree
Hide file tree
Showing 16 changed files with 7,709 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Pulled from: https://github.com/Opentrons/opentrons/pull/14491


requirements = {
"robotType": "Flex",
"apiLevel": "2.14",
}

def run(protocol):
thermocycler = protocol.load_module('thermocycler module gen2')

assert protocol.loaded_modules == {"B1": thermocycler}
assert protocol.deck["A1"] == thermocycler
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Pulled from: https://github.com/Opentrons/opentrons/pull/14491


requirements = {
"robotType": "Flex",
"apiLevel": "2.14",
}

def run(protocol):
thermocycler = protocol.load_module('thermocycler module gen2')

assert protocol.loaded_modules == {"B1": thermocycler}
assert protocol.deck["A1"] == thermocycler
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Pulled from: https://github.com/Opentrons/opentrons/pull/14475


metadata = {
'protocolName': 'Thermocycler conflict 1',
}

requirements = {
"robotType": "Flex",
"apiLevel": "2.16"
}


def run(context):
thermocycler = context.load_module("thermocyclerModuleV2")
trash = context.load_trash_bin('A1')
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Pulled from: https://github.com/Opentrons/opentrons/pull/14491


requirements = {
"robotType": "Flex",
"apiLevel": "2.14",
}

def run(protocol):
thermocycler = protocol.load_module('thermocycler module gen2')

assert protocol.loaded_modules == {"B1": thermocycler}
assert protocol.deck["A1"] == thermocycler
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Pulled from: https://github.com/Opentrons/opentrons/pull/14491


requirements = {
"robotType": "Flex",
"apiLevel": "2.14",
}

def run(protocol):
thermocycler = protocol.load_module('thermocycler module gen2')

assert protocol.loaded_modules == {"B1": thermocycler}
assert protocol.deck["A1"] == thermocycler
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Pulled from: https://github.com/Opentrons/opentrons/pull/14547


from opentrons.protocol_api import COLUMN

requirements = {
"robotType": "Flex",
"apiLevel": "2.16"
}

def run(ctx):
tip_rack1 = ctx.load_labware("opentrons_flex_96_tiprack_50ul", "B3", adapter="opentrons_flex_96_tiprack_adapter")
tip_rack2 = ctx.load_labware("opentrons_flex_96_tiprack_50ul", "D3")
instrument = ctx.load_instrument('flex_96channel_1000', mount="left")

my_pcr_plate = ctx.load_labware('nest_96_wellplate_200ul_flat', "C2")
my_other_plate = ctx.load_labware('nest_96_wellplate_200ul_flat', "C1")

thermocycler = ctx.load_module('thermocyclerModuleV2')
tc_adjacent_plate = ctx.load_labware("nest_96_wellplate_200ul_flat", "A2")
ctx.load_trash_bin("A3")

instrument.configure_nozzle_layout(style=COLUMN, start="A12", tip_racks=[tip_rack2])

instrument.pick_up_tip()
instrument.aspirate(50, my_pcr_plate.wells_by_name()["A4"])
instrument.dispense(20, my_other_plate.wells_by_name()["A2"])

# Should error out because conflict with thermocycler lid
instrument.dispense(20, tc_adjacent_plate.wells_by_name()["A1"])

instrument.drop_tip()
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Pulled from: https://github.com/Opentrons/opentrons/pull/14522


from opentrons import protocol_api
from opentrons.protocol_api import COLUMN
from opentrons import types

requirements = {
"robotType": "Flex",
"apiLevel": "2.16",
}

def run(protocol: protocol_api.ProtocolContext):
thermocycler = protocol.load_module('thermocycler module gen2')
tiprack = protocol.load_labware('opentrons_flex_96_tiprack_200ul', 'A2')
p1000 = protocol.load_instrument("flex_96channel_1000", "left")
thermocycler.open_lid()
p1000.configure_nozzle_layout(style=COLUMN, start="A12", tip_racks=[tiprack])
p1000.pick_up_tip(tiprack.wells()[0].center().move(types.Point(x=-10, y=10, z=-10)))
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Testing for issue: https://github.com/Opentrons/opentrons/pull/14475


requirements = {
"robotType": "OT-2",
"apiLevel": "2.16"
}


def run(context):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Pulled from: https://github.com/Opentrons/opentrons/pull/14475

metadata = {
'protocolName': 'Heater-shaker conflict OT-2',
}

requirements = {
"robotType": "OT-2",
"apiLevel": "2.16"
}


def run(context):
context.load_module("heaterShakerModuleV1", '11')
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Pulled from: https://github.com/Opentrons/opentrons/pull/14475

metadata = {
'protocolName': 'Heater-shaker conflict OT-2',
}

requirements = {
"robotType": "OT-2",
"apiLevel": "2.16"
}


def run(context):
context.load_module("heaterShakerModuleV1", '9')
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Pulled from: https://github.com/Opentrons/opentrons/pull/14491


requirements = {
"robotType": "OT-2",
"apiLevel": "2.14",
}

def run(protocol):
thermocycler = protocol.load_module('thermocycler module gen2')

assert protocol.loaded_modules == {7: thermocycler}
assert protocol.deck["7"] == thermocycler
assert protocol.deck["8"] == thermocycler
assert protocol.deck["10"] == thermocycler
assert protocol.deck["11"] == thermocycler
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Pulled from: https://github.com/Opentrons/opentrons/pull/14491


requirements = {
"robotType": "OT-2",
"apiLevel": "2.15",
}

def run(protocol):
thermocycler = protocol.load_module('thermocycler module gen2')

assert protocol.loaded_modules == {7: thermocycler}
assert protocol.deck["7"] == thermocycler
assert protocol.deck["8"] == thermocycler
assert protocol.deck["10"] == thermocycler
assert protocol.deck["11"] == thermocycler
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Pulled from: https://github.com/Opentrons/opentrons/pull/14491


requirements = {
"robotType": "OT-2",
"apiLevel": "2.16",
}

def run(protocol):
thermocycler = protocol.load_module('thermocycler module gen2')

assert protocol.loaded_modules == {7: thermocycler}
assert protocol.deck["7"] == thermocycler
assert protocol.deck["8"] == thermocycler
assert protocol.deck["10"] == thermocycler
assert protocol.deck["11"] == thermocycler
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Pulled from: https://github.com/Opentrons/opentrons/pull/14491


requirements = {
"robotType": "OT-2",
"apiLevel": "2.17",
}

def run(protocol):
thermocycler = protocol.load_module('thermocycler module gen2')

assert protocol.loaded_modules == {7: thermocycler}
assert protocol.deck["7"] == thermocycler
assert protocol.deck["8"] == thermocycler
assert protocol.deck["10"] == thermocycler
assert protocol.deck["11"] == thermocycler
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Pulled from: https://github.com/Opentrons/opentrons/pull/14253


requirements = {"robotType": "OT-2", "apiLevel": "2.16"}

def run(protocol):
tip_rack = protocol.load_labware("opentrons_96_tiprack_300ul", location="9")
well_plate = protocol.load_labware("opentrons_24_tuberack_eppendorf_1.5ml_safelock_snapcap", location="10")

pipette = protocol.load_instrument("p300_single_gen2", mount="left", tip_racks=[tip_rack])

pipette.pick_up_tip()
pipette.distribute(
volume=[22.7, 22.7],
source=well_plate["A1"],
dest=[well_plate["B1"], well_plate["B2"]],
air_gap=10,
new_tip="never",
disposal_volume=0,
)
pipette.drop_tip()

0 comments on commit 56c0390

Please sign in to comment.