artios 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.
Files changed (145) hide show
  1. artios-0.1.0/LICENSE +208 -0
  2. artios-0.1.0/NOTICE +117 -0
  3. artios-0.1.0/PKG-INFO +254 -0
  4. artios-0.1.0/README.md +197 -0
  5. artios-0.1.0/artios/__init__.py +0 -0
  6. artios-0.1.0/artios/assets.py +179 -0
  7. artios-0.1.0/artios/cli.py +535 -0
  8. artios-0.1.0/artios/common/__init__.py +0 -0
  9. artios-0.1.0/artios/common/atom_types.py +349 -0
  10. artios-0.1.0/artios/common/ccd_sets.py +187 -0
  11. artios-0.1.0/artios/common/chain_type.py +42 -0
  12. artios-0.1.0/artios/common/constants.py +960 -0
  13. artios-0.1.0/artios/common/elements.py +163 -0
  14. artios-0.1.0/artios/common/residue_names.py +222 -0
  15. artios-0.1.0/artios/common/residue_stats.py +451 -0
  16. artios-0.1.0/artios/config/__init__.py +14 -0
  17. artios-0.1.0/artios/config/config.py +299 -0
  18. artios-0.1.0/artios/config/extend_types.py +55 -0
  19. artios-0.1.0/artios/configs/__init__.py +0 -0
  20. artios-0.1.0/artios/configs/configs_base.py +322 -0
  21. artios-0.1.0/artios/configs/configs_data.py +262 -0
  22. artios-0.1.0/artios/configs/configs_inference.py +23 -0
  23. artios-0.1.0/artios/contacts/__init__.py +33 -0
  24. artios-0.1.0/artios/contacts/aromatic.py +399 -0
  25. artios-0.1.0/artios/contacts/geometry.py +338 -0
  26. artios-0.1.0/artios/contacts/hydrogen_bonds.py +512 -0
  27. artios-0.1.0/artios/contacts/valence.py +417 -0
  28. artios-0.1.0/artios/data/__init__.py +0 -0
  29. artios-0.1.0/artios/data/array_builder.py +746 -0
  30. artios-0.1.0/artios/data/chem/__init__.py +0 -0
  31. artios-0.1.0/artios/data/chem/ccd.py +513 -0
  32. artios-0.1.0/artios/data/chem/perms.py +257 -0
  33. artios-0.1.0/artios/data/chem/rdkit.py +451 -0
  34. artios-0.1.0/artios/data/collate/__init__.py +0 -0
  35. artios-0.1.0/artios/data/collate/collate.py +107 -0
  36. artios-0.1.0/artios/data/collate/padding.py +75 -0
  37. artios-0.1.0/artios/data/data_pipeline.py +210 -0
  38. artios-0.1.0/artios/data/data_weights.py +526 -0
  39. artios-0.1.0/artios/data/dataloader.py +520 -0
  40. artios-0.1.0/artios/data/dataset.py +901 -0
  41. artios-0.1.0/artios/data/engineering/__init__.py +12 -0
  42. artios-0.1.0/artios/data/engineering/metrics/__init__.py +0 -0
  43. artios-0.1.0/artios/data/engineering/metrics/structural.py +188 -0
  44. artios-0.1.0/artios/data/engineering/pipeline/__init__.py +0 -0
  45. artios-0.1.0/artios/data/engineering/pipeline/thresholds.py +97 -0
  46. artios-0.1.0/artios/data/features/__init__.py +7 -0
  47. artios-0.1.0/artios/data/features/context.py +868 -0
  48. artios-0.1.0/artios/data/features/featurizer.py +823 -0
  49. artios-0.1.0/artios/data/filter.py +763 -0
  50. artios-0.1.0/artios/data/fragment.py +633 -0
  51. artios-0.1.0/artios/data/infer_data_pipeline.py +228 -0
  52. artios-0.1.0/artios/data/motif_maker.py +731 -0
  53. artios-0.1.0/artios/data/msa/__init__.py +6 -0
  54. artios-0.1.0/artios/data/msa/a3m.py +104 -0
  55. artios-0.1.0/artios/data/msa/sampler.py +348 -0
  56. artios-0.1.0/artios/data/parsing/__init__.py +0 -0
  57. artios-0.1.0/artios/data/parsing/_biotite_compat.py +80 -0
  58. artios-0.1.0/artios/data/parsing/bioassembly.py +562 -0
  59. artios-0.1.0/artios/data/parsing/indexing.py +452 -0
  60. artios-0.1.0/artios/data/parsing/json.py +414 -0
  61. artios-0.1.0/artios/data/parsing/mmcif.py +482 -0
  62. artios-0.1.0/artios/data/parsing/motif.py +164 -0
  63. artios-0.1.0/artios/data/parsing/residue_repair.py +565 -0
  64. artios-0.1.0/artios/data/pocket/__init__.py +15 -0
  65. artios-0.1.0/artios/data/pocket/detect.py +322 -0
  66. artios-0.1.0/artios/data/pocket/legacy.py +612 -0
  67. artios-0.1.0/artios/data/pocket/pocket_rf.joblib +0 -0
  68. artios-0.1.0/artios/data/pocket/sphere_rf.joblib +0 -0
  69. artios-0.1.0/artios/data/pocket/tessellation.py +107 -0
  70. artios-0.1.0/artios/data/structure/__init__.py +9 -0
  71. artios-0.1.0/artios/data/structure/annotation.py +1220 -0
  72. artios-0.1.0/artios/data/structure/cropping.py +620 -0
  73. artios-0.1.0/artios/data/structure/id_transforms.py +159 -0
  74. artios-0.1.0/artios/data/structure/structure.py +818 -0
  75. artios-0.1.0/artios/data/structure/tokenization.py +192 -0
  76. artios-0.1.0/artios/data/structure/tokenizer.py +99 -0
  77. artios-0.1.0/artios/data/tokenizer.py +11 -0
  78. artios-0.1.0/artios/data/utils.py +510 -0
  79. artios-0.1.0/artios/electrostatics/__init__.py +31 -0
  80. artios-0.1.0/artios/electrostatics/apbs.py +222 -0
  81. artios-0.1.0/artios/electrostatics/core.py +242 -0
  82. artios-0.1.0/artios/electrostatics/pqr.py +191 -0
  83. artios-0.1.0/artios/electrostatics/surface.py +133 -0
  84. artios-0.1.0/artios/metrics/__init__.py +0 -0
  85. artios-0.1.0/artios/metrics/lddt_metrics.py +161 -0
  86. artios-0.1.0/artios/metrics/rmsd.py +306 -0
  87. artios-0.1.0/artios/model/__init__.py +0 -0
  88. artios-0.1.0/artios/model/artios_backbone.py +373 -0
  89. artios-0.1.0/artios/model/artios_potts.py +655 -0
  90. artios-0.1.0/artios/model/generator.py +1006 -0
  91. artios-0.1.0/artios/model/loss.py +455 -0
  92. artios-0.1.0/artios/model/modules/__init__.py +0 -0
  93. artios-0.1.0/artios/model/modules/components.py +235 -0
  94. artios-0.1.0/artios/model/modules/diffusion_backbone.py +932 -0
  95. artios-0.1.0/artios/model/modules/embedders.py +198 -0
  96. artios-0.1.0/artios/model/modules/layout.py +266 -0
  97. artios-0.1.0/artios/model/modules/message_passing.py +91 -0
  98. artios-0.1.0/artios/model/modules/mpnn.py +349 -0
  99. artios-0.1.0/artios/model/modules/mpnn_features.py +450 -0
  100. artios-0.1.0/artios/model/modules/mpnn_layers.py +302 -0
  101. artios-0.1.0/artios/model/modules/penalty.py +468 -0
  102. artios-0.1.0/artios/model/modules/potts.py +589 -0
  103. artios-0.1.0/artios/model/modules/primitives.py +397 -0
  104. artios-0.1.0/artios/model/modules/transformer.py +576 -0
  105. artios-0.1.0/artios/model/output.py +85 -0
  106. artios-0.1.0/artios/model/utils.py +266 -0
  107. artios-0.1.0/artios/potts/__init__.py +27 -0
  108. artios-0.1.0/artios/potts/designer.py +340 -0
  109. artios-0.1.0/artios/potts/structure.py +526 -0
  110. artios-0.1.0/artios/runner/__init__.py +0 -0
  111. artios-0.1.0/artios/runner/ema.py +88 -0
  112. artios-0.1.0/artios/runner/inference.py +327 -0
  113. artios-0.1.0/artios/runner/train_backbone.py +761 -0
  114. artios-0.1.0/artios/runner/train_potts.py +633 -0
  115. artios-0.1.0/artios/utils/__init__.py +0 -0
  116. artios-0.1.0/artios/utils/casting.py +28 -0
  117. artios-0.1.0/artios/utils/distributed.py +72 -0
  118. artios-0.1.0/artios/utils/dssp.py +221 -0
  119. artios-0.1.0/artios/utils/file_io.py +174 -0
  120. artios-0.1.0/artios/utils/geometry.py +226 -0
  121. artios-0.1.0/artios/utils/inference.py +8 -0
  122. artios-0.1.0/artios/utils/logger.py +84 -0
  123. artios-0.1.0/artios/utils/lr_scheduler.py +169 -0
  124. artios-0.1.0/artios/utils/metrics.py +102 -0
  125. artios-0.1.0/artios/utils/monitoring.py +106 -0
  126. artios-0.1.0/artios/utils/muon.py +291 -0
  127. artios-0.1.0/artios/utils/profiler.py +29 -0
  128. artios-0.1.0/artios/utils/scatter_utils.py +154 -0
  129. artios-0.1.0/artios/utils/seed.py +34 -0
  130. artios-0.1.0/artios/utils/structure_io.py +450 -0
  131. artios-0.1.0/artios/utils/tensor_utils.py +152 -0
  132. artios-0.1.0/artios/utils/training.py +224 -0
  133. artios-0.1.0/artios/utils/typing.py +51 -0
  134. artios-0.1.0/artios.egg-info/PKG-INFO +254 -0
  135. artios-0.1.0/artios.egg-info/SOURCES.txt +143 -0
  136. artios-0.1.0/artios.egg-info/dependency_links.txt +1 -0
  137. artios-0.1.0/artios.egg-info/entry_points.txt +2 -0
  138. artios-0.1.0/artios.egg-info/requires.txt +34 -0
  139. artios-0.1.0/artios.egg-info/top_level.txt +1 -0
  140. artios-0.1.0/pyproject.toml +133 -0
  141. artios-0.1.0/setup.cfg +4 -0
  142. artios-0.1.0/tests/test_array_builder.py +269 -0
  143. artios-0.1.0/tests/test_artios_potts.py +889 -0
  144. artios-0.1.0/tests/test_artios_potts_msa.py +268 -0
  145. artios-0.1.0/tests/test_potts.py +691 -0
artios-0.1.0/LICENSE ADDED
@@ -0,0 +1,208 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2024 ByteDance and/or its affiliates.
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
203
+
204
+ Implementation of the `LayerNorm` operators (in protenix/model/layer_norm/) referred to [OneFlow]
205
+ (https://github.com/Oneflow-Inc/oneflow) and [FastFold](https://github.com/hpcaitech/FastFold).
206
+ We used [OpenFold](https://github.com/aqlaboratory/openfold) for some
207
+ (in protenix/openfold_local/) implementations, except the `LayerNorm` part. the worker OneFlow,
208
+ FastFold and openfold are licensed under Apache License 2.0.
artios-0.1.0/NOTICE ADDED
@@ -0,0 +1,117 @@
1
+ Artios
2
+ Copyright 2025-2026 Ligo Biosciences
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ ================================================================================
7
+ Protenix
8
+ ================================================================================
9
+
10
+ This product is a derivative work of Protenix
11
+ (https://github.com/bytedance/Protenix):
12
+
13
+ Copyright 2024 ByteDance and/or its affiliates.
14
+ Licensed under the Apache License, Version 2.0.
15
+
16
+ Many files under artios/ (including artios/configs/ and artios/runner/)
17
+ originate from Protenix and have been modified by Ligo Biosciences. The package was renamed from
18
+ `protenix` to `artios`; the full modification history is available in this
19
+ repository's git history.
20
+
21
+ ================================================================================
22
+ Other Apache-2.0 licensed code
23
+ ================================================================================
24
+
25
+ Chai-1 (https://github.com/chaidiscovery/chai-lab)
26
+ Copyright (c) 2024 Chai Discovery, Inc.
27
+ Licensed under the Apache License, Version 2.0.
28
+ Used in: artios/utils/typing.py
29
+
30
+ ================================================================================
31
+ MIT licensed code
32
+ ================================================================================
33
+
34
+ pytorch_scatter (https://github.com/rusty1s/pytorch_scatter)
35
+ Copyright (c) 2020 Matthias Fey <matthias.fey@tu-dortmund.de>
36
+ Used in: artios/utils/scatter_utils.py
37
+
38
+ Mol* (https://github.com/molstar/molstar)
39
+ Copyright (c) 2017 - now, Mol* contributors
40
+ Used in: artios/contacts/ (interaction detection algorithms)
41
+
42
+ ProteinMPNN (https://github.com/dauparas/ProteinMPNN)
43
+ Copyright (c) 2022 Justas Dauparas
44
+ Used in: artios/model/modules/ (message-passing layers and geometry helpers)
45
+
46
+ Muon (https://github.com/KellerJordan/Muon)
47
+ Copyright (c) 2024 Keller Jordan
48
+ Used in: artios/utils/muon.py
49
+
50
+ Pocketeer (https://github.com/cch1999/pocketeer)
51
+ Copyright (c) 2025 Charlie Harris
52
+ Used in: artios/data/pocket/legacy.py
53
+
54
+ The above MIT-licensed components are provided under the following terms:
55
+
56
+ Permission is hereby granted, free of charge, to any person obtaining a
57
+ copy of this software and associated documentation files (the
58
+ "Software"), to deal in the Software without restriction, including
59
+ without limitation the rights to use, copy, modify, merge, publish,
60
+ distribute, sublicense, and/or sell copies of the Software, and to permit
61
+ persons to whom the Software is furnished to do so, subject to the
62
+ following conditions:
63
+
64
+ The above copyright notice and this permission notice shall be included
65
+ in all copies or substantial portions of the Software.
66
+
67
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
68
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
69
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
70
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
71
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
72
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
73
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
74
+
75
+ ================================================================================
76
+ BSD-3-Clause licensed code
77
+ ================================================================================
78
+
79
+ Biotite (https://github.com/biotite-dev/biotite)
80
+ Copyright 2017, The Biotite contributors
81
+ All rights reserved.
82
+ Used in: artios/common/constants.py (standard bond length table),
83
+ artios/data/chem/ccd.py
84
+
85
+ AtomWorks (https://github.com/RosettaCommons/atomworks)
86
+ Copyright (c) 2025, Institute for Protein Design, University of Washington
87
+ Used in: artios/data/chem/rdkit.py (RDKit-to-AtomArray conversion)
88
+
89
+ The above BSD-3-Clause licensed components are provided under the
90
+ following terms:
91
+
92
+ Redistribution and use in source and binary forms, with or without
93
+ modification, are permitted provided that the following conditions are
94
+ met:
95
+
96
+ 1. Redistributions of source code must retain the above copyright notice,
97
+ this list of conditions and the following disclaimer.
98
+
99
+ 2. Redistributions in binary form must reproduce the above copyright
100
+ notice, this list of conditions and the following disclaimer in the
101
+ documentation and/or other materials provided with the distribution.
102
+
103
+ 3. Neither the name of the copyright holder nor the names of its
104
+ contributors may be used to endorse or promote products derived from
105
+ this software without specific prior written permission.
106
+
107
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
108
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
109
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
110
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
111
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
112
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
113
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
114
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
115
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
116
+ NEGLIGENCE OR OTHERWISE), ARISING IN ANY WAY OUT OF THE USE OF THIS
117
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
artios-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,254 @@
1
+ Metadata-Version: 2.4
2
+ Name: artios
3
+ Version: 0.1.0
4
+ Summary: Generative models for ligand-binding protein design: all-atom motif scaffolding and sequence design.
5
+ Author-email: Arda Goreci <arda@ligo.bio>, "Oliver J. Cort" <oli@ligo.bio>
6
+ Maintainer-email: Arda Goreci <arda@ligo.bio>, "Oliver J. Cort" <oli@ligo.bio>
7
+ License-Expression: Apache-2.0
8
+ Project-URL: Homepage, https://github.com/Ligo-Biosciences/artios
9
+ Project-URL: Paper, https://papers.ligo.bio/artios
10
+ Project-URL: Repository, https://github.com/Ligo-Biosciences/artios
11
+ Project-URL: Bug Tracker, https://github.com/Ligo-Biosciences/artios/issues
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
21
+ Requires-Python: <3.13,>=3.11
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ License-File: NOTICE
25
+ Requires-Dist: torch>=2.3.1
26
+ Requires-Dist: numpy<3.0.0,>=1.26.3
27
+ Requires-Dist: scipy
28
+ Requires-Dist: pandas
29
+ Requires-Dist: biotite<1.7,>=1.5
30
+ Requires-Dist: rdkit
31
+ Requires-Dist: networkx
32
+ Requires-Dist: einops>=0.8.1
33
+ Requires-Dist: jaxtyping
34
+ Requires-Dist: beartype>=0.22.6
35
+ Requires-Dist: typing_extensions
36
+ Requires-Dist: pydantic<3,>=2.12.3
37
+ Requires-Dist: ml_collections
38
+ Requires-Dist: PyYaml
39
+ Requires-Dist: tqdm
40
+ Requires-Dist: huggingface_hub>=0.24
41
+ Requires-Dist: scikit-learn<1.8,>=1.7.2
42
+ Provides-Extra: train
43
+ Requires-Dist: wandb>=0.25.0; extra == "train"
44
+ Requires-Dist: pandera>=0.29.0; extra == "train"
45
+ Requires-Dist: rootutils; extra == "train"
46
+ Provides-Extra: data
47
+ Requires-Dist: pocketeer==0.0.4; extra == "data"
48
+ Requires-Dist: ray>=2.48.0; extra == "data"
49
+ Requires-Dist: polars>=1.35.2; extra == "data"
50
+ Requires-Dist: psutil; extra == "data"
51
+ Requires-Dist: gemmi; extra == "data"
52
+ Requires-Dist: pdbeccdutils; extra == "data"
53
+ Provides-Extra: electrostatics
54
+ Requires-Dist: pdb2pqr; extra == "electrostatics"
55
+ Requires-Dist: GridDataFormats; extra == "electrostatics"
56
+ Dynamic: license-file
57
+
58
+ # Artios
59
+
60
+ Artios is a family of generative models from [Ligo Biosciences](https://ligo.bio) for designing ligand-binding proteins. Give it a catalytic or binding motif (a few residues plus one or more ligands) and it designs a protein around them. It is described in [*Artios: Designing Functional De Novo Enzymes with All-Atom Diffusion and Steerable Potts Models*](https://papers.ligo.bio/artios) (Cort, Egerton-Warburton, Goreci and Harris, 2026).
61
+
62
+ ![The Artios enzyme design system: theozyme, ArtiosBackbone, ArtiosPotts, filtering, DNA synthesis, lysate screen and kinetics](https://raw.githubusercontent.com/Ligo-Biosciences/artios/v0.1.0/docs/figures/overview.png)
63
+
64
+ The design pipeline has two models:
65
+
66
+ | Model | Task | Input | Output |
67
+ |---|---|---|---|
68
+ | **ArtiosBackbone** | All-atom motif scaffolding (EDM diffusion) | Motif CIF + ligand definitions (JSON) | Backbone structures (NPZ / CIF) |
69
+ | **ArtiosPotts** | Sequence design (Potts model on an MPNN encoder) | Backbone NPZ from ArtiosBackbone, or any PDB/mmCIF structure | Designed sequences (FASTA) and energies |
70
+
71
+ Artios is built on [Protenix](https://github.com/bytedance/Protenix), ByteDance's open reproduction of AlphaFold 3 (see [NOTICE](https://github.com/Ligo-Biosciences/artios/blob/main/NOTICE)).
72
+
73
+ ## Results
74
+
75
+ - **Motif scaffolding.** On the Atomic Motif Enzyme benchmark, with the added requirement that the co-folded ligand stays in the designed pocket, 6.1% of Artios designs pass, against 1.2% for Proteina-Complexa and 0.9% for RFdiffusion3 (both with LigandMPNN). Artios solves 34 of 38 active sites.
76
+ - **Sequence design.** On 114 held-out natural protein–ligand complexes, ArtiosPotts sequences refold and keep their ligands for 23 complexes, against 7 for LigandMPNN. Expressed in a cell-free system, they give a 1.6-fold higher median signal.
77
+ - **In the lab.** Artios produced active luciferases (7 of 85 designs tested) and cysteine esterases (17 of 88). The purified esterase ArCut1 has *k*<sub>cat</sub>/*K*<sub>M</sub> = 1.8 × 10<sup>3</sup> M<sup>−1</sup> s<sup>−1</sup>.
78
+
79
+ ![AME benchmark: designs passing each filter, pass rate by length and structural diversity](https://raw.githubusercontent.com/Ligo-Biosciences/artios/v0.1.0/docs/figures/ame_benchmark.png)
80
+
81
+ ![Held-out complexes: backbones passing the Protenix and AlphaFold2 filter cascades, ArtiosPotts against LigandMPNN](https://raw.githubusercontent.com/Ligo-Biosciences/artios/v0.1.0/docs/figures/seqval.png)
82
+
83
+ ## Installation
84
+
85
+ Artios requires Python 3.11 or 3.12. Install it from PyPI:
86
+
87
+ ```bash
88
+ pip install artios # or `uv tool install artios` for just the command
89
+ ```
90
+
91
+ To develop, train or run the examples, install from source with [uv](https://docs.astral.sh/uv/) and run the command as `uv run artios`:
92
+
93
+ ```bash
94
+ git clone https://github.com/Ligo-Biosciences/artios.git
95
+ cd artios
96
+ uv sync # core dependencies (inference)
97
+ uv sync --all-extras # everything, including training and data preparation
98
+ ```
99
+
100
+ Optional extras install with `pip install "artios[train,data]"` or `uv sync --extra train`:
101
+
102
+ | Extra | Needed for |
103
+ |---|---|
104
+ | `train` | Training (`artios/runner/train_*.py`): wandb, pandera |
105
+ | `data` | Training-data preparation (`scripts/data/`) and pocket annotation |
106
+ | `electrostatics` | Electrostatics analysis (`artios/electrostatics`) |
107
+
108
+ ### Chemical Component Dictionary (CCD)
109
+
110
+ Artios needs the wwPDB Chemical Component Dictionary and a matching pre-computed RDKit cache. On first use, it downloads a pinned snapshot from [Ligo-Biosciences/Artios-CCD](https://huggingface.co/datasets/Ligo-Biosciences/Artios-CCD) (about 550 MB), verifies the checksums and caches it for later (offline) runs.
111
+
112
+ To use local files instead, put both files in one directory and point `ARTIOS_CCD_DIR` at it, or place them in `ccd_files/` at the repository root:
113
+
114
+ ```
115
+ ccd_files/
116
+ ├── components.cif
117
+ └── components.cif.rdkit_mol.pkl
118
+ ```
119
+
120
+ Both files must come from the same snapshot. `scripts/data/gen_ccd_cache.py` builds the RDKit cache from `components.cif`.
121
+
122
+ ## Usage
123
+
124
+ Model weights and CCD files are downloaded from the Hugging Face Hub on first use (about 1.1 GB in total). While the repositories are private, log in first with `hf auth login` (or set `HF_TOKEN`). A CUDA GPU is used automatically when available. CPUs work too, and the timings below are for a laptop CPU. Apple MPS is not supported.
125
+
126
+ Everything runs through the `artios` command (`artios --help`):
127
+
128
+ | Command | Does |
129
+ |---|---|
130
+ | `artios scaffold` | Generate backbones around a motif (ArtiosBackbone) |
131
+ | `artios design` | Design sequences for backbones or any PDB/mmCIF structure (ArtiosPotts) |
132
+ | `artios score` | Score sequences on a structure: Potts energy and pseudo-log-likelihood |
133
+ | `artios params` | Export the Potts fields h, couplings J and neighbour graph of a structure |
134
+
135
+ Pass `--checkpoint` to use your own weights instead of the released ones, and `-v` for detailed logs. Working with a coding agent? [AGENTS.md](https://github.com/Ligo-Biosciences/artios/blob/main/AGENTS.md) is a short guide to the command for agents.
136
+
137
+ ### Backbone generation
138
+
139
+ `examples/backbone/` in this repository scaffolds the catalytic motif of orotidine 5′-monophosphate decarboxylase (six residues from PDB [1DBT](https://www.rcsb.org/structure/1DBT)) around its UMP ligand into a 128-residue design:
140
+
141
+ ```bash
142
+ artios scaffold examples/backbone/input.json -n 5 -o output/backbone
143
+ ```
144
+
145
+ This samples five backbones into `output/backbone/odcase_backbone.npz` (about 1.5 minutes). `--format cif` writes one CIF file per sample instead. The design chain (`0`) is poly-glycine; motif residues and ligands keep their own chains.
146
+
147
+ ### Sequence design
148
+
149
+ Design four sequences for each generated backbone:
150
+
151
+ ```bash
152
+ artios design output/backbone/odcase_backbone.npz -n 4 -o output/designs
153
+ ```
154
+
155
+ This takes about 3 minutes per backbone and writes `output/designs/designs.fasta` with the designed chain of each sequence, and `output/designs/designs.jsonl` with every chain, the Potts energy (lower is better) and per-residue energies. Motif residues and ligands are context and keep their identities. `examples/sequence_design/backbone.npz` holds ten more backbones, 160 residues each, generated around the luciferase motif from the paper (an arginine and a histidine placed around diphenylterazine).
156
+
157
+ `artios design` also takes PDB and mmCIF files (or directories of them), so it works on any protein or complex. Residues are addressed by author chain and number, as in PyMOL:
158
+
159
+ ```bash
160
+ # Redesign chain B of a complex, keeping residues 10-14 and 42 of chain B
161
+ artios design complex.pdb --design-chains B --fixed "B10-14 B42" -n 8 -o output/binder
162
+
163
+ # Redesign only a loop
164
+ artios design protein.cif --redesign "A30-41" -o output/loop
165
+
166
+ # Score designs (or, without a FASTA, the structure's own sequence)
167
+ artios score complex.pdb output/binder/designs.fasta -o output/scores
168
+ ```
169
+
170
+ Selections are `A` (whole chain), `A42`, `A52B` (insertion code), `A10-20` (inclusive), or `1:42` for chain IDs that are not letters. Sampling options: `--temperature`, `--allow-cys`, `--allow-met` (both excluded by default), and `--set KEY=VALUE` for any `artios_mpnn.potts.sampling` option, e.g. `--set cfg_scale=2.0` or `--set energy_bias.W=-0.5`. Rerunning into the same output directory skips finished targets.
171
+
172
+ The same functionality is available from Python:
173
+
174
+ ```python
175
+ from artios.potts import PottsDesigner, load_target, parse_selection
176
+
177
+ designer = PottsDesigner()
178
+ target = load_target("complex.pdb")
179
+ designs = designer.design(target, design_chains=["B"], fixed=parse_selection("B10-14"), num_sequences=8)
180
+ scores = designer.score(target, [d.sequences for d in designs])
181
+ params, _ = designer.potts_params(target) # h, J and neighbour graph as tensors
182
+ ```
183
+
184
+ ### Input format
185
+
186
+ Backbone generation takes a JSON file describing the design length and the motif:
187
+
188
+ ```json
189
+ {
190
+ "name": "cutinase",
191
+ "task": "backbone",
192
+ "spec": {
193
+ "design": [{"length": 200}],
194
+ "motif": {
195
+ "cif_file": "evaluation/inputs/motifs/cutinase/cutinase_motif.cif",
196
+ "ligands": [
197
+ {
198
+ "cif_res_name": "UNK",
199
+ "chain_id": "1",
200
+ "full_ligand": {
201
+ "type": "smiles",
202
+ "smiles": "CCCCCCC[C:1](=[O:2])[O:3]C1=CC2=C([C:4]=C1)C(=[C:5]C(=O)O2)C",
203
+ "atom_map": {"C1": 1, "O1": 2, "O": 3, "C2": 4, "C3": 5}
204
+ }
205
+ }
206
+ ]
207
+ }
208
+ }
209
+ }
210
+ ```
211
+
212
+ Ligands can be given as CCD codes (`{"type": "ccd", "codes": ["ZN"]}`) or as atom-mapped SMILES, as above. See:
213
+
214
+ - [Motif input format](https://github.com/Ligo-Biosciences/artios/blob/main/docs/motif_input_format.md): motif CIF rules, CCD and SMILES ligands
215
+ - [Sequence design input format](https://github.com/Ligo-Biosciences/artios/blob/main/docs/sequence_design_input_format.md): JSON input of the older `python -m artios.runner.inference` entry point, still used by `evaluation/`
216
+ - [Motif stitching](https://github.com/Ligo-Biosciences/artios/blob/main/docs/motif_stitching.md): how motif residues flow from backbone generation to the final design
217
+
218
+ `evaluation/inputs/` holds the motifs (`motifs/`) and backbone inputs (`artios/`) behind the paper: the AME benchmark and the luciferase, esterase and cutinase campaigns. Their design `length` is left empty for the benchmark runner to fill; set it before running one with `artios scaffold`.
219
+
220
+ ## Training
221
+
222
+ Training code is included as a reference: `artios/runner/train_backbone.py` and `artios/runner/train_potts.py`, launched through `scripts/training/`. See [preparing training data](https://github.com/Ligo-Biosciences/artios/blob/main/docs/prepare_training_data.md) and [data sampling weights](https://github.com/Ligo-Biosciences/artios/blob/main/docs/data_sampling_weights.md).
223
+
224
+ > **TODO:** training datasets on Hugging Face.
225
+
226
+ ## Repository layout
227
+
228
+ ```
229
+ artios/
230
+ ├── model/ model architectures (ArtiosBackbone, ArtiosPotts, ...)
231
+ ├── data/ input parsing, featurization and data pipeline
232
+ ├── configs/ default configuration for training and inference
233
+ ├── runner/ inference and training entry points
234
+ └── ... metrics, contacts, electrostatics, utilities
235
+ scripts/ data preparation and training launch scripts
236
+ docs/ input formats and method notes
237
+ tests/ test suite (run with `uv run pytest -m "not slow"`)
238
+ ```
239
+
240
+ ## License
241
+
242
+ Artios is released under the [Apache License 2.0](https://github.com/Ligo-Biosciences/artios/blob/main/LICENSE). It is a derivative of Protenix and includes code adapted from other open-source projects; see [NOTICE](https://github.com/Ligo-Biosciences/artios/blob/main/NOTICE) for attributions.
243
+
244
+ ## Citation
245
+
246
+ ```bibtex
247
+ @misc{artios2026,
248
+ title = {Artios: Designing Functional De Novo Enzymes with All-Atom Diffusion and Steerable Potts Models},
249
+ author = {Cort, Oliver and Egerton-Warburton, Emily and Goreci, Arda and Harris, Edward},
250
+ year = {2026},
251
+ note = {Ligo Biosciences},
252
+ url = {https://papers.ligo.bio/artios}
253
+ }
254
+ ```