lab-compiler 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lab_compiler-0.1.0/.gitignore +9 -0
- lab_compiler-0.1.0/LICENSE +201 -0
- lab_compiler-0.1.0/PKG-INFO +204 -0
- lab_compiler-0.1.0/README.md +178 -0
- lab_compiler-0.1.0/docs/assets/brand/wordmark-full-dark.svg +10 -0
- lab_compiler-0.1.0/docs/assets/brand/wordmark-full-light.svg +10 -0
- lab_compiler-0.1.0/docs/releasing.md +62 -0
- lab_compiler-0.1.0/examples/__init__.py +1 -0
- lab_compiler-0.1.0/examples/cloning.py +136 -0
- lab_compiler-0.1.0/examples/deck_layouts.py +196 -0
- lab_compiler-0.1.0/pyproject.toml +91 -0
- lab_compiler-0.1.0/scripts/check_install.py +47 -0
- lab_compiler-0.1.0/src/lab/__init__.py +23 -0
- lab_compiler-0.1.0/src/lab/_version.py +3 -0
- lab_compiler-0.1.0/src/lab/compiler.py +133 -0
- lab_compiler-0.1.0/src/lab/deck.py +311 -0
- lab_compiler-0.1.0/src/lab/documents.py +129 -0
- lab_compiler-0.1.0/src/lab/equipment.py +64 -0
- lab_compiler-0.1.0/src/lab/experiments/__init__.py +7 -0
- lab_compiler-0.1.0/src/lab/experiments/cloning/__init__.py +45 -0
- lab_compiler-0.1.0/src/lab/experiments/cloning/addresses.py +41 -0
- lab_compiler-0.1.0/src/lab/experiments/cloning/decks.py +112 -0
- lab_compiler-0.1.0/src/lab/experiments/cloning/stages/__init__.py +44 -0
- lab_compiler-0.1.0/src/lab/experiments/cloning/stages/assembly.py +380 -0
- lab_compiler-0.1.0/src/lab/experiments/cloning/stages/plating.py +236 -0
- lab_compiler-0.1.0/src/lab/experiments/cloning/stages/transformation.py +373 -0
- lab_compiler-0.1.0/src/lab/experiments/cloning/workflow.py +67 -0
- lab_compiler-0.1.0/src/lab/labware.py +70 -0
- lab_compiler-0.1.0/src/lab/model.py +162 -0
- lab_compiler-0.1.0/src/lab/protocol.py +245 -0
- lab_compiler-0.1.0/src/lab/protocols/__init__.py +34 -0
- lab_compiler-0.1.0/src/lab/protocols/allocation.py +96 -0
- lab_compiler-0.1.0/src/lab/protocols/compiler.py +775 -0
- lab_compiler-0.1.0/src/lab/protocols/materials.py +24 -0
- lab_compiler-0.1.0/src/lab/protocols/plans.py +41 -0
- lab_compiler-0.1.0/src/lab/protocols/program.py +23 -0
- lab_compiler-0.1.0/src/lab/protocols/requests.py +88 -0
- lab_compiler-0.1.0/src/lab/protocols/steps.py +57 -0
- lab_compiler-0.1.0/src/lab/py.typed +0 -0
- lab_compiler-0.1.0/src/lab/targets/__init__.py +8 -0
- lab_compiler-0.1.0/src/lab/targets/liquid_handler.py +3 -0
- lab_compiler-0.1.0/src/lab/targets/lower.py +87 -0
- lab_compiler-0.1.0/src/lab/targets/manual.py +10 -0
- lab_compiler-0.1.0/src/lab/targets/opentrons.py +619 -0
- lab_compiler-0.1.0/src/lab/targets/star.py +497 -0
- lab_compiler-0.1.0/src/lab/units.py +46 -0
- lab_compiler-0.1.0/src/lab/validation.py +130 -0
- lab_compiler-0.1.0/tests/cloning_fixture.py +51 -0
- lab_compiler-0.1.0/tests/conftest.py +12 -0
- lab_compiler-0.1.0/tests/target_fixture.py +91 -0
- lab_compiler-0.1.0/tests/test_deck.py +123 -0
- lab_compiler-0.1.0/tests/test_layouts.py +233 -0
- lab_compiler-0.1.0/tests/test_ot2_equivalence.py +246 -0
- lab_compiler-0.1.0/tests/test_protocol.py +246 -0
- lab_compiler-0.1.0/tests/test_stages.py +236 -0
- lab_compiler-0.1.0/tests/test_targets.py +639 -0
- lab_compiler-0.1.0/tests/thermal_fixture.py +45 -0
- lab_compiler-0.1.0/uv.lock +1088 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: lab-compiler
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A small Python compiler for inspectable laboratory protocols
|
|
5
|
+
Project-URL: Homepage, https://github.com/the-lab-compiler/lab-py
|
|
6
|
+
Project-URL: Documentation, https://github.com/the-lab-compiler/lab-py#readme
|
|
7
|
+
Project-URL: Repository, https://github.com/the-lab-compiler/lab-py
|
|
8
|
+
Project-URL: Issues, https://github.com/the-lab-compiler/lab-py/issues
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: automation,compiler,laboratory,protocols
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Scientific/Engineering
|
|
18
|
+
Classifier: Typing :: Typed
|
|
19
|
+
Requires-Python: <3.13,>=3.11
|
|
20
|
+
Requires-Dist: pint<0.27,>=0.24
|
|
21
|
+
Provides-Extra: opentrons
|
|
22
|
+
Requires-Dist: opentrons==8.8.2; extra == 'opentrons'
|
|
23
|
+
Provides-Extra: star
|
|
24
|
+
Requires-Dist: pylabrobot==0.2.1; extra == 'star'
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
|
|
27
|
+
<p align="center">
|
|
28
|
+
<picture>
|
|
29
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/the-lab-compiler/lab-py/master/docs/assets/brand/wordmark-full-dark.svg">
|
|
30
|
+
<img alt="The Lab Compiler" src="https://raw.githubusercontent.com/the-lab-compiler/lab-py/master/docs/assets/brand/wordmark-full-light.svg" width="620">
|
|
31
|
+
</picture>
|
|
32
|
+
</p>
|
|
33
|
+
|
|
34
|
+
<p align="center">
|
|
35
|
+
<em>A compiler for biological engineering. Describe experiments in Python, check the protocol, and produce a document or a robot program.</em>
|
|
36
|
+
</p>
|
|
37
|
+
|
|
38
|
+
Lab Compiler is the Python compiler for laboratory work. A program names materials, wells, and steps. Compilation checks volumes, units, and bindings, then writes a printable document and code for the handler you name.
|
|
39
|
+
|
|
40
|
+
Protocol containers, steps, and decks are expressed in Lab types. A `Deck` holds shared container requirements and can include a `DeckLayout` for each liquid handler. Compilation selects the layout, checks the handler's capabilities, and translates Lab equipment and placements into Opentrons or PyLabRobot configuration. Supported presets handle simple layouts. You do not need to construct SDK deck objects.
|
|
41
|
+
|
|
42
|
+
## Install
|
|
43
|
+
|
|
44
|
+
Lab Compiler supports Python 3.11 and 3.12. Install the `lab-compiler` distribution and import it as `lab`:
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
python -m pip install lab-compiler
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
The base package compiles printable documents. Install the optional SDK for your robot target:
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
python -m pip install "lab-compiler[opentrons]" # OT-2 and Flex
|
|
54
|
+
python -m pip install "lab-compiler[star]" # Hamilton STAR
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Use `"lab-compiler[opentrons,star]"` to install both SDKs.
|
|
58
|
+
|
|
59
|
+
## Write a protocol
|
|
60
|
+
|
|
61
|
+
You define the strain, chassis, and plasmids. The library provides typed requests and reusable cloning stages. This example compiles a heat-shock transformation using material identifiers supplied by the user.
|
|
62
|
+
|
|
63
|
+
```python
|
|
64
|
+
from lab.experiments.cloning import transformation_deck
|
|
65
|
+
from lab.protocols import (
|
|
66
|
+
MaterialRef,
|
|
67
|
+
ProtocolCompiler,
|
|
68
|
+
TransformationReaction,
|
|
69
|
+
TransformationRequest,
|
|
70
|
+
)
|
|
71
|
+
from lab.targets import LiquidHandler
|
|
72
|
+
|
|
73
|
+
request = TransformationRequest(
|
|
74
|
+
id="my-transformation",
|
|
75
|
+
reactions=(
|
|
76
|
+
TransformationReaction(
|
|
77
|
+
id="reaction-1",
|
|
78
|
+
strain=MaterialRef(identity="my-strain", label="My strain"),
|
|
79
|
+
chassis=MaterialRef(identity="my-cells", label="My competent cells"),
|
|
80
|
+
plasmids=(MaterialRef(identity="my-plasmid", label="My plasmid"),),
|
|
81
|
+
),
|
|
82
|
+
),
|
|
83
|
+
)
|
|
84
|
+
compiled = ProtocolCompiler().compile(
|
|
85
|
+
request,
|
|
86
|
+
hardware=transformation_deck(on_module=True),
|
|
87
|
+
liquid_handler=LiquidHandler.OT2,
|
|
88
|
+
)
|
|
89
|
+
compiled.write("build/transformation")
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
`MaterialRef` carries your material's identity and display label. `TransformationReaction` associates an output strain with its chassis and plasmids. The compiler assigns wells and records the transfers, heat shock, and recovery steps. The result includes an output manifest for downstream stages. The [cloning example](https://github.com/the-lab-compiler/lab-py/blob/master/examples/cloning.py) defines its materials and reactions directly and links assembly, transformation, and plating.
|
|
93
|
+
|
|
94
|
+
`transformation_deck(on_module=True)` names the 24-well DNA block, the cell tubes, and the reaction plate. This is an Opentrons preset; the example uses `LiquidHandler.OT2`. For a document with no robot, import `Manual` from `lab.targets` and use `ProtocolCompiler().compile(request, hardware=Manual())`.
|
|
95
|
+
|
|
96
|
+
## Describe a deck
|
|
97
|
+
|
|
98
|
+
This OT-2 deck places two 96-well plates in slots 1 and 2, a 300 µL tip rack in slot 3, and a P300 pipette on the left mount. It uses the same equipment and placement types as the [deck layouts example](https://github.com/the-lab-compiler/lab-py/blob/master/examples/deck_layouts.py).
|
|
99
|
+
|
|
100
|
+
```python
|
|
101
|
+
from lab.deck import Deck, DeckLayout, Pipette, Placement, Slot, TipRack
|
|
102
|
+
from lab.equipment import LabwareModel, LiquidHandler, Mount, PipetteModel, TipRackModel
|
|
103
|
+
from lab.labware import PLATE_96, ContainerSpec
|
|
104
|
+
|
|
105
|
+
deck = Deck(
|
|
106
|
+
containers=(
|
|
107
|
+
ContainerSpec(id="sources", labware=PLATE_96),
|
|
108
|
+
ContainerSpec(id="assay", labware=PLATE_96),
|
|
109
|
+
),
|
|
110
|
+
layouts=(
|
|
111
|
+
DeckLayout(
|
|
112
|
+
liquid_handler=LiquidHandler.OT2,
|
|
113
|
+
placements=(
|
|
114
|
+
Placement(
|
|
115
|
+
container="sources",
|
|
116
|
+
model=LabwareModel.CORNING_96_360_UL,
|
|
117
|
+
location=Slot("1"),
|
|
118
|
+
),
|
|
119
|
+
Placement(
|
|
120
|
+
container="assay",
|
|
121
|
+
model=LabwareModel.CORNING_96_360_UL,
|
|
122
|
+
location=Slot("2"),
|
|
123
|
+
),
|
|
124
|
+
),
|
|
125
|
+
tip_racks=(
|
|
126
|
+
TipRack(
|
|
127
|
+
id="tips",
|
|
128
|
+
model=TipRackModel.OPENTRONS_300_UL,
|
|
129
|
+
location=Slot("3"),
|
|
130
|
+
),
|
|
131
|
+
),
|
|
132
|
+
pipettes=(
|
|
133
|
+
Pipette(
|
|
134
|
+
model=PipetteModel.P300_SINGLE_GEN2,
|
|
135
|
+
mount=Mount.LEFT,
|
|
136
|
+
tip_racks=("tips"),
|
|
137
|
+
),
|
|
138
|
+
),
|
|
139
|
+
),
|
|
140
|
+
),
|
|
141
|
+
)
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
The container ids, `sources` and `assay`, match the names used by the protocol. `DeckLayout` assigns each container a physical model and position, and connects the pipette to its tip rack. A deck can include additional layouts for Flex or STAR using the same container ids.
|
|
145
|
+
|
|
146
|
+
## Describe physical layouts in Lab
|
|
147
|
+
|
|
148
|
+
Use `DeckLayout` when equipment or placement needs to be explicit. Each layout names its `LiquidHandler` and places the same shared containers. All objects below belong to Lab:
|
|
149
|
+
|
|
150
|
+
| Object | Purpose |
|
|
151
|
+
| --- | --- |
|
|
152
|
+
| `Placement` | A container's physical labware model, position, and optional well mapping |
|
|
153
|
+
| `Slot`, `Rail`, `HolderSite` | A deck slot, carrier rail, or indexed site on a named holder |
|
|
154
|
+
| `Carrier`, `Module` | Equipment that occupies a position and holds other resources |
|
|
155
|
+
| `TipRack` | A tip model and its position |
|
|
156
|
+
| `Pipette`, `Channel` | A mounted pipette or independent channel, with its assigned tip racks |
|
|
157
|
+
|
|
158
|
+
Equipment models are typed identifiers from `lab.equipment`; each backend resolves the models it supports. A STAR layout can place a carrier at `Rail(20)` and a plate at `HolderSite("plates", 3)`. An Opentrons layout can place the same logical container at `Slot("2")` or on a named module. The shared model does not impose one thermal device on every handler. Targets enforce their supported device counts, models, locations, and module footprints.
|
|
159
|
+
|
|
160
|
+
The [deck layouts example](https://github.com/the-lab-compiler/lab-py/blob/master/examples/deck_layouts.py) prepares duplicate BSA standards and purified protein samples in a flat-bottom assay plate using a reservoir of prepared BCA working reagent. `protocol()` describes the transfers; `deck()` shares the container requirements and calls `opentrons_layout()` for OT-2 and Flex and `hamilton_layout()` for STAR. The logical source wells map to physical wells `B1`–`B12` on each handler; STAR also specifies carriers, rails, and occupied carrier sites. Mixing, incubation, and absorbance reading remain an explicit operator handoff following the [Pierce BCA guide](https://www.thermofisher.com/TFS-Assets/LSG/manuals/MAN0011430_Pierce_BCA_Protein_Asy_UG.pdf). The example imports only Lab types and the Python standard library, with layouts to adapt to installed equipment.
|
|
161
|
+
|
|
162
|
+
```python
|
|
163
|
+
from examples.deck_layouts import deck, protocol
|
|
164
|
+
from lab import compile
|
|
165
|
+
from lab.targets import LiquidHandler
|
|
166
|
+
|
|
167
|
+
compiled = compile(protocol(), deck(), liquid_handler=LiquidHandler.STAR)
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
The compiler rejects missing layouts, conflicting placements, invalid holder references, incompatible labware, and unsupported target features. It preserves the authored Lab deck in `plan.json` alongside the resolved backend configuration. Physical geometry comes from the selected equipment definitions; the STAR backend constructs and serializes the PyLabRobot resource hierarchy internally.
|
|
171
|
+
|
|
172
|
+
For Opentrons, place thermal labware on a supported `Module`. STAR thermal operations currently use an external device integration: declare the container in `DeckLayout.external_thermal_resources` and supply the async `thermocycle` callback when the generated `run()` executes. The callback controls the device and returns the plate to its original position. Compilation checks the declaration; the software preview only reports the request. Unsupported on-deck thermal models produce an error.
|
|
173
|
+
|
|
174
|
+
## Try it
|
|
175
|
+
|
|
176
|
+
The examples live in the source repository. To run them with Python 3.12 and both optional SDKs:
|
|
177
|
+
|
|
178
|
+
```sh
|
|
179
|
+
git clone https://github.com/the-lab-compiler/lab-py.git
|
|
180
|
+
cd lab-py
|
|
181
|
+
uv sync --locked --all-extras
|
|
182
|
+
uv run python -m examples.cloning --target manual
|
|
183
|
+
uv run python -m examples.cloning --target ot2
|
|
184
|
+
uv run python -m examples.deck_layouts --target star
|
|
185
|
+
uv run python -m examples.deck_layouts --target ot2
|
|
186
|
+
uv run python -m examples.deck_layouts --target flex
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
A bundle is `protocol.html`, `plan.json`, and `protocol.py` when the target is a robot. `ProtocolCompiler` also writes `manifest.json` with the planned outputs. The cloning example writes separate `assembly`, `transformation`, and `plating` bundles under `build/cloning/<target>` or the directory supplied with `--out`, including for the manual target. The shared deck example writes to `build/decks/<target>` or its `--out` directory. Compilation never connects to hardware. Rebuilding identical files succeeds. A different plan in the same directory is rejected.
|
|
190
|
+
|
|
191
|
+
## Status
|
|
192
|
+
|
|
193
|
+
Lab Compiler is an early prototype. It checks a plan and emits a document or device program for the OT-2, Flex, and STAR. Software checks are not calibration, collision safety, or qualification of a physical run. Generated instructions need a person and a facility before anyone uses them at the bench.
|
|
194
|
+
|
|
195
|
+
## Development
|
|
196
|
+
|
|
197
|
+
```sh
|
|
198
|
+
uv sync --locked --all-extras
|
|
199
|
+
uv run --no-sync ruff check .
|
|
200
|
+
uv run --no-sync mypy
|
|
201
|
+
uv run --no-sync pytest
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
See the [release guide](https://github.com/the-lab-compiler/lab-py/blob/master/docs/releasing.md) for package validation and PyPI publishing.
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/the-lab-compiler/lab-py/master/docs/assets/brand/wordmark-full-dark.svg">
|
|
4
|
+
<img alt="The Lab Compiler" src="https://raw.githubusercontent.com/the-lab-compiler/lab-py/master/docs/assets/brand/wordmark-full-light.svg" width="620">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<p align="center">
|
|
9
|
+
<em>A compiler for biological engineering. Describe experiments in Python, check the protocol, and produce a document or a robot program.</em>
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
Lab Compiler is the Python compiler for laboratory work. A program names materials, wells, and steps. Compilation checks volumes, units, and bindings, then writes a printable document and code for the handler you name.
|
|
13
|
+
|
|
14
|
+
Protocol containers, steps, and decks are expressed in Lab types. A `Deck` holds shared container requirements and can include a `DeckLayout` for each liquid handler. Compilation selects the layout, checks the handler's capabilities, and translates Lab equipment and placements into Opentrons or PyLabRobot configuration. Supported presets handle simple layouts. You do not need to construct SDK deck objects.
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
Lab Compiler supports Python 3.11 and 3.12. Install the `lab-compiler` distribution and import it as `lab`:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
python -m pip install lab-compiler
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
The base package compiles printable documents. Install the optional SDK for your robot target:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
python -m pip install "lab-compiler[opentrons]" # OT-2 and Flex
|
|
28
|
+
python -m pip install "lab-compiler[star]" # Hamilton STAR
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Use `"lab-compiler[opentrons,star]"` to install both SDKs.
|
|
32
|
+
|
|
33
|
+
## Write a protocol
|
|
34
|
+
|
|
35
|
+
You define the strain, chassis, and plasmids. The library provides typed requests and reusable cloning stages. This example compiles a heat-shock transformation using material identifiers supplied by the user.
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from lab.experiments.cloning import transformation_deck
|
|
39
|
+
from lab.protocols import (
|
|
40
|
+
MaterialRef,
|
|
41
|
+
ProtocolCompiler,
|
|
42
|
+
TransformationReaction,
|
|
43
|
+
TransformationRequest,
|
|
44
|
+
)
|
|
45
|
+
from lab.targets import LiquidHandler
|
|
46
|
+
|
|
47
|
+
request = TransformationRequest(
|
|
48
|
+
id="my-transformation",
|
|
49
|
+
reactions=(
|
|
50
|
+
TransformationReaction(
|
|
51
|
+
id="reaction-1",
|
|
52
|
+
strain=MaterialRef(identity="my-strain", label="My strain"),
|
|
53
|
+
chassis=MaterialRef(identity="my-cells", label="My competent cells"),
|
|
54
|
+
plasmids=(MaterialRef(identity="my-plasmid", label="My plasmid"),),
|
|
55
|
+
),
|
|
56
|
+
),
|
|
57
|
+
)
|
|
58
|
+
compiled = ProtocolCompiler().compile(
|
|
59
|
+
request,
|
|
60
|
+
hardware=transformation_deck(on_module=True),
|
|
61
|
+
liquid_handler=LiquidHandler.OT2,
|
|
62
|
+
)
|
|
63
|
+
compiled.write("build/transformation")
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
`MaterialRef` carries your material's identity and display label. `TransformationReaction` associates an output strain with its chassis and plasmids. The compiler assigns wells and records the transfers, heat shock, and recovery steps. The result includes an output manifest for downstream stages. The [cloning example](https://github.com/the-lab-compiler/lab-py/blob/master/examples/cloning.py) defines its materials and reactions directly and links assembly, transformation, and plating.
|
|
67
|
+
|
|
68
|
+
`transformation_deck(on_module=True)` names the 24-well DNA block, the cell tubes, and the reaction plate. This is an Opentrons preset; the example uses `LiquidHandler.OT2`. For a document with no robot, import `Manual` from `lab.targets` and use `ProtocolCompiler().compile(request, hardware=Manual())`.
|
|
69
|
+
|
|
70
|
+
## Describe a deck
|
|
71
|
+
|
|
72
|
+
This OT-2 deck places two 96-well plates in slots 1 and 2, a 300 µL tip rack in slot 3, and a P300 pipette on the left mount. It uses the same equipment and placement types as the [deck layouts example](https://github.com/the-lab-compiler/lab-py/blob/master/examples/deck_layouts.py).
|
|
73
|
+
|
|
74
|
+
```python
|
|
75
|
+
from lab.deck import Deck, DeckLayout, Pipette, Placement, Slot, TipRack
|
|
76
|
+
from lab.equipment import LabwareModel, LiquidHandler, Mount, PipetteModel, TipRackModel
|
|
77
|
+
from lab.labware import PLATE_96, ContainerSpec
|
|
78
|
+
|
|
79
|
+
deck = Deck(
|
|
80
|
+
containers=(
|
|
81
|
+
ContainerSpec(id="sources", labware=PLATE_96),
|
|
82
|
+
ContainerSpec(id="assay", labware=PLATE_96),
|
|
83
|
+
),
|
|
84
|
+
layouts=(
|
|
85
|
+
DeckLayout(
|
|
86
|
+
liquid_handler=LiquidHandler.OT2,
|
|
87
|
+
placements=(
|
|
88
|
+
Placement(
|
|
89
|
+
container="sources",
|
|
90
|
+
model=LabwareModel.CORNING_96_360_UL,
|
|
91
|
+
location=Slot("1"),
|
|
92
|
+
),
|
|
93
|
+
Placement(
|
|
94
|
+
container="assay",
|
|
95
|
+
model=LabwareModel.CORNING_96_360_UL,
|
|
96
|
+
location=Slot("2"),
|
|
97
|
+
),
|
|
98
|
+
),
|
|
99
|
+
tip_racks=(
|
|
100
|
+
TipRack(
|
|
101
|
+
id="tips",
|
|
102
|
+
model=TipRackModel.OPENTRONS_300_UL,
|
|
103
|
+
location=Slot("3"),
|
|
104
|
+
),
|
|
105
|
+
),
|
|
106
|
+
pipettes=(
|
|
107
|
+
Pipette(
|
|
108
|
+
model=PipetteModel.P300_SINGLE_GEN2,
|
|
109
|
+
mount=Mount.LEFT,
|
|
110
|
+
tip_racks=("tips"),
|
|
111
|
+
),
|
|
112
|
+
),
|
|
113
|
+
),
|
|
114
|
+
),
|
|
115
|
+
)
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
The container ids, `sources` and `assay`, match the names used by the protocol. `DeckLayout` assigns each container a physical model and position, and connects the pipette to its tip rack. A deck can include additional layouts for Flex or STAR using the same container ids.
|
|
119
|
+
|
|
120
|
+
## Describe physical layouts in Lab
|
|
121
|
+
|
|
122
|
+
Use `DeckLayout` when equipment or placement needs to be explicit. Each layout names its `LiquidHandler` and places the same shared containers. All objects below belong to Lab:
|
|
123
|
+
|
|
124
|
+
| Object | Purpose |
|
|
125
|
+
| --- | --- |
|
|
126
|
+
| `Placement` | A container's physical labware model, position, and optional well mapping |
|
|
127
|
+
| `Slot`, `Rail`, `HolderSite` | A deck slot, carrier rail, or indexed site on a named holder |
|
|
128
|
+
| `Carrier`, `Module` | Equipment that occupies a position and holds other resources |
|
|
129
|
+
| `TipRack` | A tip model and its position |
|
|
130
|
+
| `Pipette`, `Channel` | A mounted pipette or independent channel, with its assigned tip racks |
|
|
131
|
+
|
|
132
|
+
Equipment models are typed identifiers from `lab.equipment`; each backend resolves the models it supports. A STAR layout can place a carrier at `Rail(20)` and a plate at `HolderSite("plates", 3)`. An Opentrons layout can place the same logical container at `Slot("2")` or on a named module. The shared model does not impose one thermal device on every handler. Targets enforce their supported device counts, models, locations, and module footprints.
|
|
133
|
+
|
|
134
|
+
The [deck layouts example](https://github.com/the-lab-compiler/lab-py/blob/master/examples/deck_layouts.py) prepares duplicate BSA standards and purified protein samples in a flat-bottom assay plate using a reservoir of prepared BCA working reagent. `protocol()` describes the transfers; `deck()` shares the container requirements and calls `opentrons_layout()` for OT-2 and Flex and `hamilton_layout()` for STAR. The logical source wells map to physical wells `B1`–`B12` on each handler; STAR also specifies carriers, rails, and occupied carrier sites. Mixing, incubation, and absorbance reading remain an explicit operator handoff following the [Pierce BCA guide](https://www.thermofisher.com/TFS-Assets/LSG/manuals/MAN0011430_Pierce_BCA_Protein_Asy_UG.pdf). The example imports only Lab types and the Python standard library, with layouts to adapt to installed equipment.
|
|
135
|
+
|
|
136
|
+
```python
|
|
137
|
+
from examples.deck_layouts import deck, protocol
|
|
138
|
+
from lab import compile
|
|
139
|
+
from lab.targets import LiquidHandler
|
|
140
|
+
|
|
141
|
+
compiled = compile(protocol(), deck(), liquid_handler=LiquidHandler.STAR)
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
The compiler rejects missing layouts, conflicting placements, invalid holder references, incompatible labware, and unsupported target features. It preserves the authored Lab deck in `plan.json` alongside the resolved backend configuration. Physical geometry comes from the selected equipment definitions; the STAR backend constructs and serializes the PyLabRobot resource hierarchy internally.
|
|
145
|
+
|
|
146
|
+
For Opentrons, place thermal labware on a supported `Module`. STAR thermal operations currently use an external device integration: declare the container in `DeckLayout.external_thermal_resources` and supply the async `thermocycle` callback when the generated `run()` executes. The callback controls the device and returns the plate to its original position. Compilation checks the declaration; the software preview only reports the request. Unsupported on-deck thermal models produce an error.
|
|
147
|
+
|
|
148
|
+
## Try it
|
|
149
|
+
|
|
150
|
+
The examples live in the source repository. To run them with Python 3.12 and both optional SDKs:
|
|
151
|
+
|
|
152
|
+
```sh
|
|
153
|
+
git clone https://github.com/the-lab-compiler/lab-py.git
|
|
154
|
+
cd lab-py
|
|
155
|
+
uv sync --locked --all-extras
|
|
156
|
+
uv run python -m examples.cloning --target manual
|
|
157
|
+
uv run python -m examples.cloning --target ot2
|
|
158
|
+
uv run python -m examples.deck_layouts --target star
|
|
159
|
+
uv run python -m examples.deck_layouts --target ot2
|
|
160
|
+
uv run python -m examples.deck_layouts --target flex
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
A bundle is `protocol.html`, `plan.json`, and `protocol.py` when the target is a robot. `ProtocolCompiler` also writes `manifest.json` with the planned outputs. The cloning example writes separate `assembly`, `transformation`, and `plating` bundles under `build/cloning/<target>` or the directory supplied with `--out`, including for the manual target. The shared deck example writes to `build/decks/<target>` or its `--out` directory. Compilation never connects to hardware. Rebuilding identical files succeeds. A different plan in the same directory is rejected.
|
|
164
|
+
|
|
165
|
+
## Status
|
|
166
|
+
|
|
167
|
+
Lab Compiler is an early prototype. It checks a plan and emits a document or device program for the OT-2, Flex, and STAR. Software checks are not calibration, collision safety, or qualification of a physical run. Generated instructions need a person and a facility before anyone uses them at the bench.
|
|
168
|
+
|
|
169
|
+
## Development
|
|
170
|
+
|
|
171
|
+
```sh
|
|
172
|
+
uv sync --locked --all-extras
|
|
173
|
+
uv run --no-sync ruff check .
|
|
174
|
+
uv run --no-sync mypy
|
|
175
|
+
uv run --no-sync pytest
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
See the [release guide](https://github.com/the-lab-compiler/lab-py/blob/master/docs/releasing.md) for package validation and PyPI publishing.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 387 64" role="img" aria-labelledby="title">
|
|
2
|
+
<title id="title">Lab full wordmark, for dark surfaces</title>
|
|
3
|
+
<rect width="64" height="64" rx="15" fill="#2b1c11"/>
|
|
4
|
+
<rect x="17" y="17.5" width="31" height="5.5" rx="2.75" fill="#f0e3c9" fill-opacity=".34"/>
|
|
5
|
+
<rect x="22" y="36" width="26" height="5.5" rx="2.75" fill="#e1901f"/>
|
|
6
|
+
<path d="M27 33.25 20 38.75 27 44.25" fill="none" stroke="#e1901f" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7
|
+
<g fill="#f9efdd" transform="translate(82 44)">
|
|
8
|
+
<path transform="translate(0.00 0.00) scale(0.041016 -0.041016)" d="M553.00 592.00 576.00 420.00 520.00 415.00 480.00 529.00Q469.00 531.00 458.50 531.50Q448.00 532.00 437.00 532.00H402.00Q393.00 532.00 379.50 532.00Q366.00 532.00 358.00 530.00Q358.00 523.00 357.50 493.00Q357.00 463.00 356.50 421.50Q356.00 380.00 356.00 338.00V231.00Q356.00 173.00 357.00 127.00Q358.00 81.00 359.00 61.00L445.00 48.00L442.00 0.00H150.00L147.00 48.00L233.00 61.00Q234.00 81.00 235.00 127.00Q236.00 173.00 236.00 231.00V338.00Q236.00 380.00 235.50 421.50Q235.00 463.00 235.00 493.00Q235.00 523.00 234.00 530.00Q226.00 532.00 213.00 532.00Q200.00 532.00 190.00 532.00H154.00Q143.00 532.00 132.00 531.50Q121.00 531.00 110.00 529.00L71.00 413.00L15.00 419.00L36.00 592.00Q47.00 591.00 63.00 590.50Q79.00 590.00 97.00 589.00Q115.00 588.00 132.00 587.50Q149.00 587.00 162.00 587.00H427.00Q440.00 587.00 457.00 587.50Q474.00 588.00 492.00 589.00Q510.00 590.00 526.00 590.50Q542.00 591.00 553.00 592.00Z"/><path transform="translate(23.84 0.00) scale(0.041016 -0.041016)" d="M22.00 0.00 19.00 43.00 81.00 59.00Q83.00 68.00 84.00 94.00Q85.00 120.00 86.00 157.50Q87.00 195.00 87.00 236.00V361.00Q87.00 395.00 86.50 431.00Q86.00 467.00 85.50 500.50Q85.00 534.00 84.00 560.50Q83.00 587.00 82.00 601.00L8.00 611.00L6.00 650.00L179.00 696.00L204.00 680.00Q203.00 649.00 201.50 619.50Q200.00 590.00 199.50 555.00Q199.00 520.00 198.00 475.50Q197.00 431.00 196.00 370.00L199.00 369.00Q231.00 407.00 267.00 425.50Q303.00 444.00 344.00 444.00Q385.00 444.00 418.50 423.50Q452.00 403.00 472.00 363.00Q492.00 323.00 492.00 265.00V161.00Q492.00 127.00 493.50 97.50Q495.00 68.00 497.00 59.00L559.00 43.00L556.00 0.00H322.00L319.00 43.00L376.00 59.00Q378.00 67.00 379.00 82.00Q380.00 97.00 380.50 117.00Q381.00 137.00 381.00 158.00V250.00Q381.00 289.00 368.50 313.50Q356.00 338.00 336.00 349.50Q316.00 361.00 292.00 361.00Q265.00 361.00 240.50 348.50Q216.00 336.00 198.00 312.00V164.00Q198.00 124.00 199.50 95.50Q201.00 67.00 204.00 59.00L265.00 43.00L262.00 0.00Z"/><path transform="translate(46.98 0.00) scale(0.041016 -0.041016)" d="M254.00 -8.00Q192.00 -8.00 142.50 20.00Q93.00 48.00 65.00 97.50Q37.00 147.00 37.00 211.00Q37.00 281.00 68.00 333.50Q99.00 386.00 149.00 415.50Q199.00 445.00 256.00 444.00Q343.00 443.00 388.50 389.00Q434.00 335.00 434.00 248.00V226.00H138.00V276.00H347.00L333.00 255.00V285.00Q333.00 335.00 310.50 364.00Q288.00 393.00 248.00 393.00Q222.00 393.00 200.00 378.00Q178.00 363.00 165.00 333.00Q152.00 303.00 152.00 258.00V240.00Q152.00 166.00 190.50 122.00Q229.00 78.00 293.00 78.00Q327.00 78.00 354.50 90.50Q382.00 103.00 409.00 134.00L438.00 108.00Q410.00 50.00 361.50 21.00Q313.00 -8.00 254.00 -8.00Z"/><path transform="translate(73.29 0.00) scale(0.041016 -0.041016)" d="M487.00 -6.00Q465.00 -4.00 439.00 -3.00Q413.00 -2.00 389.50 -1.00Q366.00 0.00 350.00 0.00H42.00L39.00 46.00L102.00 61.00Q104.00 66.00 105.00 87.00Q106.00 108.00 106.50 141.00Q107.00 174.00 107.00 213.00V373.00Q107.00 414.00 106.50 446.50Q106.00 479.00 105.00 500.00Q104.00 521.00 102.00 525.00L39.00 541.00L42.00 587.00H312.00L315.00 539.00L232.00 525.00Q231.00 522.00 229.50 502.50Q228.00 483.00 227.00 450.00Q226.00 417.00 226.00 373.00V213.00Q226.00 157.00 227.00 120.50Q228.00 84.00 229.00 72.00Q245.00 69.00 262.50 68.00Q280.00 67.00 305.00 67.00H352.00Q376.00 67.00 392.50 69.00Q409.00 71.00 422.00 73.00L477.00 178.00L533.00 164.00Z"/><path transform="translate(94.84 0.00) scale(0.041016 -0.041016)" d="M188.00 -8.00Q143.00 -8.00 110.50 11.00Q78.00 30.00 61.00 57.00Q44.00 84.00 44.00 109.00Q44.00 144.00 66.00 167.50Q88.00 191.00 136.00 206.00L292.00 254.00V295.00Q292.00 317.00 278.00 336.00Q264.00 355.00 241.00 367.00Q218.00 379.00 191.00 379.00Q172.00 379.00 164.50 370.50Q157.00 362.00 155.00 337.00L151.00 283.00Q106.00 273.00 76.50 285.50Q47.00 298.00 47.00 327.00Q47.00 345.00 65.00 364.00Q83.00 383.00 110.50 400.00Q138.00 417.00 168.00 429.00Q198.00 441.00 223.00 444.00Q307.00 444.00 356.50 404.00Q406.00 364.00 407.00 297.00L404.00 149.00Q404.00 124.00 405.50 107.50Q407.00 91.00 411.00 81.00L476.00 69.00V31.00L417.00 6.00Q400.00 -1.00 386.00 -4.50Q372.00 -8.00 360.00 -8.00Q324.00 -8.00 310.00 30.00L295.00 74.00L314.00 70.00Q283.00 33.00 251.00 12.50Q219.00 -8.00 188.00 -8.00ZM231.00 72.00Q248.00 72.00 263.50 79.00Q279.00 86.00 292.00 101.00V201.00L209.00 183.00Q185.00 178.00 174.50 166.00Q164.00 154.00 164.00 134.00Q164.00 110.00 183.50 91.00Q203.00 72.00 231.00 72.00Z"/><path transform="translate(114.41 0.00) scale(0.041016 -0.041016)" d="M71.00 28.00Q73.00 62.00 73.50 93.50Q74.00 125.00 74.00 157.50Q74.00 190.00 74.00 223.00V362.00Q74.00 404.00 73.50 443.00Q73.00 482.00 72.50 514.00Q72.00 546.00 71.50 569.00Q71.00 592.00 70.00 602.00L-4.00 611.00L-6.00 650.00L167.00 696.00L192.00 680.00Q190.00 639.00 188.50 598.00Q187.00 557.00 186.00 503.50Q185.00 450.00 183.00 371.00L186.00 370.00Q208.00 400.00 245.00 422.00Q282.00 444.00 324.00 444.00Q374.00 444.00 416.00 419.50Q458.00 395.00 484.00 349.50Q510.00 304.00 510.00 240.00Q510.00 170.00 477.00 114.00Q444.00 58.00 384.50 25.00Q325.00 -8.00 247.00 -8.00Q201.00 -8.00 156.50 1.50Q112.00 11.00 71.00 28.00ZM271.00 58.00Q321.00 58.00 354.50 96.50Q388.00 135.00 389.00 214.00Q390.00 289.00 355.00 323.50Q320.00 358.00 273.00 358.00Q248.00 358.00 225.00 347.50Q202.00 337.00 185.00 317.00V86.00Q202.00 73.00 224.00 65.50Q246.00 58.00 271.00 58.00Z"/><path transform="translate(144.01 0.00) scale(0.041016 -0.041016)" d="M371.00 -9.00Q277.00 -9.00 204.00 25.00Q131.00 59.00 89.00 125.00Q47.00 191.00 47.00 286.00Q47.00 355.00 71.50 412.00Q96.00 469.00 141.50 510.00Q187.00 551.00 250.00 573.50Q313.00 596.00 390.00 596.00Q434.00 596.00 480.00 587.00Q526.00 578.00 559.00 563.00L566.00 415.00L510.00 411.00L477.00 513.00Q458.00 524.00 432.50 529.50Q407.00 535.00 381.00 535.00Q317.00 535.00 274.50 506.00Q232.00 477.00 210.50 426.00Q189.00 375.00 189.00 308.00Q189.00 228.00 216.00 171.00Q243.00 114.00 288.50 84.00Q334.00 54.00 390.00 54.00Q417.00 54.00 445.00 62.00Q473.00 70.00 492.00 85.00L530.00 176.00L590.00 170.00L561.00 40.00Q530.00 21.00 478.50 6.00Q427.00 -9.00 371.00 -9.00Z"/><path transform="translate(168.58 0.00) scale(0.041016 -0.041016)" d="M265.00 -8.00Q197.00 -8.00 145.50 20.50Q94.00 49.00 65.00 99.50Q36.00 150.00 36.00 215.00Q36.00 286.00 68.50 337.50Q101.00 389.00 154.50 416.50Q208.00 444.00 269.00 444.00Q334.00 444.00 383.00 416.00Q432.00 388.00 459.50 338.00Q487.00 288.00 487.00 223.00Q487.00 158.00 457.50 105.50Q428.00 53.00 377.50 22.50Q327.00 -8.00 265.00 -8.00ZM275.00 50.00Q303.00 50.00 323.00 67.50Q343.00 85.00 354.00 118.00Q365.00 151.00 365.00 195.00Q365.00 281.00 335.00 335.00Q305.00 389.00 255.00 389.00Q212.00 389.00 186.00 348.00Q160.00 307.00 160.00 239.00Q160.00 185.00 175.00 142.00Q190.00 99.00 216.00 74.50Q242.00 50.00 275.00 50.00Z"/><path transform="translate(189.68 0.00) scale(0.041016 -0.041016)" d="M23.00 0.00 20.00 43.00 82.00 59.00Q83.00 63.00 84.00 76.00Q85.00 89.00 86.00 110.50Q87.00 132.00 87.00 161.00L88.00 237.00Q88.00 257.00 87.00 275.50Q86.00 294.00 84.00 311.50Q82.00 329.00 79.00 344.00L15.00 358.00V399.00L178.00 442.00L202.00 425.00L196.00 369.00L199.00 368.00Q231.00 408.00 265.00 426.00Q299.00 444.00 336.00 444.00Q374.00 444.00 407.50 424.50Q441.00 405.00 462.00 365.50Q483.00 326.00 483.00 265.00L485.00 161.00Q485.00 127.00 486.00 97.50Q487.00 68.00 490.00 59.00L547.00 43.00L544.00 0.00H319.00L316.00 43.00L369.00 59.00Q371.00 67.00 372.00 82.00Q373.00 97.00 373.50 117.00Q374.00 137.00 374.00 158.00L373.00 257.00Q373.00 295.00 361.50 318.00Q350.00 341.00 331.00 351.00Q312.00 361.00 289.00 361.00Q264.00 361.00 240.00 348.50Q216.00 336.00 199.00 312.00V164.00Q199.00 127.00 200.50 97.00Q202.00 67.00 205.00 59.00L262.00 43.00L259.00 0.00ZM602.00 0.00 599.00 43.00 653.00 59.00Q655.00 67.00 656.00 82.00Q657.00 97.00 657.50 117.00Q658.00 137.00 658.00 158.00L657.00 251.00Q657.00 291.00 644.50 315.00Q632.00 339.00 612.00 350.00Q592.00 361.00 569.00 361.00Q541.00 361.00 516.50 348.50Q492.00 336.00 474.00 310.00L449.00 350.00Q484.00 396.00 524.00 420.00Q564.00 444.00 610.00 444.00Q657.00 444.00 692.50 422.00Q728.00 400.00 747.50 360.50Q767.00 321.00 767.00 267.00L768.00 161.00Q768.00 127.00 769.50 97.50Q771.00 68.00 774.00 59.00L836.00 43.00L833.00 0.00Z"/><path transform="translate(224.18 0.00) scale(0.041016 -0.041016)" d="M20.00 -220.00 17.00 -177.00 79.00 -161.00Q79.00 -156.00 80.00 -141.00Q81.00 -126.00 81.50 -102.00Q82.00 -78.00 83.00 -46.00Q84.00 -14.00 84.00 25.00L86.00 239.00Q86.00 269.00 84.00 295.00Q82.00 321.00 77.00 344.00L13.00 358.00V399.00L176.00 442.00L200.00 425.00L193.00 367.00L196.00 366.00Q221.00 402.00 256.00 423.00Q291.00 444.00 331.00 444.00Q381.00 444.00 423.00 418.50Q465.00 393.00 490.50 346.00Q516.00 299.00 516.00 234.00Q516.00 168.00 486.00 113.50Q456.00 59.00 402.00 26.00Q348.00 -7.00 276.00 -7.00Q257.00 -7.00 236.00 -3.50Q215.00 0.00 197.00 7.00V-60.00Q197.00 -95.00 198.50 -124.00Q200.00 -153.00 201.00 -161.00L283.00 -176.00L280.00 -220.00ZM278.00 57.00Q313.00 57.00 338.50 73.50Q364.00 90.00 379.00 123.50Q394.00 157.00 394.00 207.00Q395.00 257.00 379.50 290.50Q364.00 324.00 339.00 341.00Q314.00 358.00 283.00 358.00Q258.00 358.00 236.00 346.50Q214.00 335.00 197.00 313.00V81.00Q213.00 70.00 234.50 63.50Q256.00 57.00 278.00 57.00Z"/><path transform="translate(246.50 0.00) scale(0.041016 -0.041016)" d="M18.00 0.00 15.00 44.00 82.00 59.00Q83.00 63.00 84.00 76.00Q85.00 89.00 86.00 110.50Q87.00 132.00 87.00 161.00L88.00 237.00Q88.00 268.00 86.00 294.50Q84.00 321.00 79.00 344.00L12.00 358.00V399.00L183.00 442.00L206.00 425.00Q203.00 394.00 201.50 362.50Q200.00 331.00 200.00 290.00V164.00Q200.00 127.00 201.50 97.00Q203.00 67.00 206.00 59.00L273.00 44.00L270.00 0.00ZM145.00 535.00Q110.00 535.00 89.00 556.50Q68.00 578.00 68.00 608.00Q68.00 637.00 89.00 659.00Q110.00 681.00 145.00 681.00Q180.00 681.00 200.00 659.00Q220.00 637.00 220.00 608.00Q220.00 578.00 200.00 556.50Q180.00 535.00 145.00 535.00Z"/><path transform="translate(257.83 0.00) scale(0.041016 -0.041016)" d="M19.00 0.00 16.00 44.00 81.00 59.00Q83.00 68.00 84.00 94.00Q85.00 120.00 86.00 157.50Q87.00 195.00 87.00 236.00V362.00Q87.00 397.00 86.50 433.50Q86.00 470.00 85.50 503.00Q85.00 536.00 84.00 561.50Q83.00 587.00 82.00 601.00L8.00 611.00L6.00 650.00L181.00 696.00L206.00 680.00Q205.00 638.00 203.50 597.50Q202.00 557.00 201.50 507.00Q201.00 457.00 201.00 385.00L200.00 233.00Q200.00 167.00 201.50 117.50Q203.00 68.00 205.00 59.00L270.00 44.00L268.00 0.00Z"/><path transform="translate(269.20 0.00) scale(0.041016 -0.041016)" d="M254.00 -8.00Q192.00 -8.00 142.50 20.00Q93.00 48.00 65.00 97.50Q37.00 147.00 37.00 211.00Q37.00 281.00 68.00 333.50Q99.00 386.00 149.00 415.50Q199.00 445.00 256.00 444.00Q343.00 443.00 388.50 389.00Q434.00 335.00 434.00 248.00V226.00H138.00V276.00H347.00L333.00 255.00V285.00Q333.00 335.00 310.50 364.00Q288.00 393.00 248.00 393.00Q222.00 393.00 200.00 378.00Q178.00 363.00 165.00 333.00Q152.00 303.00 152.00 258.00V240.00Q152.00 166.00 190.50 122.00Q229.00 78.00 293.00 78.00Q327.00 78.00 354.50 90.50Q382.00 103.00 409.00 134.00L438.00 108.00Q410.00 50.00 361.50 21.00Q313.00 -8.00 254.00 -8.00Z"/><path transform="translate(287.92 0.00) scale(0.041016 -0.041016)" d="M23.00 0.00 20.00 43.00 82.00 59.00Q83.00 63.00 84.00 76.00Q85.00 89.00 86.00 110.50Q87.00 132.00 87.00 161.00L88.00 237.00Q88.00 268.00 86.00 294.50Q84.00 321.00 79.00 344.00L15.00 358.00V399.00L176.00 442.00L198.00 426.00L194.00 346.00L197.00 345.00Q226.00 401.00 256.00 421.00Q286.00 441.00 316.00 441.00Q342.00 441.00 360.50 427.00Q379.00 413.00 379.00 384.00Q379.00 355.00 359.00 339.00Q339.00 323.00 311.00 323.00Q289.00 323.00 271.00 331.00Q253.00 339.00 233.00 358.00L257.00 355.00Q241.00 343.00 226.00 324.50Q211.00 306.00 199.00 281.00L200.00 198.00Q201.00 165.00 202.00 136.50Q203.00 108.00 204.00 87.50Q205.00 67.00 206.00 59.00L293.00 45.00L290.00 0.00Z"/>
|
|
9
|
+
</g>
|
|
10
|
+
</svg>
|