-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
“ramifarawi”
committed
Oct 1, 2024
1 parent
2f447c9
commit 2ddb59a
Showing
2 changed files
with
2 additions
and
2 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
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": { | ||
|
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