-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPlate_Cells_2017-10-12.ot1.py
92 lines (73 loc) · 2.34 KB
/
Plate_Cells_2017-10-12.ot1.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
from opentrons import containers, instruments
"""
Step1: pick up tips from a 200 ul-tip rack
Step2: Move to the Sterile Multichannel Disposable Solutions Basin
Step3: Mix cells (in Solutions Basin) up and down with multichannel pipette
Step4: Transfer 100 ul of cells in medium to a 96 well plate
(first row, A1 position)
Step5: Repeat Steps 2-4, but pipette cells in second row,
and so on untill all wells are filled with cells
Step6: Move to trash and eject tips.
"""
"""
A
"""
tiprack = containers.load('tiprack-200ul', 'A1')
trash = containers.load('trash-box', 'A2')
"""
B
"""
solution_basin = containers.load('point', 'B1', 'solution basin')
"""
C
"""
plate_384 = containers.load('384-plate', 'C1')
plate_96 = containers.load('96-flat', 'C1')
"""
D
"""
plate_384_2 = containers.load('384-plate', 'D1')
plate_96_2 = containers.load('96-flat', 'D1')
plate_384_5 = containers.load('384-plate', 'D2')
plate_96_5 = containers.load('96-flat', 'D2')
"""
E
"""
plate_384_3 = containers.load('384-plate', 'E1')
plate_96_3 = containers.load('96-flat', 'E1')
plate_384_4 = containers.load('384-plate', 'E2')
plate_96_4 = containers.load('96-flat', 'E2')
plates_96 = [plate_96, plate_96_2, plate_96_3, plate_96_4, plate_96_5]
plates_384 = [plate_384, plate_384_2, plate_384_3, plate_384_4, plate_384_5]
def run_custom_protocol(plate_size: int=96, number_of_plates: int=4):
if plate_size == 96:
plates = plates_96[0:number_of_plates]
else:
plates = plates_384[0:number_of_plates]
p200 = instruments.Pipette(
axis='a',
name='p200multi',
max_volume=200,
min_volume=20,
channels=8,
tip_racks=[tiprack],
trash_container=trash)
if plate_size == 96:
for plate in plates:
p200.transfer(
100,
solution_basin,
plate.rows(),
mix_before=(3, 100))
else:
for plate in plates:
alternating_rows = []
for row in plate.rows():
alternating_rows.append(row.wells('A', length=8, step=2))
alternating_rows.append(row.wells('B', length=8, step=2))
p200.transfer(
50,
solution_basin,
alternating_rows,
mix_before=(3, 100))
run_custom_protocol(**{'plate_size': 96, 'number_of_plates': 4})