Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
“ramifarawi” committed Oct 4, 2023
1 parent b94cc26 commit 58e95f6
Showing 1 changed file with 29 additions and 19 deletions.
48 changes: 29 additions & 19 deletions protocols/0ca318/0ca318.ot2.apiv2.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
def get_values(*names):
import json
_all_values = json.loads("""{"num_samp":24,"source_type":"wellplate","mmx_type":"mmx_wellplate","p20_mount":"right","m20_mount":"left"}""")
return [_all_values[n] for n in names]


import math
from opentrons import protocol_api

Expand Down Expand Up @@ -71,28 +77,18 @@ def pick_up(pip):

unfilled_mmx_col = mmx_plate.rows()[0][5]

# transfer sample
if source_type == "tuberack":
ctx.comment('\n\nTRANSFERRING SAMPLE TO PCR PLATE\n')
for tube, dest in zip(sample_tubes, pcr_plate.wells()):
p20.pick_up_tip()
p20.aspirate(2.5, tube, rate=0.5)
p20.dispense(2.5, dest)
p20.blow_out()
p20.drop_tip()

if mmx_type == 'mmx_wellplate':
ctx.comment('\n\nTRANSFERRING MASTERMIX TO PLATE\n')
m20.pick_up_tip()

for s_col, d_col in zip(mmx, pcr_plate.rows()[0][:num_full_cols]):

m20.aspirate(10, s_col, rate=0.5)
m20.dispense(10, d_col.top(), rate=0.5) # noqa: E501
m20.blow_out()
m20.dispense(10, d_col, rate=0.5) # noqa: E501
m20.aspirate(11.5, s_col, rate=0.5)
m20.dispense(11.5, d_col.top(), rate=0.5) # noqa: E501
m20.dispense(11.5, d_col, rate=0.5) # noqa: E501
m20.blow_out()
m20.touch_tip()
ctx.comment('\n')
m20.drop_tip()

Expand All @@ -104,11 +100,11 @@ def pick_up(pip):

for well in unfilled_col:
p20.aspirate(10, unfilled_mmx_col, rate=0.5)
p20.dispense(10, well.top(), rate=0.5) # noqa: E501
p20.blow_out()
p20.dispense(10, well, rate=0.5) # noqa: E501
p20.aspirate(11.5, unfilled_mmx_col, rate=0.5)
p20.dispense(11.5, well.top(), rate=0.5) # noqa: E501
p20.dispense(11.5, well, rate=0.5) # noqa: E501
p20.blow_out()
p20.touch_tip()
p20.drop_tip()

elif mmx_type == "mmx_tuberack":
Expand All @@ -119,14 +115,26 @@ def pick_up(pip):
for s, d in zip(mmx, pcr_plate.wells()[:num_samp]):

p20.aspirate(10, s, rate=0.5)
p20.dispense(10, d.top(), rate=0.5) # noqa: E501
p20.blow_out()
p20.dispense(10, d, rate=0.5) # noqa: E501
p20.aspirate(11.5, s, rate=0.5)
p20.dispense(11.5, d.top(), rate=0.5) # noqa: E501
p20.dispense(11.5, d, rate=0.5) # noqa: E501
p20.blow_out()
p20.touch_tip()
ctx.comment('\n')
p20.drop_tip()

# transfer sample
if source_type == "tuberack":
ctx.comment('\n\nTRANSFERRING SAMPLE TO PCR PLATE\n')
for tube, dest in zip(sample_tubes, pcr_plate.wells()):
p20.pick_up_tip()
p20.aspirate(2.5, tube, rate=0.5)
p20.dispense(2.5, dest)
p20.mix(3, 20, dest)
p20.blow_out()
p20.touch_tip()
p20.drop_tip()

ctx.comment('\n\n------------Running PCR-------------\n')

profile1 = [
Expand All @@ -149,11 +157,13 @@ def pick_up(pip):

]

tc_mod.close_lid()
tc_mod.execute_profile(steps=profile1, repetitions=1, block_max_volume=25)
tc_mod.execute_profile(steps=profile2, repetitions=25, block_max_volume=25)
tc_mod.execute_profile(steps=profile3, repetitions=1, block_max_volume=25)
tc_mod.set_block_temperature(4)
tc_mod.set_lid_temperature(25)
tc_mod.open_lid()

ctx.comment('''Centrifuge the PCR plate at 1,000 × g at 20°C for 1 minute
to collect condensation, carefully remove seal.
Expand Down

0 comments on commit 58e95f6

Please sign in to comment.