fucrimodo 1.0.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 (79) hide show
  1. fucrimodo-1.0.0/LICENSE +202 -0
  2. fucrimodo-1.0.0/PKG-INFO +216 -0
  3. fucrimodo-1.0.0/README.md +177 -0
  4. fucrimodo-1.0.0/pyproject.toml +71 -0
  5. fucrimodo-1.0.0/setup.cfg +4 -0
  6. fucrimodo-1.0.0/src/fucrimodo/__init__.py +1 -0
  7. fucrimodo-1.0.0/src/fucrimodo/__main__.py +1 -0
  8. fucrimodo-1.0.0/src/fucrimodo/analysis/__init__.py +2 -0
  9. fucrimodo-1.0.0/src/fucrimodo/analysis/multi_run_analysis.py +186 -0
  10. fucrimodo-1.0.0/src/fucrimodo/analysis/run_analysis.py +394 -0
  11. fucrimodo-1.0.0/src/fucrimodo/analysis/stage_analysis.py +261 -0
  12. fucrimodo-1.0.0/src/fucrimodo/analysis/utils.py +106 -0
  13. fucrimodo-1.0.0/src/fucrimodo/cli/__init__.py +0 -0
  14. fucrimodo-1.0.0/src/fucrimodo/cli/analyse.py +122 -0
  15. fucrimodo-1.0.0/src/fucrimodo/cli/init.py +104 -0
  16. fucrimodo-1.0.0/src/fucrimodo/cli/main.py +66 -0
  17. fucrimodo-1.0.0/src/fucrimodo/cli/run.py +109 -0
  18. fucrimodo-1.0.0/src/fucrimodo/cli/utils.py +76 -0
  19. fucrimodo-1.0.0/src/fucrimodo/core/__init__.py +9 -0
  20. fucrimodo-1.0.0/src/fucrimodo/core/abstracts/__init__.py +13 -0
  21. fucrimodo-1.0.0/src/fucrimodo/core/abstracts/break_condition.py +30 -0
  22. fucrimodo-1.0.0/src/fucrimodo/core/abstracts/fitness_function.py +101 -0
  23. fucrimodo-1.0.0/src/fucrimodo/core/abstracts/population_generator.py +32 -0
  24. fucrimodo-1.0.0/src/fucrimodo/core/abstracts/population_selection.py +41 -0
  25. fucrimodo-1.0.0/src/fucrimodo/core/abstracts/stage.py +179 -0
  26. fucrimodo-1.0.0/src/fucrimodo/core/individual.py +252 -0
  27. fucrimodo-1.0.0/src/fucrimodo/core/multi_stage_search.py +590 -0
  28. fucrimodo-1.0.0/src/fucrimodo/core/population.py +64 -0
  29. fucrimodo-1.0.0/src/fucrimodo/core/utils/__init__.py +11 -0
  30. fucrimodo-1.0.0/src/fucrimodo/core/utils/cellbounds_custom.py +56 -0
  31. fucrimodo-1.0.0/src/fucrimodo/core/utils/closest_distances_class.py +65 -0
  32. fucrimodo-1.0.0/src/fucrimodo/core/utils/fitness_utils.py +103 -0
  33. fucrimodo-1.0.0/src/fucrimodo/core/utils/legacy_closest_distances_class.py +162 -0
  34. fucrimodo-1.0.0/src/fucrimodo/core/utils/log_utils.py +93 -0
  35. fucrimodo-1.0.0/src/fucrimodo/core/utils/reproducability.py +32 -0
  36. fucrimodo-1.0.0/src/fucrimodo/customs/__init__.py +0 -0
  37. fucrimodo-1.0.0/src/fucrimodo/customs/break_conditions.py +161 -0
  38. fucrimodo-1.0.0/src/fucrimodo/customs/fitness_functions.py +258 -0
  39. fucrimodo-1.0.0/src/fucrimodo/customs/ga_stage/__init__.py +5 -0
  40. fucrimodo-1.0.0/src/fucrimodo/customs/ga_stage/analysis.py +54 -0
  41. fucrimodo-1.0.0/src/fucrimodo/customs/ga_stage/crossovers.py +645 -0
  42. fucrimodo-1.0.0/src/fucrimodo/customs/ga_stage/ga_stage.py +420 -0
  43. fucrimodo-1.0.0/src/fucrimodo/customs/ga_stage/genetic_algorithm.py +687 -0
  44. fucrimodo-1.0.0/src/fucrimodo/customs/ga_stage/mutations/__init__.py +17 -0
  45. fucrimodo-1.0.0/src/fucrimodo/customs/ga_stage/mutations/abstract.py +266 -0
  46. fucrimodo-1.0.0/src/fucrimodo/customs/ga_stage/mutations/cell_mutations.py +326 -0
  47. fucrimodo-1.0.0/src/fucrimodo/customs/ga_stage/mutations/element_mutations.py +155 -0
  48. fucrimodo-1.0.0/src/fucrimodo/customs/ga_stage/mutations/energy_optimisation_mutations.py +42 -0
  49. fucrimodo-1.0.0/src/fucrimodo/customs/ga_stage/mutations/multi_mutation.py +116 -0
  50. fucrimodo-1.0.0/src/fucrimodo/customs/ga_stage/mutations/position_mutations.py +153 -0
  51. fucrimodo-1.0.0/src/fucrimodo/customs/ga_stage/mutations/symmetry_mutations.py +105 -0
  52. fucrimodo-1.0.0/src/fucrimodo/customs/global_soap_target.py +271 -0
  53. fucrimodo-1.0.0/src/fucrimodo/customs/population_generators.py +335 -0
  54. fucrimodo-1.0.0/src/fucrimodo/customs/population_selections.py +232 -0
  55. fucrimodo-1.0.0/src/fucrimodo/customs/utils.py +224 -0
  56. fucrimodo-1.0.0/src/fucrimodo/lab_template/README.md +89 -0
  57. fucrimodo-1.0.0/src/fucrimodo/lab_template/configs/analyse/multi_run/default.py +28 -0
  58. fucrimodo-1.0.0/src/fucrimodo/lab_template/configs/analyse/multi_run/matching_per_n_atoms.py +254 -0
  59. fucrimodo-1.0.0/src/fucrimodo/lab_template/configs/analyse/run/default.py +66 -0
  60. fucrimodo-1.0.0/src/fucrimodo/lab_template/configs/analyse/stage/default.py +72 -0
  61. fucrimodo-1.0.0/src/fucrimodo/lab_template/configs/run/default.py +771 -0
  62. fucrimodo-1.0.0/src/fucrimodo/lab_template/configs/run/test_run_config.py +778 -0
  63. fucrimodo-1.0.0/src/fucrimodo/lab_template/configs/utils/change_n_atoms.py +53 -0
  64. fucrimodo-1.0.0/src/fucrimodo/lab_template/configs/utils/create_target_file_data.py +49 -0
  65. fucrimodo-1.0.0/src/fucrimodo/lab_template/data/raw/example-target.xyz +4 -0
  66. fucrimodo-1.0.0/src/fucrimodo/lab_template/data/raw/simple-target.xyz +3 -0
  67. fucrimodo-1.0.0/src/fucrimodo/lab_template/data/raw/test-target.xyz +3 -0
  68. fucrimodo-1.0.0/src/fucrimodo/lab_template/scripts/perform_test_run.sh +17 -0
  69. fucrimodo-1.0.0/src/fucrimodo/lab_template/scripts/run_slurm_array.sh +191 -0
  70. fucrimodo-1.0.0/src/fucrimodo/utils/__init__.py +0 -0
  71. fucrimodo-1.0.0/src/fucrimodo/utils/ase_tools.py +98 -0
  72. fucrimodo-1.0.0/src/fucrimodo/utils/import_helper.py +52 -0
  73. fucrimodo-1.0.0/src/fucrimodo/utils/target_file_parser.py +124 -0
  74. fucrimodo-1.0.0/src/fucrimodo.egg-info/PKG-INFO +216 -0
  75. fucrimodo-1.0.0/src/fucrimodo.egg-info/SOURCES.txt +77 -0
  76. fucrimodo-1.0.0/src/fucrimodo.egg-info/dependency_links.txt +1 -0
  77. fucrimodo-1.0.0/src/fucrimodo.egg-info/entry_points.txt +2 -0
  78. fucrimodo-1.0.0/src/fucrimodo.egg-info/requires.txt +24 -0
  79. fucrimodo-1.0.0/src/fucrimodo.egg-info/top_level.txt +1 -0
@@ -0,0 +1,202 @@
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 2026 Louis A. Böhm
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.
@@ -0,0 +1,216 @@
1
+ Metadata-Version: 2.4
2
+ Name: fucrimodo
3
+ Version: 1.0.0
4
+ Summary: Find Unknown Crystals by Inversion of ML Optimized Descriptors
5
+ Author-email: Louis Böhm <louis.boehm@gmx.de>, Martin Kuban <kuban@physik.hu-berlin.de>
6
+ Maintainer-email: Louis Böhm <louis.boehm@gmx.de>
7
+ Project-URL: Repository, https://github.com/OHANAN1/fucrimodo
8
+ Project-URL: Documentation, https://fucrimodo.readthedocs.io
9
+ Keywords: tools,fucrimodo,Material Science,Descriptor,SOAP
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Operating System :: POSIX :: Linux
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: Topic :: Scientific/Engineering :: Physics
14
+ Requires-Python: >=3.12
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: numpy>=1.26.4
18
+ Requires-Dist: pandas>=2.2.3
19
+ Requires-Dist: ase>=3.25.0
20
+ Requires-Dist: ase-ga>=1.0.3
21
+ Requires-Dist: matid>=2.1.5
22
+ Requires-Dist: matplotlib>=3.9.2
23
+ Requires-Dist: deap>=1.4.1
24
+ Requires-Dist: pyxtal>=1.0.6
25
+ Requires-Dist: dscribe>=2.1.1
26
+ Requires-Dist: click>=8.4.2
27
+ Provides-Extra: docs
28
+ Requires-Dist: sphinx==9.1.0; extra == "docs"
29
+ Requires-Dist: sphinx_rtd_theme==3.1.0; extra == "docs"
30
+ Requires-Dist: nbsphinx==0.9.8; extra == "docs"
31
+ Requires-Dist: ipykernel>=7.3.0; extra == "docs"
32
+ Provides-Extra: test
33
+ Requires-Dist: pytest==9.1.1; extra == "test"
34
+ Provides-Extra: dev
35
+ Requires-Dist: isort>=8.0.1; extra == "dev"
36
+ Requires-Dist: black>=26.5.1; extra == "dev"
37
+ Requires-Dist: pyright>=1.1.411; extra == "dev"
38
+ Dynamic: license-file
39
+
40
+ <div align="center">
41
+
42
+ # FUCrIMODo
43
+
44
+ <img src="./res/Fujimoto_legal.png" width="200" height="200" alt="Fujimoto from the movie Ponyo">
45
+
46
+ **F**ind **U**nknown **C**rystals by **I**nversion of **M**L **O**ptimized **D**escriptors
47
+
48
+ ---
49
+
50
+ </div>
51
+
52
+ **FUCrIMODo** is a scientific framework for recovering atomic structures from
53
+ machine-learning descriptors. It is built around a novel multi-stage Genetic
54
+ Algorithm (GA). The method and program are introduced in [this
55
+ publication](https://arxiv.org/abs/2608.23381). FUCrIMODo comes with an
56
+ inversion algorithm for the global SOAP descriptor out of the box, and more
57
+ descriptors are on the way or can be added by you!
58
+
59
+ ## Table of Contents
60
+
61
+ - [Requirements](#requirements)
62
+ - [Install](#install)
63
+ - [Tutorials](#tutorials)
64
+ - [Use fucrimodo CLI](#use-fucrimodo-cli)
65
+ - [Use fucrimodo as a library](#use-fucrimodo-as-a-library)
66
+ - [Documentation](#documentation)
67
+ - [Roadmap](#roadmap)
68
+ - [Contact](#contact)
69
+ - [Authors and acknowledgment](#authors-and-acknowledgment)
70
+ - [License](#license)
71
+ - [Citation](#citation)
72
+
73
+ ## Requirements
74
+
75
+ - Python 3.12 or later
76
+ - [Numpy](https://numpy.org/doc/stable/) (Handle arrays and calculations.)
77
+ - [Pandas](https://pandas.pydata.org/docs/index.html) (Handle data.)
78
+ - [DEAP](https://deap.readthedocs.io/en/master/) (GA framework.)
79
+ - [ASE-GA](https://dtu-energy.github.io/ase-ga/) (Atomic structure GA Framework.)
80
+ - [Atomic Simulation Environment (ASE)](https://docs.ase-lib.org/index.html)(Atomic structure framework.)
81
+ - [PyXtal](https://pyxtal.readthedocs.io/en/latest/index.html) (Atomic structure sampling.)
82
+ - [MatID](https://singroup.github.io/matid/index.html#) (Perform Atomic symmetry operations.)
83
+ - [DScribe](https://singroup.github.io/dscribe/2.1.x/#) (Descriptor calculator.)
84
+ - [Click](https://click.palletsprojects.com/en/stable/) (CLI backend.)
85
+ - [Matplotlib](https://matplotlib.org/) (2D Plotting.)
86
+
87
+ ## Install
88
+
89
+ To install the latest release:
90
+
91
+ ``` bash
92
+ pip install fucrimodo
93
+ ```
94
+
95
+ Or to install the development version:
96
+
97
+ ``` bash
98
+ pip install git+git@github.com:OHANAN1/fucrimodo.git
99
+ ```
100
+
101
+ For more detailed instructions, including setup with `uv` and `conda`, please refer to the [documentation](https://fucrimodo.readthedocs.io/en/latest/index.html).
102
+
103
+ ## Tutorials
104
+
105
+ ### Use fucrimodo CLI
106
+
107
+ To use fucrimodo as a cli you need to set up a `fucrimodo_lab`. The
108
+ `fucrimodo_lab` is a human-readable database that allows you to manage
109
+ configurations, data, analysis and more. To set it up, go to a desired
110
+ directory (ideally outside the library's git structure) and run:
111
+
112
+ ``` bash
113
+ fucrimodo lab init
114
+ ```
115
+
116
+ This creates a directory called fucrimodo_lab and sets up the required directory
117
+ structure. Example raw data is provided so you can perform test runs. Please set
118
+ it up and refer to the README.md file inside the lab for more info.
119
+
120
+ ### Use fucrimodo as a library
121
+
122
+ To learn how to configure the CLI tool or use fucrimodo as a library, you can work through [this Jupyter notebook tutorial](tutorials/fucrimodo_as_library.ipynb). Also refer to the documentation for more details.
123
+
124
+ ## Documentation
125
+
126
+ The documentation is hosted at [read the docs](https://fucrimodo.readthedocs.io/en/latest/index.html).
127
+ It includes additional tutorials and documents the API of fucrimodo.
128
+
129
+ To build it yourself, first install the dependencies:
130
+
131
+ ``` bash
132
+ pip install ".[docs]"
133
+ ```
134
+
135
+ Now an HTML version of the docs can be generated:
136
+
137
+ ``` bash
138
+ cd docs/
139
+ make html
140
+ ```
141
+
142
+ The docs will be generated at _build/html/ and can then be opened with the
143
+ browser of your choice. E.g.:
144
+
145
+ ``` bash
146
+ qutebrowser _build/html/index.html
147
+ ```
148
+
149
+
150
+ ## Roadmap
151
+
152
+ - [ ] Implement and test additional descriptors types
153
+ - [ ] Implement new Stage types
154
+ - [ ] `ParallelGAStage` (Run multiple GA stages parallel.)
155
+ - [ ] `SwarmSearchStage` (Use a swarm search for the ideal descriptor.)
156
+ - [ ] `GradientDescentStage` (Follow the descriptor gradients.)
157
+ - [ ] Improve current default run configuration for bigger structures
158
+ - [ ] Add a proper way to update `fucrimodo_lab` defaults without overwriting
159
+ existing defaults.
160
+
161
+ ## Contact
162
+
163
+ - GitHub issues: https://github.com/OHANAN1/fucrimodo/issues
164
+ - Email: louis.boehm@gmx.de
165
+
166
+ ## Authors and acknowledgment
167
+
168
+ - Main Author: Louis Böhm
169
+ - Co-Author: Martin Kuban
170
+
171
+ ## License
172
+
173
+ The program is licensed with the Apache 2.0 license.
174
+
175
+ ## Citation
176
+
177
+ If you use this program in a scientific publication please add the following citation:
178
+ (This is the preprint)
179
+
180
+ ``` bibtex
181
+ @article{FUCrIMODo_Boehm_2026,
182
+ author = {Boehm, Louis and Kuban, Martin and Draxl, Claudia},
183
+ eprint = {2608.23381v1},
184
+ eprintclass = {cond-mat.mtrl-sci},
185
+ eprinttype = {arxiv},
186
+ title = {FUCrIMODo: structure recovery from atomistic descriptors via multi-stage genetic algorithms},
187
+ month = {8},
188
+ year = {2026},
189
+ url = {http://arxiv.org/abs/2608.23381v1},
190
+ }
191
+ ```
192
+
193
+ ## Little Reward
194
+
195
+ As a reward that you read the complete README.md file you can now look at this
196
+ cute ASCII-Art. :D
197
+ ```txt
198
+ (\{\ . ,@@@@
199
+ { { \ ,~, ^ . ~ __ _ ),\\(\ _,::;
200
+ { \|`) <*> + o------o .)\)\\_(((\),:::::;
201
+ { { /(\ /~ /| /| `\`._,)))))::::::`,
202
+ {/{/; ,\/ o------o | `.__/(((:::::::'
203
+ [[ ' | | | | \ (`:::::::.
204
+ \` \ | o----+-o @**\ `:::::;
205
+ (/ \\ |/mlp |/ / \ `::'
206
+ ejm `) `\ o------o '*~*~*~`
207
+ | //
208
+ \ \\
209
+ `.\\
210
+ \((
211
+ ` ` hjw
212
+ ```
213
+ (`I will be a human, too!`~Ponyo)
214
+
215
+
216
+
@@ -0,0 +1,177 @@
1
+ <div align="center">
2
+
3
+ # FUCrIMODo
4
+
5
+ <img src="./res/Fujimoto_legal.png" width="200" height="200" alt="Fujimoto from the movie Ponyo">
6
+
7
+ **F**ind **U**nknown **C**rystals by **I**nversion of **M**L **O**ptimized **D**escriptors
8
+
9
+ ---
10
+
11
+ </div>
12
+
13
+ **FUCrIMODo** is a scientific framework for recovering atomic structures from
14
+ machine-learning descriptors. It is built around a novel multi-stage Genetic
15
+ Algorithm (GA). The method and program are introduced in [this
16
+ publication](https://arxiv.org/abs/2608.23381). FUCrIMODo comes with an
17
+ inversion algorithm for the global SOAP descriptor out of the box, and more
18
+ descriptors are on the way or can be added by you!
19
+
20
+ ## Table of Contents
21
+
22
+ - [Requirements](#requirements)
23
+ - [Install](#install)
24
+ - [Tutorials](#tutorials)
25
+ - [Use fucrimodo CLI](#use-fucrimodo-cli)
26
+ - [Use fucrimodo as a library](#use-fucrimodo-as-a-library)
27
+ - [Documentation](#documentation)
28
+ - [Roadmap](#roadmap)
29
+ - [Contact](#contact)
30
+ - [Authors and acknowledgment](#authors-and-acknowledgment)
31
+ - [License](#license)
32
+ - [Citation](#citation)
33
+
34
+ ## Requirements
35
+
36
+ - Python 3.12 or later
37
+ - [Numpy](https://numpy.org/doc/stable/) (Handle arrays and calculations.)
38
+ - [Pandas](https://pandas.pydata.org/docs/index.html) (Handle data.)
39
+ - [DEAP](https://deap.readthedocs.io/en/master/) (GA framework.)
40
+ - [ASE-GA](https://dtu-energy.github.io/ase-ga/) (Atomic structure GA Framework.)
41
+ - [Atomic Simulation Environment (ASE)](https://docs.ase-lib.org/index.html)(Atomic structure framework.)
42
+ - [PyXtal](https://pyxtal.readthedocs.io/en/latest/index.html) (Atomic structure sampling.)
43
+ - [MatID](https://singroup.github.io/matid/index.html#) (Perform Atomic symmetry operations.)
44
+ - [DScribe](https://singroup.github.io/dscribe/2.1.x/#) (Descriptor calculator.)
45
+ - [Click](https://click.palletsprojects.com/en/stable/) (CLI backend.)
46
+ - [Matplotlib](https://matplotlib.org/) (2D Plotting.)
47
+
48
+ ## Install
49
+
50
+ To install the latest release:
51
+
52
+ ``` bash
53
+ pip install fucrimodo
54
+ ```
55
+
56
+ Or to install the development version:
57
+
58
+ ``` bash
59
+ pip install git+git@github.com:OHANAN1/fucrimodo.git
60
+ ```
61
+
62
+ For more detailed instructions, including setup with `uv` and `conda`, please refer to the [documentation](https://fucrimodo.readthedocs.io/en/latest/index.html).
63
+
64
+ ## Tutorials
65
+
66
+ ### Use fucrimodo CLI
67
+
68
+ To use fucrimodo as a cli you need to set up a `fucrimodo_lab`. The
69
+ `fucrimodo_lab` is a human-readable database that allows you to manage
70
+ configurations, data, analysis and more. To set it up, go to a desired
71
+ directory (ideally outside the library's git structure) and run:
72
+
73
+ ``` bash
74
+ fucrimodo lab init
75
+ ```
76
+
77
+ This creates a directory called fucrimodo_lab and sets up the required directory
78
+ structure. Example raw data is provided so you can perform test runs. Please set
79
+ it up and refer to the README.md file inside the lab for more info.
80
+
81
+ ### Use fucrimodo as a library
82
+
83
+ To learn how to configure the CLI tool or use fucrimodo as a library, you can work through [this Jupyter notebook tutorial](tutorials/fucrimodo_as_library.ipynb). Also refer to the documentation for more details.
84
+
85
+ ## Documentation
86
+
87
+ The documentation is hosted at [read the docs](https://fucrimodo.readthedocs.io/en/latest/index.html).
88
+ It includes additional tutorials and documents the API of fucrimodo.
89
+
90
+ To build it yourself, first install the dependencies:
91
+
92
+ ``` bash
93
+ pip install ".[docs]"
94
+ ```
95
+
96
+ Now an HTML version of the docs can be generated:
97
+
98
+ ``` bash
99
+ cd docs/
100
+ make html
101
+ ```
102
+
103
+ The docs will be generated at _build/html/ and can then be opened with the
104
+ browser of your choice. E.g.:
105
+
106
+ ``` bash
107
+ qutebrowser _build/html/index.html
108
+ ```
109
+
110
+
111
+ ## Roadmap
112
+
113
+ - [ ] Implement and test additional descriptors types
114
+ - [ ] Implement new Stage types
115
+ - [ ] `ParallelGAStage` (Run multiple GA stages parallel.)
116
+ - [ ] `SwarmSearchStage` (Use a swarm search for the ideal descriptor.)
117
+ - [ ] `GradientDescentStage` (Follow the descriptor gradients.)
118
+ - [ ] Improve current default run configuration for bigger structures
119
+ - [ ] Add a proper way to update `fucrimodo_lab` defaults without overwriting
120
+ existing defaults.
121
+
122
+ ## Contact
123
+
124
+ - GitHub issues: https://github.com/OHANAN1/fucrimodo/issues
125
+ - Email: louis.boehm@gmx.de
126
+
127
+ ## Authors and acknowledgment
128
+
129
+ - Main Author: Louis Böhm
130
+ - Co-Author: Martin Kuban
131
+
132
+ ## License
133
+
134
+ The program is licensed with the Apache 2.0 license.
135
+
136
+ ## Citation
137
+
138
+ If you use this program in a scientific publication please add the following citation:
139
+ (This is the preprint)
140
+
141
+ ``` bibtex
142
+ @article{FUCrIMODo_Boehm_2026,
143
+ author = {Boehm, Louis and Kuban, Martin and Draxl, Claudia},
144
+ eprint = {2608.23381v1},
145
+ eprintclass = {cond-mat.mtrl-sci},
146
+ eprinttype = {arxiv},
147
+ title = {FUCrIMODo: structure recovery from atomistic descriptors via multi-stage genetic algorithms},
148
+ month = {8},
149
+ year = {2026},
150
+ url = {http://arxiv.org/abs/2608.23381v1},
151
+ }
152
+ ```
153
+
154
+ ## Little Reward
155
+
156
+ As a reward that you read the complete README.md file you can now look at this
157
+ cute ASCII-Art. :D
158
+ ```txt
159
+ (\{\ . ,@@@@
160
+ { { \ ,~, ^ . ~ __ _ ),\\(\ _,::;
161
+ { \|`) <*> + o------o .)\)\\_(((\),:::::;
162
+ { { /(\ /~ /| /| `\`._,)))))::::::`,
163
+ {/{/; ,\/ o------o | `.__/(((:::::::'
164
+ [[ ' | | | | \ (`:::::::.
165
+ \` \ | o----+-o @**\ `:::::;
166
+ (/ \\ |/mlp |/ / \ `::'
167
+ ejm `) `\ o------o '*~*~*~`
168
+ | //
169
+ \ \\
170
+ `.\\
171
+ \((
172
+ ` ` hjw
173
+ ```
174
+ (`I will be a human, too!`~Ponyo)
175
+
176
+
177
+
@@ -0,0 +1,71 @@
1
+ [build-system]
2
+ requires = ["setuptools >= 61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "fucrimodo"
7
+ version = "1.0.0"
8
+ description = "Find Unknown Crystals by Inversion of ML Optimized Descriptors"
9
+ authors = [
10
+ {name = "Louis Böhm", email = "louis.boehm@gmx.de"},
11
+ {name = "Martin Kuban", email = "kuban@physik.hu-berlin.de"},
12
+ ]
13
+ maintainers = [
14
+ {name = "Louis Böhm", email = "louis.boehm@gmx.de"}
15
+ ]
16
+ readme = "README.md"
17
+ keywords = ["tools", "fucrimodo", "Material Science", "Descriptor", "SOAP"]
18
+ classifiers = [
19
+ "Programming Language :: Python :: 3",
20
+ "Operating System :: POSIX :: Linux",
21
+ "Intended Audience :: Science/Research",
22
+ "Topic :: Scientific/Engineering :: Physics"
23
+ ]
24
+ dependencies = [
25
+ "numpy>=1.26.4",
26
+ "pandas>=2.2.3",
27
+ "ase>=3.25.0",
28
+ "ase-ga>=1.0.3",
29
+ "matid>=2.1.5",
30
+ "matplotlib>=3.9.2",
31
+ "deap>=1.4.1",
32
+ "pyxtal>=1.0.6",
33
+ "dscribe>=2.1.1",
34
+ "click>=8.4.2",
35
+ ]
36
+ requires-python = ">=3.12"
37
+
38
+ [project.optional-dependencies]
39
+ docs = ['sphinx == 9.1.0', 'sphinx_rtd_theme == 3.1.0', 'nbsphinx == 0.9.8', 'ipykernel>=7.3.0']
40
+ test = ['pytest == 9.1.1']
41
+ dev = ['isort >= 8.0.1', 'black >= 26.5.1', 'pyright >= 1.1.411']
42
+
43
+ [project.urls]
44
+ Repository = "https://github.com/OHANAN1/fucrimodo"
45
+ Documentation = "https://fucrimodo.readthedocs.io"
46
+
47
+ # Adds fucrimodo.__main__() in the executables path
48
+ [project.scripts]
49
+ fucrimodo = "fucrimodo.__main__:main"
50
+
51
+ [tool.setuptools.packages.find]
52
+ where = ["src"]
53
+
54
+ [tool.setuptools.package-data]
55
+ fucrimodo = [
56
+ "lab_template/*.md",
57
+ "lab_template/configs/*/*.py",
58
+ "lab_template/configs/*/*/*.py",
59
+ "lab_template/data/raw/*.xyz",
60
+ "lab_template/scripts/*.sh"
61
+ ]
62
+
63
+
64
+ [tool.pytest.ini_options]
65
+ testpaths = ["tests"]
66
+ markers = [
67
+ "slow: tests that take a long time (> 10s).",
68
+ ]
69
+
70
+ # High verbosity and short tracebacks
71
+ addopts = "-v --tb=short"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1 @@
1
+ __version__ = "1.0.0"
@@ -0,0 +1 @@
1
+ from fucrimodo.cli.main import main
@@ -0,0 +1,2 @@
1
+ from .run_analysis import RunData
2
+ from .stage_analysis import StageData