-
Notifications
You must be signed in to change notification settings - Fork 0
/
buffer_creation_hilic.py
99 lines (89 loc) · 2.74 KB
/
buffer_creation_hilic.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
93
94
95
96
97
98
99
# Creates the equilibration, binding, and wash buffer buffer for the HILIC protocol
from opentrons import protocol_api
import math
metadata = {
"protocolName": "Buffer Creation in the HILIC protocol",
"author": "Nico To",
"description": '''
Creates the equilibration, binding, and wash buffer for the HILIC protocol
Equilibration Buffer: 100mM ammonium acetate pH 4.5, 15%% acetonitrile
Binding 'Buffer: 200 mM ammonium acetate pH 4.5, 30%% acetonitrile
Wash Buffer: 95%% acetonitrile (5%% water)
''',
}
requirements = {"robotType": "Flex", "apiLevel": "2.19"}
def add_parameters(parameters: protocol_api.Parameters):
parameters.add_int(
variable_name="ammoniumAcetate_conc",
display_name="Concentration of Ammonium Acetate Stock",
description="_______ mM Ammonium Acetate (4.5pH)",
default=300,
minimum=100,
maximum=1000,
unit="mM"
)
parameters.add_float(
variable_name="ammoniumAcetate_amt",
display_name="Amount of Ammonium Acetate Stock",
description="_______ ml Ammonium Acetate (4.5pH) in 50ml falcon",
default=50,
minimum=5,
maximum=50,
unit="ml"
)
parameters.add_float(
variable_name="acn_amt",
display_name="Amount of 100% Acetonitrile Stock",
description="_______ ml 100% Acetonitrile in 50ml falcon",
default=50,
minimum=5,
maximum=50,
unit="ml"
)
parameters.add_float(
variable_name="water_amt",
display_name="Amount of H2O Stock",
description="_______ ml water in 50ml falcon",
default=50,
minimum=5,
maximum=50,
unit="ml"
)
parameters.add_float(
variable_name="eq_buff_amt",
display_name="Equilibration Buffer Amount",
description="Amount of equilibration buffer to create",
default=5,
minimum=1,
maximum=15,
unit="ml"
)
parameters.add_float(
variable_name="binding_buff_amt",
display_name="Binding Buffer Amount",
description="Amount of binding buffer to create",
default=5,
minimum=1,
maximum=15,
unit="ml"
)
parameters.add_float(
variable_name="wash_buff_amt",
display_name="Wash Buffer Amount",
description="Amount of wash buffer to create",
default=5,
minimum=1,
maximum=15,
unit="ml"
)
def get_height_50ml_falcon(volume):
'''
Get's the height of the liquid in the tube
Volume: volume of liquid in tube in µl
Return: hieght from bottom of tube in millimeters
'''
#y=1.8x+12
if volume >=5000 and volume <=50000:
xxx
if volume <5000:
return 0