-
Notifications
You must be signed in to change notification settings - Fork 0
/
Chris_French_Logo.ot2.py
60 lines (51 loc) · 2.1 KB
/
Chris_French_Logo.ot2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
"""
@author MillacuraFA
@date January 8th, 2019
@version 1.0
"""
from opentrons import labware, instruments
def run_custom_protocol(pipette_type: 'StringSelection...'='p300-Single',
dye_labware_type: 'StringSelection...'='trough-12row'):
if pipette_type == 'p300-Single':
tiprack = labware.load('tiprack-200ul', '1')
pipette = instruments.P300_Single(
mount='left',
tip_racks=[tiprack])
elif pipette_type == 'p50-Single':
tiprack = labware.load('tiprack-200ul', '1')
pipette = instruments.P50_Single(
mount='left',
tip_racks=[tiprack])
elif pipette_type == 'p10-Single':
tiprack = labware.load('tiprack-10ul', '1')
pipette = instruments.P10_Single(
mount='left',
tip_racks=[tiprack])
if dye_labware_type == 'trough-12row':
dye_container = labware.load('trough-12row', '2')
else:
dye_container = labware.load('tube-rack-2ml', '2')
output = labware.load('96-flat', '3')
# Well Location set-up
dye1_wells = ['B2', 'B3', 'B4', 'B5', 'B8', 'B9', 'B10', 'B11', 'C2',
'C8', 'D2', 'D8', 'D9', 'D10', 'D11', 'E2',
'E8', 'F2', 'F8', 'G2', 'G3', 'G4','G5','G8']
dye2_wells = ['A1','A2','A3','A4','A5','A6','A7','A8','A9','A10','A11','A12',
'B1','B6','B7', 'B12','C1','C3','C4','C5','C6','C7', 'C9', 'C10','C11','C12',
'D1','D3','D4','D5','D6','D7','D12','E1', 'E3', 'E4','E4','E5','E6','E7','E9','E10','E11','E12',
'F1','F3','F4','F5','F6','F7','F9','F10','F11','F12','G1','G6','G7','G9','G10','G11','G12',
'H1','H2','H3','H4','H5','H6','H7','H8','H9','H10','H11','H12'
]
dye2 = dye_container.wells('A1')
dye1 = dye_container.wells('A2')
pipette.distribute(
10,
dye1,
output.wells(dye1_wells),
new_tip='once')
pipette.distribute(
10,
dye2,
output.wells(dye2_wells),
new_tip='once')
run_custom_protocol(**{'pipette_type': 'p10-Single', 'dye_labware_type': 'tube-rack-2ml'})