Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
“ramifarawi” committed Feb 12, 2024
1 parent a486359 commit 8311f08
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 11 deletions.
2 changes: 1 addition & 1 deletion protocols/spotsee/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


## Description
This protocol will add a specified amount of liquid to determined wells in a custom 80 well plate.
This protocol will add a specified amount of liquid to determined wells in a custom 80 well plate. If the volume is less than 20, the pipette selected will be a P20 single-channel pipette, otherwise, if the volume is greater than 20ul, then the pipette selected will be a P300 single-channel pipette. Please match the correct pipette with the tips loaded.


### Labware
Expand Down
9 changes: 9 additions & 0 deletions protocols/spotsee/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,14 @@
{"label": "Left", "value": "left"},
{"label": "Right", "value": "right"}
]
},
{
"type": "dropDown",
"label": "P300 Single-Channel Mount",
"name": "p300_mount",
"options": [
{"label": "Right", "value": "right"},
{"label": "Left", "value": "left"}
]
}
]
28 changes: 18 additions & 10 deletions protocols/spotsee/spotsee.ot2.apiv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@

def run(ctx):

[vol, p20_mount] = get_values( # noqa: F821
"vol", "p20_mount")
[vol, pip, p20_mount, p300_mount] = get_values( # noqa: F821
"vol", "p20_mount", "p300_mount")

# p20_mount = 'left'
# vol = 15
# vol = 25
# p300_mount = 'right'

# labware

reservoir = ctx.load_labware('nest_1_reservoir_195ml', 10)
plate = ctx.load_labware('80_well_plate', 1)
tips = [ctx.load_labware('opentrons_96_filtertiprack_20ul', slot)
tips = [ctx.load_labware('opentrons_96_filtertiprack_20ul' if vol < 20 else 'opentrons_96_tiprack_300ul', slot) # noqa: E501
for slot in [11]]

red_wells = [
Expand All @@ -33,15 +35,21 @@ def run(ctx):

# pipettes
p20 = ctx.load_instrument('p20_single_gen2', p20_mount, tip_racks=tips)
p300 = ctx.load_instrument('p300_single_gen2', p300_mount, tip_racks=tips)
pip = p20 if vol < 20 else p300

# mapping
buffer = reservoir.wells()[0]

# protocol
ctx.comment('\n---------------ADDING BUFFER TO PLATE----------------\n\n')

p20.pick_up_tip()
for well in red_wells:
p20.aspirate(vol, buffer)
p20.dispense(vol, plate.wells_by_name()[well])
p20.drop_tip()
num_asp = pip.max_volume // vol
chunks = [red_wells[i:i+num_asp] for i in range(0, len(red_wells),
num_asp)]

pip.pick_up_tip()
for chunk in chunks:
pip.aspirate(num_asp*vol, buffer)
for well in chunk:
pip.dispense(vol, plate.wells_by_name()[well])
pip.drop_tip()

0 comments on commit 8311f08

Please sign in to comment.