-
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.
Merge pull request #5056 from Opentrons/develop
chore(Release): 2024-03-07
- Loading branch information
Showing
38 changed files
with
643 additions
and
10,681 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
Large diffs are not rendered by default.
Oops, something went wrong.
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": "# flake8: noqa\n\nimport math\n\nmetadata = {\n 'protocolName': 'PCR Prep',\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,\n p300_mount, m20_mount] = get_values( # noqa: F821\n \"num_samp\", \"p300_mount\", \"m20_mount\")\n\n # num_samp = 16\n # p300_mount = 'left'\n # m20_mount = 'right'\n\n # labware\n tuberack = ctx.load_labware('opentrons_24_tuberack_2000ul', 4)\n\n source_plate = ctx.load_labware('pcrplate_96_wellplate_200ul', 1)\n middle_plate = ctx.load_labware('pcrplate_96_wellplate_200ul', 2)\n final_plate = ctx.load_labware('pcrplate_96_wellplate_200ul', 3)\n\n tip300 = [ctx.load_labware('opentrons_96_tiprack_300ul', slot)\n for slot in [6]]\n tip20 = [ctx.load_labware('opentrons_96_filtertiprack_20ul', slot)\n for slot in [10, 11]]\n\n # pipettes\n p300 = ctx.load_instrument('p300_single_gen2', p300_mount,\n tip_racks=tip300)\n m20 = ctx.load_instrument('p20_multi_gen2', m20_mount,\n tip_racks=tip20)\n\n # mapping\n mmx = tuberack['A1']\n primer = tuberack['A2']\n final_mmx = tuberack['A3']\n num_col = math.ceil(num_samp/8)\n\n # protocol\n ctx.comment('\\n---------------MAKING MASTERMIX----------------\\n\\n')\n mmx_vol = 9.1\n primer_vol = 5.57\n\n p300.pick_up_tip()\n p300.transfer(mmx_vol*num_samp*1.15, mmx, final_mmx, new_tip='never')\n p300.drop_tip()\n\n total_vol = num_samp*(primer_vol+mmx_vol)\n p300.pick_up_tip()\n p300.transfer(primer_vol*num_samp*1.15, primer, final_mmx, new_tip='never')\n p300.mix(20, total_vol if total_vol < 300 else 300, final_mmx)\n p300.drop_tip()\n\n vol_per_col_well = (mmx_vol+primer_vol)*12*1.1\n p300.pick_up_tip()\n for well in middle_plate.columns()[0]:\n p300.aspirate(vol_per_col_well, final_mmx)\n p300.dispense(vol_per_col_well, well)\n p300.drop_tip()\n\n ctx.comment('\\n---------------DISTRIBUTING MASTERMIX----------------\\n\\n')\n m20.pick_up_tip()\n for col in final_plate.rows()[0][:num_col]:\n m20.aspirate(14.7, middle_plate.rows()[0][0])\n m20.dispense(14.7, col)\n m20.drop_tip()\n\n ctx.comment('\\n---------------DISTRIBUTING SAMPLE----------------\\n\\n')\n for s, d in zip(source_plate.rows()[0][:num_col], final_plate.rows()[0]):\n m20.pick_up_tip()\n m20.aspirate(4, s)\n m20.dispense(4, d)\n m20.mix(5, 15, d)\n m20.drop_tip()\n", | ||
"content": "# flake8: noqa\n\nimport math\n\nmetadata = {\n 'protocolName': 'PCR Prep',\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,\n p300_mount, m20_mount] = get_values( # noqa: F821\n \"num_samp\", \"p300_mount\", \"m20_mount\")\n\n # num_samp = 16\n # p300_mount = 'left'\n # m20_mount = 'right'\n\n # labware\n tuberack = ctx.load_labware('opentrons_24_tuberack_2000ul', 4)\n\n source_plate = ctx.load_labware('pcrplate_96_wellplate_200ul', 1)\n middle_plate = ctx.load_labware('pcrplate_96_wellplate_200ul', 2)\n final_plate = ctx.load_labware('pcrplate_96_wellplate_200ul', 3)\n\n tip300 = [ctx.load_labware('opentrons_96_tiprack_300ul', slot)\n for slot in [6]]\n tip20 = [ctx.load_labware('opentrons_96_filtertiprack_20ul', slot)\n for slot in [10, 11]]\n\n # pipettes\n p300 = ctx.load_instrument('p300_single_gen2', p300_mount,\n tip_racks=tip300)\n m20 = ctx.load_instrument('p20_multi_gen2', m20_mount,\n tip_racks=tip20)\n\n # mapping\n mmx = tuberack['A1']\n primer = tuberack['A2']\n final_mmx = tuberack['A3']\n num_col = math.ceil(num_samp/8)\n\n # protocol\n ctx.comment('\\n---------------MAKING MASTERMIX----------------\\n\\n')\n mmx_vol = 9.1\n primer_vol = 5.57\n\n p300.pick_up_tip()\n p300.transfer(mmx_vol*num_samp*1.15, mmx, final_mmx, new_tip='never')\n p300.drop_tip()\n\n total_vol = num_samp*(primer_vol+mmx_vol)\n p300.pick_up_tip()\n p300.transfer(primer_vol*num_samp*1.15, primer, final_mmx, new_tip='never')\n for _ in range(20):\n p300.aspirate(total_vol if total_vol < 300 else 300, final_mmx)\n p300.dispense(total_vol if total_vol < 300 else 300, final_mmx.top(z=-3))\n p300.mix(20, total_vol if total_vol < 300 else 300, final_mmx)\n p300.drop_tip()\n\n vol_per_col_well = (mmx_vol+primer_vol)*12*1.1\n p300.pick_up_tip()\n for well in middle_plate.columns()[0]:\n p300.aspirate(vol_per_col_well, final_mmx)\n p300.dispense(vol_per_col_well, well)\n p300.drop_tip()\n\n ctx.comment('\\n---------------DISTRIBUTING MASTERMIX----------------\\n\\n')\n m20.pick_up_tip()\n for col in final_plate.rows()[0][:num_col]:\n m20.aspirate(14.7, middle_plate.rows()[0][0])\n m20.dispense(14.7, col)\n m20.drop_tip()\n\n ctx.comment('\\n---------------DISTRIBUTING SAMPLE----------------\\n\\n')\n for s, d in zip(source_plate.rows()[0][:num_col], final_plate.rows()[0]):\n m20.pick_up_tip()\n m20.aspirate(4, s)\n m20.dispense(4, d)\n m20.mix(5, 15, d)\n m20.drop_tip()\n", | ||
"custom_labware_defs": [ | ||
{ | ||
"brand": { | ||
|
Oops, something went wrong.