Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

079db2 #5073

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

079db2 #5073

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion protoBuilds/079db2/079db2.ot2.apiv2.py.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"content": "metadata = {\n 'protocolName': 'Reformatting with Custom Tube Rack',\n 'author': 'Rami Farawi <[email protected]>',\n 'source': 'Custom Protocol Request',\n 'apiLevel': '2.13'\n}\n\n\ndef run(ctx):\n\n [num_samp, volume, p300_mount] = get_values( # noqa: F821\n \"num_samp\", \"volume\", \"p300_mount\")\n\n if not 1 <= num_samp <= 86:\n raise Exception(\"Enter a sample number between 1-86\")\n\n # labware\n\n tuberacks = [ctx.load_labware('custom_24_tuberack', slot)\n for slot in [1, 2, 3, 4]]\n plate = ctx.load_labware('nest_96_wellplate_2ml_deep', 6)\n tips = [ctx.load_labware('opentrons_96_tiprack_300ul', slot)\n for slot in [8]]\n\n # pipettes\n p300 = ctx.load_instrument('p300_single_gen2', p300_mount, tip_racks=tips)\n\n # mapping\n source_wells = [tube for rack in tuberacks\n for row in rack.rows() for tube in row][:num_samp]\n dest_wells = [well for row in plate.rows() for well in row][10:]\n\n # protocol\n ctx.comment('\\n---------------ADDING SAMPLE TO PLATE----------------\\n\\n')\n for s, d in zip(source_wells, dest_wells):\n p300.pick_up_tip()\n p300.aspirate(volume, s)\n p300.dispense(volume, d)\n p300.drop_tip()\n ctx.comment('\\n')\n",
"content": "metadata = {\n 'protocolName': 'Reformatting with Custom Tube Rack',\n 'author': 'Rami Farawi <[email protected]>',\n 'source': 'Custom Protocol Request',\n 'apiLevel': '2.13'\n}\n\n\ndef run(ctx):\n\n [num_samp, volume, p300_mount] = get_values( # noqa: F821\n \"num_samp\", \"volume\", \"p300_mount\")\n\n if not 1 <= num_samp <= 86:\n raise Exception(\"Enter a sample number between 1-86\")\n\n # labware\n\n tuberacks = [ctx.load_labware('custom_24_tuberack', slot)\n for slot in [1, 2, 3, 4]]\n plate = ctx.load_labware('nest_96_wellplate_2ml_deep', 6)\n tips = [ctx.load_labware('opentrons_96_tiprack_300ul', slot)\n for slot in [8]]\n\n # pipettes\n p300 = ctx.load_instrument('p300_single_gen2', p300_mount, tip_racks=tips)\n\n # mapping\n source_wells = [tube for rack in tuberacks\n for row in rack.rows() for tube in row][:num_samp]\n dest_wells = [well for row in plate.rows() for well in row][10:]\n\n # protocol\n ctx.comment('\\n---------------ADDING SAMPLE TO PLATE----------------\\n\\n')\n for s, d in zip(source_wells, dest_wells):\n p300.pick_up_tip()\n p300.aspirate(volume, s.bottom(z=10))\n p300.dispense(volume, d)\n p300.drop_tip()\n ctx.comment('\\n')\n",
"custom_labware_defs": [
{
"brand": {
Expand Down
2 changes: 1 addition & 1 deletion protocols/079db2/079db2.ot2.apiv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def run(ctx):
ctx.comment('\n---------------ADDING SAMPLE TO PLATE----------------\n\n')
for s, d in zip(source_wells, dest_wells):
p300.pick_up_tip()
p300.aspirate(volume, s)
p300.aspirate(volume, s.bottom(z=10))
p300.dispense(volume, d)
p300.drop_tip()
ctx.comment('\n')
Loading