descripytor 0.3.1__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.
- descripytor-0.3.1/Getting_started_with_examples/descriptor_extraction_toolkit/config_example.json +221 -0
- descripytor-0.3.1/Getting_started_with_examples/input_example.json +13 -0
- descripytor-0.3.1/LICENSE +21 -0
- descripytor-0.3.1/M1_pre_calculations/__init__.py +0 -0
- descripytor-0.3.1/M1_pre_calculations/esp_grid_driver.py +106 -0
- descripytor-0.3.1/M1_pre_calculations/main.py +64 -0
- descripytor-0.3.1/M1_pre_calculations/outwards_senders.py +98 -0
- descripytor-0.3.1/M1_pre_calculations/pipeline/__init__.py +13 -0
- descripytor-0.3.1/M1_pre_calculations/pipeline/adopt.py +146 -0
- descripytor-0.3.1/M1_pre_calculations/pipeline/build.py +358 -0
- descripytor-0.3.1/M1_pre_calculations/pipeline/checks.py +120 -0
- descripytor-0.3.1/M1_pre_calculations/pipeline/cluster.py +286 -0
- descripytor-0.3.1/M1_pre_calculations/pipeline/examples/phosphines.csv +3 -0
- descripytor-0.3.1/M1_pre_calculations/pipeline/examples/protocol_bgu.json +27 -0
- descripytor-0.3.1/M1_pre_calculations/pipeline/protocol.py +108 -0
- descripytor-0.3.1/M1_pre_calculations/pipeline/stages.py +407 -0
- descripytor-0.3.1/M2_data_extractor/__init__.py +65 -0
- descripytor-0.3.1/M2_data_extractor/_folder_dialog.py +40 -0
- descripytor-0.3.1/M2_data_extractor/atom_picker.html +5440 -0
- descripytor-0.3.1/M2_data_extractor/crest_boltzmann_sterimol.py +2119 -0
- descripytor-0.3.1/M2_data_extractor/cube_sterimol.py +592 -0
- descripytor-0.3.1/M2_data_extractor/data_extractor.py +2516 -0
- descripytor-0.3.1/M2_data_extractor/descriptor_extractor.py +711 -0
- descripytor-0.3.1/M2_data_extractor/extractor_utils/__init__.py +0 -0
- descripytor-0.3.1/M2_data_extractor/extractor_utils/bond_angle_length_utils.py +249 -0
- descripytor-0.3.1/M2_data_extractor/extractor_utils/bond_graph.py +55 -0
- descripytor-0.3.1/M2_data_extractor/extractor_utils/dipole_utils.py +246 -0
- descripytor-0.3.1/M2_data_extractor/extractor_utils/esp_grid_utils.py +228 -0
- descripytor-0.3.1/M2_data_extractor/extractor_utils/sterimol_utils.py +1068 -0
- descripytor-0.3.1/M2_data_extractor/extractor_utils/vibrations_utils.py +752 -0
- descripytor-0.3.1/M2_data_extractor/feather_extractor.py +744 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/__init__.py +0 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/build.py +329 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/data.py +76 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/feature_explorer.html +3814 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/009_phos.xyz +54 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/009_phos_CuCl.xyz +56 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/026_box_CuCl.xyz +37 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/026_lig.xyz +37 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/032_lig.xyz +45 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/041_lig.xyz +32 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/045_box_CuCl.xyz +55 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/045_lig.xyz +55 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/046_lig.xyz +57 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/055_phos.xyz +74 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/Cu_BOX_008.xyz +71 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/Cu_BOX_018.xyz +41 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/Cu_BOX_020.xyz +46 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/Cu_BOX_047.xyz +49 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/Cu_PyOx_041.xyz +32 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/FL_lig_1.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/FL_lig_1.xyz +30 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/FL_lig_12.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/FL_lig_12.xyz +29 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/FL_lig_13_str_target.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/FL_lig_13_str_target.xyz +23 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/FL_lig_7.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/FL_lig_7.xyz +30 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/Ni_BOX_072.xyz +29 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/Ni_BOX_078.xyz +37 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/benzoic_acid.xyz +17 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/m-CN.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/m-CN.xyz +36 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/m-CN_BA.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/m-CN_BA.xyz +18 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/m-OMe.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/m-OMe.xyz +39 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/m-OMe_BA.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/m-OMe_BA.xyz +21 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/m-SO2Me_BA.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/m-SO2Me_BA.xyz +23 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/naphthyl_BA.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/naphthyl_BA.xyz +23 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/o-Me_BA.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/o-Me_BA.xyz +20 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-CF3.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-CF3.xyz +38 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-CF3_substrate.xyz +17 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-CO2Me_BA.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-CO2Me_BA.xyz +23 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-COMe_BA.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-COMe_BA.xyz +22 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-Cl_BA.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-Cl_BA.xyz +17 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-F_BA.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-F_BA.xyz +17 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-H_BA.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-H_BA.xyz +17 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-NO2.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-NO2.xyz +37 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-OMe_BA.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-OMe_BA.xyz +21 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-Otf.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-Otf.xyz +42 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-Otf_substrate.xyz +21 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-t-Bu_BA.data.json +1 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/fixtures/p-t-Bu_BA.xyz +29 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/gate.js +23 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/gate_pos.js +29 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/make_pos_refs.py +48 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/make_refs.py +52 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/pos_refs.json +116 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/promol.js +128 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/rdkit/RDKit_minimal.js +2 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/rdkit/RDKit_minimal.wasm +0 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/refs.json +223 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/render_presets.js +62 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/scene.js +1086 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/smarts.js +114 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/smoke.js +201 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/sterimol.js +342 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/template.html +1923 -0
- descripytor-0.3.1/M2_data_extractor/feature_explorer/vbur.js +145 -0
- descripytor-0.3.1/M2_data_extractor/feature_extraction_gui.html +6682 -0
- descripytor-0.3.1/M2_data_extractor/feature_packages.py +652 -0
- descripytor-0.3.1/M2_data_extractor/gaussian_handler.py +239 -0
- descripytor-0.3.1/M2_data_extractor/gui_server.py +2411 -0
- descripytor-0.3.1/M2_data_extractor/ligand_topology.py +223 -0
- descripytor-0.3.1/M2_data_extractor/metal_complex.py +849 -0
- descripytor-0.3.1/M2_data_extractor/morfeus_sterics.py +214 -0
- descripytor-0.3.1/M2_data_extractor/placement_search.py +330 -0
- descripytor-0.3.1/M2_data_extractor/static/3Dmol-min.js +2 -0
- descripytor-0.3.1/M2_data_extractor/sterimol_standalone.py +2704 -0
- descripytor-0.3.1/M2_data_extractor/theta_explorer/__init__.py +1 -0
- descripytor-0.3.1/M2_data_extractor/theta_explorer/build.py +5 -0
- descripytor-0.3.1/M2_data_extractor/theta_explorer/data.py +5 -0
- descripytor-0.3.1/M2_data_extractor/theta_explorer/sterimol.js +2 -0
- descripytor-0.3.1/M2_data_extractor/theta_explorer/theta_explorer.html +3814 -0
- descripytor-0.3.1/M2_data_extractor/xtb_singlepoint.py +236 -0
- descripytor-0.3.1/M2_data_extractor/xyz_io.py +308 -0
- descripytor-0.3.1/M3_modeler/__init__.py +1 -0
- descripytor-0.3.1/M3_modeler/bassa_explorer/__init__.py +1 -0
- descripytor-0.3.1/M3_modeler/bassa_explorer/batch.py +31 -0
- descripytor-0.3.1/M3_modeler/bassa_explorer/build_case.py +382 -0
- descripytor-0.3.1/M3_modeler/bassa_explorer/core_fixed.py +571 -0
- descripytor-0.3.1/M3_modeler/bassa_explorer/engine.py +54 -0
- descripytor-0.3.1/M3_modeler/bassa_explorer/example.js +1 -0
- descripytor-0.3.1/M3_modeler/bassa_explorer/example_cs2.csv +18 -0
- descripytor-0.3.1/M3_modeler/bassa_explorer/example_small.csv +18 -0
- descripytor-0.3.1/M3_modeler/bassa_explorer/index.html +884 -0
- descripytor-0.3.1/M3_modeler/bassa_explorer/influence_check.py +42 -0
- descripytor-0.3.1/M3_modeler/bassa_explorer/read_structures.py +47 -0
- descripytor-0.3.1/M3_modeler/bassa_explorer/server.py +168 -0
- descripytor-0.3.1/M3_modeler/bassa_explorer/settings.py +19 -0
- descripytor-0.3.1/M3_modeler/bassa_explorer/test_page.py +45 -0
- descripytor-0.3.1/M3_modeler/modeling.py +3689 -0
- descripytor-0.3.1/M3_modeler/modeling_utils.py +1204 -0
- descripytor-0.3.1/M3_modeler/nested_cv.py +971 -0
- descripytor-0.3.1/M3_modeler/plot.py +4142 -0
- descripytor-0.3.1/M3_modeler/ridge_search.py +146 -0
- descripytor-0.3.1/M3_modeler/validation.py +61 -0
- descripytor-0.3.1/MANIFEST.in +9 -0
- descripytor-0.3.1/MolAlign/MCS_optimization.py +131 -0
- descripytor-0.3.1/MolAlign/RDKIT_utils.py +655 -0
- descripytor-0.3.1/MolAlign/__init__.py +0 -0
- descripytor-0.3.1/MolAlign/df_funs.py +99 -0
- descripytor-0.3.1/MolAlign/fmcs.py +2654 -0
- descripytor-0.3.1/MolAlign/gaussian_handler.py +193 -0
- descripytor-0.3.1/MolAlign/loss.py +19 -0
- descripytor-0.3.1/MolAlign/renumbering.py +821 -0
- descripytor-0.3.1/MolAlign/rotations.py +14 -0
- descripytor-0.3.1/PKG-INFO +547 -0
- descripytor-0.3.1/README.md +481 -0
- descripytor-0.3.1/descripytor/__init__.py +5 -0
- descripytor-0.3.1/descripytor/__main__.py +4 -0
- descripytor-0.3.1/descripytor/cli.py +633 -0
- descripytor-0.3.1/descripytor/compat.py +63 -0
- descripytor-0.3.1/descripytor/examples/__init__.py +79 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/README.md +5 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/m-CN.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/m-COMe.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/m-NO2.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/m-OMe.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/m-cyclo.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/o-CN.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/outcomes.csv +19 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/p-CF3.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/p-CHO.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/p-CN.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/p-COOMe.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/p-Cl.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/p-MeO.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/p-NO2.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/p-OMe.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/p-Otf.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/presets.json +12 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/pyridine-m-OMe.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/thiophene.feather +0 -0
- descripytor-0.3.1/descripytor/examples/baptiste_products/unsub.feather +0 -0
- descripytor-0.3.1/descripytor/examples/config_example.json +221 -0
- descripytor-0.3.1/descripytor/examples/feather_example/README.md +6 -0
- descripytor-0.3.1/descripytor/examples/feather_example/basic.feather +0 -0
- descripytor-0.3.1/descripytor/examples/feather_example/input_example.json +13 -0
- descripytor-0.3.1/descripytor/examples/feather_example/m_Br.feather +0 -0
- descripytor-0.3.1/descripytor/examples/feather_example/m_Cl.feather +0 -0
- descripytor-0.3.1/descripytor/examples/feather_example/m_nitro.feather +0 -0
- descripytor-0.3.1/descripytor/examples/feather_example/o_Br.feather +0 -0
- descripytor-0.3.1/descripytor/examples/feather_example/o_Cl.feather +0 -0
- descripytor-0.3.1/descripytor/examples/feather_example/o_F.feather +0 -0
- descripytor-0.3.1/descripytor/examples/feather_example/p_Cl.feather +0 -0
- descripytor-0.3.1/descripytor/examples/feather_example/p_F.feather +0 -0
- descripytor-0.3.1/descripytor/examples/feather_example/p_I.feather +0 -0
- descripytor-0.3.1/descripytor/examples/feather_example/presets.json +11 -0
- descripytor-0.3.1/descripytor/examples/input_example.json +13 -0
- descripytor-0.3.1/descripytor.egg-info/PKG-INFO +547 -0
- descripytor-0.3.1/descripytor.egg-info/SOURCES.txt +239 -0
- descripytor-0.3.1/descripytor.egg-info/dependency_links.txt +1 -0
- descripytor-0.3.1/descripytor.egg-info/entry_points.txt +2 -0
- descripytor-0.3.1/descripytor.egg-info/requires.txt +53 -0
- descripytor-0.3.1/descripytor.egg-info/top_level.txt +6 -0
- descripytor-0.3.1/pyproject.toml +111 -0
- descripytor-0.3.1/setup.cfg +4 -0
- descripytor-0.3.1/setup.py +11 -0
- descripytor-0.3.1/tests/test_arm_fixes.py +88 -0
- descripytor-0.3.1/tests/test_bassa_explorer.py +123 -0
- descripytor-0.3.1/tests/test_bond_graph.py +81 -0
- descripytor-0.3.1/tests/test_cli.py +68 -0
- descripytor-0.3.1/tests/test_compat.py +52 -0
- descripytor-0.3.1/tests/test_connectivity.py +53 -0
- descripytor-0.3.1/tests/test_esp_grid.py +143 -0
- descripytor-0.3.1/tests/test_examples.py +57 -0
- descripytor-0.3.1/tests/test_extract_and_model.py +256 -0
- descripytor-0.3.1/tests/test_feature_fixes.py +117 -0
- descripytor-0.3.1/tests/test_gui_server.py +762 -0
- descripytor-0.3.1/tests/test_metal_complex.py +526 -0
- descripytor-0.3.1/tests/test_metal_complex_frame.py +33 -0
- descripytor-0.3.1/tests/test_pipeline.py +376 -0
- descripytor-0.3.1/tests/test_ridge_search.py +52 -0
- descripytor-0.3.1/tests/test_sterimol_b1_normal.py +105 -0
- descripytor-0.3.1/tests/test_sterimol_loc_b1.py +95 -0
- descripytor-0.3.1/tests/test_two_csv.py +41 -0
- descripytor-0.3.1/tests/test_validation.py +51 -0
- descripytor-0.3.1/utils/__init__.py +0 -0
- descripytor-0.3.1/utils/console.py +19 -0
- descripytor-0.3.1/utils/constants.py +64 -0
- descripytor-0.3.1/utils/file_handlers.py +145 -0
- descripytor-0.3.1/utils/help_functions.py +1857 -0
- descripytor-0.3.1/utils/mode_viewer.html +332 -0
- descripytor-0.3.1/utils/mode_viewer.py +582 -0
- descripytor-0.3.1/utils/rdkit_utils.py +158 -0
- descripytor-0.3.1/utils/visualize.py +875 -0
descripytor-0.3.1/Getting_started_with_examples/descriptor_extraction_toolkit/config_example.json
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root_dir": null,
|
|
3
|
+
"feather_dir": "../feather_example",
|
|
4
|
+
"xyz_dir": "path/to/your/xyz",
|
|
5
|
+
"output_csv": "merged_features.csv",
|
|
6
|
+
"atoms_file": null,
|
|
7
|
+
"engines": {
|
|
8
|
+
"descripytor_full": {
|
|
9
|
+
"enabled": true,
|
|
10
|
+
"save_as": true,
|
|
11
|
+
"csv_file_name": "descripytor_full_features",
|
|
12
|
+
"prefix": "",
|
|
13
|
+
"atoms": {
|
|
14
|
+
"ring_vibration": [],
|
|
15
|
+
"stretch_threshold": 1600,
|
|
16
|
+
"stretching_vibration": [],
|
|
17
|
+
"bend_threshold": 3000,
|
|
18
|
+
"bending_vibration": [],
|
|
19
|
+
"center_atoms_dipole": [],
|
|
20
|
+
"dipole": [
|
|
21
|
+
[
|
|
22
|
+
23,
|
|
23
|
+
1,
|
|
24
|
+
3
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
2,
|
|
28
|
+
1,
|
|
29
|
+
23
|
|
30
|
+
]
|
|
31
|
+
],
|
|
32
|
+
"charges": [
|
|
33
|
+
8,
|
|
34
|
+
1
|
|
35
|
+
],
|
|
36
|
+
"charge_diff": [
|
|
37
|
+
[
|
|
38
|
+
8,
|
|
39
|
+
3
|
|
40
|
+
],
|
|
41
|
+
[
|
|
42
|
+
8,
|
|
43
|
+
1
|
|
44
|
+
]
|
|
45
|
+
],
|
|
46
|
+
"sterimol": [
|
|
47
|
+
[
|
|
48
|
+
1,
|
|
49
|
+
23
|
|
50
|
+
],
|
|
51
|
+
[
|
|
52
|
+
1,
|
|
53
|
+
3
|
|
54
|
+
]
|
|
55
|
+
],
|
|
56
|
+
"drop_atoms": [],
|
|
57
|
+
"bond_length": [
|
|
58
|
+
[
|
|
59
|
+
1,
|
|
60
|
+
2
|
|
61
|
+
],
|
|
62
|
+
[
|
|
63
|
+
1,
|
|
64
|
+
23
|
|
65
|
+
]
|
|
66
|
+
],
|
|
67
|
+
"bond_angle": [
|
|
68
|
+
[
|
|
69
|
+
23,
|
|
70
|
+
1,
|
|
71
|
+
3
|
|
72
|
+
],
|
|
73
|
+
[
|
|
74
|
+
23,
|
|
75
|
+
1,
|
|
76
|
+
2,
|
|
77
|
+
3
|
|
78
|
+
]
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"descripytor_steric": {
|
|
83
|
+
"enabled": false,
|
|
84
|
+
"pairs": [
|
|
85
|
+
[
|
|
86
|
+
2,
|
|
87
|
+
19
|
|
88
|
+
],
|
|
89
|
+
[
|
|
90
|
+
2,
|
|
91
|
+
4
|
|
92
|
+
],
|
|
93
|
+
[
|
|
94
|
+
6,
|
|
95
|
+
5
|
|
96
|
+
]
|
|
97
|
+
],
|
|
98
|
+
"prefix": "steric_"
|
|
99
|
+
},
|
|
100
|
+
"xyz_sterimol": {
|
|
101
|
+
"enabled": false,
|
|
102
|
+
"pairs": [
|
|
103
|
+
[
|
|
104
|
+
6,
|
|
105
|
+
7
|
|
106
|
+
],
|
|
107
|
+
[
|
|
108
|
+
6,
|
|
109
|
+
4
|
|
110
|
+
]
|
|
111
|
+
],
|
|
112
|
+
"radii": "CPK",
|
|
113
|
+
"prefix": "xyz_"
|
|
114
|
+
},
|
|
115
|
+
"xyz_geometry": {
|
|
116
|
+
"enabled": false,
|
|
117
|
+
"angles": [
|
|
118
|
+
[
|
|
119
|
+
2,
|
|
120
|
+
1,
|
|
121
|
+
5
|
|
122
|
+
],
|
|
123
|
+
[
|
|
124
|
+
5,
|
|
125
|
+
1,
|
|
126
|
+
8,
|
|
127
|
+
6
|
|
128
|
+
]
|
|
129
|
+
],
|
|
130
|
+
"bond_lengths": [
|
|
131
|
+
[
|
|
132
|
+
1,
|
|
133
|
+
5
|
|
134
|
+
],
|
|
135
|
+
[
|
|
136
|
+
5,
|
|
137
|
+
7
|
|
138
|
+
]
|
|
139
|
+
],
|
|
140
|
+
"prefix": "geom_"
|
|
141
|
+
},
|
|
142
|
+
"xyz_buried_volume": {
|
|
143
|
+
"enabled": false,
|
|
144
|
+
"metal_index": 18,
|
|
145
|
+
"radius": 3.5,
|
|
146
|
+
"prefix": "bv_"
|
|
147
|
+
},
|
|
148
|
+
"morfeus_sterimol": {
|
|
149
|
+
"enabled": false,
|
|
150
|
+
"pairs": [
|
|
151
|
+
[
|
|
152
|
+
6,
|
|
153
|
+
4
|
|
154
|
+
]
|
|
155
|
+
],
|
|
156
|
+
"prefix": ""
|
|
157
|
+
},
|
|
158
|
+
"morfeus_suite": {
|
|
159
|
+
"enabled": false,
|
|
160
|
+
"descriptors": [
|
|
161
|
+
"sterimol",
|
|
162
|
+
"buried_volume",
|
|
163
|
+
"sasa",
|
|
164
|
+
"dispersion"
|
|
165
|
+
],
|
|
166
|
+
"sterimol_pairs": [
|
|
167
|
+
[
|
|
168
|
+
6,
|
|
169
|
+
4
|
|
170
|
+
]
|
|
171
|
+
],
|
|
172
|
+
"metal_index": null,
|
|
173
|
+
"cone_atoms": null,
|
|
174
|
+
"bv_radius": 3.5,
|
|
175
|
+
"pyramid_atoms": null,
|
|
176
|
+
"prefix": ""
|
|
177
|
+
},
|
|
178
|
+
"rdkit": {
|
|
179
|
+
"enabled": false,
|
|
180
|
+
"embed": true,
|
|
181
|
+
"prefix": "rdkit_"
|
|
182
|
+
},
|
|
183
|
+
"rdkit_fp": {
|
|
184
|
+
"enabled": false,
|
|
185
|
+
"n_bits": 256,
|
|
186
|
+
"include_usrcat": true,
|
|
187
|
+
"prefix": ""
|
|
188
|
+
},
|
|
189
|
+
"mordred": {
|
|
190
|
+
"enabled": false,
|
|
191
|
+
"ignore_3d": true,
|
|
192
|
+
"prefix": ""
|
|
193
|
+
},
|
|
194
|
+
"deepchem": {
|
|
195
|
+
"enabled": false,
|
|
196
|
+
"n_bits": 256,
|
|
197
|
+
"prefix": ""
|
|
198
|
+
},
|
|
199
|
+
"rafbl": {
|
|
200
|
+
"enabled": false,
|
|
201
|
+
"mult": 1.2,
|
|
202
|
+
"prefix": "rafbl_"
|
|
203
|
+
},
|
|
204
|
+
"qm": {
|
|
205
|
+
"enabled": false,
|
|
206
|
+
"log_dir": "C:\\path\\to\\your\\gaussian_logs",
|
|
207
|
+
"prefix": "qm_"
|
|
208
|
+
},
|
|
209
|
+
"aqme_qdescp": {
|
|
210
|
+
"enabled": false,
|
|
211
|
+
"level": "full",
|
|
212
|
+
"atoms": [],
|
|
213
|
+
"charge": 0,
|
|
214
|
+
"mult": 1,
|
|
215
|
+
"solvent": null,
|
|
216
|
+
"xtb_opt": true,
|
|
217
|
+
"nprocs": 1,
|
|
218
|
+
"prefix": "aqme_"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Ring Vibration atoms - by order -> Pick one atom from a six member ring\n example: 13": "9",
|
|
3
|
+
"Stretch Threshold": 1400,
|
|
4
|
+
"Stretching Vibration atoms- enter bonded atom pairs: \n example: 1,2 4,5": "",
|
|
5
|
+
"Bend Threshold": 1300,
|
|
6
|
+
"Bending Vibration atoms - enter atom pairs that have a common atom: \n example: 4,7": "5,6",
|
|
7
|
+
"Dipole atoms - indices for coordination transformation: \n example: 4,5,6 - origin, y-axis, new xy plane": "1,2,19 20,19,27",
|
|
8
|
+
"charges values - Insert atoms to show charge: \n example: 1,2,3,4": "3,5,11,12,4,6,20,21,22,7",
|
|
9
|
+
"charge_diff - Insert atoms to show charge difference: \n example: 1,2 3,4": "3,5 11,12",
|
|
10
|
+
"Sterimol atoms - Primary axis along: \n example: 7,8": "1,4 4,1",
|
|
11
|
+
"Bond_length - Atom pairs to calculate difference: \n example: 1,2 4,5": "1,2 4,7",
|
|
12
|
+
"Bond_angle - Atom triplets to calculate difference: \n example: 1,2,3 4,5,6": "8,7,4,1 1,2,19"
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Eden Specktor
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
File without changes
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Command line driver for cylindrical ESP sampling, called by esp_grid_job.sh.
|
|
3
|
+
|
|
4
|
+
Split into a write step and a read step because xtb runs between them. The
|
|
5
|
+
geometry is rotated into the Sterimol frame BEFORE xtb sees it, and the rotated
|
|
6
|
+
geometry is what gets submitted: the potential is a scalar field, so rotating
|
|
7
|
+
the molecule does not change it, and having xtb and the grid share one frame
|
|
8
|
+
removes any chance of the grid being expressed in different axes than the
|
|
9
|
+
structure it is meant to sample.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
import argparse
|
|
13
|
+
import pickle
|
|
14
|
+
|
|
15
|
+
import pandas as pd
|
|
16
|
+
|
|
17
|
+
from M2_data_extractor.extractor_utils.esp_grid_utils import (
|
|
18
|
+
angular_moments,
|
|
19
|
+
build_cylindrical_grid,
|
|
20
|
+
read_xtb_esp,
|
|
21
|
+
write_esp_coord,
|
|
22
|
+
)
|
|
23
|
+
from M2_data_extractor.extractor_utils.sterimol_utils import (
|
|
24
|
+
preform_coordination_transformation,
|
|
25
|
+
)
|
|
26
|
+
from utils.help_functions import get_df_from_file
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def write_step(args) -> None:
|
|
30
|
+
xyz_df = get_df_from_file(args.xyz)
|
|
31
|
+
xyz_df[['x', 'y', 'z']] = xyz_df[['x', 'y', 'z']].astype(float)
|
|
32
|
+
|
|
33
|
+
base_atoms = [int(i) for i in args.base_atoms.split(',')] if args.base_atoms else None
|
|
34
|
+
framed = preform_coordination_transformation(xyz_df, indices=base_atoms,
|
|
35
|
+
origin=args.origin)
|
|
36
|
+
|
|
37
|
+
grid = build_cylindrical_grid(framed, n_phi=args.n_phi, n_axial=args.n_axial,
|
|
38
|
+
probe_offset=args.probe_offset, radii=args.radii)
|
|
39
|
+
n_points = write_esp_coord(grid, args.coord)
|
|
40
|
+
|
|
41
|
+
# The frame the grid lives in is the frame xtb must be given.
|
|
42
|
+
with open(args.framed_xyz, 'w') as handle:
|
|
43
|
+
handle.write(f'{len(framed)}\n')
|
|
44
|
+
handle.write('rotated into the Sterimol frame for ESP sampling\n')
|
|
45
|
+
for _, row in framed.iterrows():
|
|
46
|
+
handle.write(f'{row["atom"]:<3s} {row["x"]:>15.8f} '
|
|
47
|
+
f'{row["y"]:>15.8f} {row["z"]:>15.8f}\n')
|
|
48
|
+
|
|
49
|
+
with open(args.grid, 'wb') as handle:
|
|
50
|
+
pickle.dump(grid, handle)
|
|
51
|
+
|
|
52
|
+
print(f'wrote {n_points} grid points to {args.coord} '
|
|
53
|
+
f'({args.n_axial} levels x {args.n_phi} azimuths)')
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def read_step(args) -> None:
|
|
57
|
+
with open(args.grid, 'rb') as handle:
|
|
58
|
+
grid = pickle.load(handle)
|
|
59
|
+
|
|
60
|
+
# Raises if the point count or the coordinates disagree, which is how a
|
|
61
|
+
# stale esp_coord surfaces as an error instead of as quiet wrong numbers.
|
|
62
|
+
sampled = read_xtb_esp(grid, args.esp)
|
|
63
|
+
sampled.to_csv(args.out, index=False)
|
|
64
|
+
|
|
65
|
+
moments = angular_moments(sampled, beta=args.beta)
|
|
66
|
+
moments.to_csv(args.moments, index=False)
|
|
67
|
+
|
|
68
|
+
# |Z| near zero means the field has no angular structure to align, so it is
|
|
69
|
+
# worth seeing before any descriptor built on the phases is believed.
|
|
70
|
+
summary = moments[['Z_S_1', 'Z_S_2', 'Z_E_1', 'Z_E_2']].abs().mean()
|
|
71
|
+
print(f'sampled {len(sampled)} points; mean |Z|: '
|
|
72
|
+
+ ', '.join(f'{k}={v:.3f}' for k, v in summary.items()))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def main() -> None:
|
|
76
|
+
parser = argparse.ArgumentParser(description=__doc__)
|
|
77
|
+
sub = parser.add_subparsers(dest='step', required=True)
|
|
78
|
+
|
|
79
|
+
write = sub.add_parser('write', help='build the grid and write esp_coord')
|
|
80
|
+
write.add_argument('--xyz', required=True)
|
|
81
|
+
write.add_argument('--grid', default='grid.pkl')
|
|
82
|
+
write.add_argument('--coord', default='esp_coord')
|
|
83
|
+
write.add_argument('--framed-xyz', default='framed.xyz')
|
|
84
|
+
write.add_argument('--base-atoms', default=None,
|
|
85
|
+
help='comma separated indices defining the Sterimol frame')
|
|
86
|
+
write.add_argument('--origin', default=None)
|
|
87
|
+
write.add_argument('--n-phi', type=int, default=36)
|
|
88
|
+
write.add_argument('--n-axial', type=int, default=20)
|
|
89
|
+
write.add_argument('--probe-offset', type=float, default=0.5)
|
|
90
|
+
write.add_argument('--radii', default='bondi', choices=['bondi', 'CPK'])
|
|
91
|
+
write.set_defaults(func=write_step)
|
|
92
|
+
|
|
93
|
+
read = sub.add_parser('read', help='attach xtb_esp.dat to the grid')
|
|
94
|
+
read.add_argument('--grid', default='grid.pkl')
|
|
95
|
+
read.add_argument('--esp', default='xtb_esp.dat')
|
|
96
|
+
read.add_argument('--out', required=True)
|
|
97
|
+
read.add_argument('--moments', required=True)
|
|
98
|
+
read.add_argument('--beta', type=float, default=1.0)
|
|
99
|
+
read.set_defaults(func=read_step)
|
|
100
|
+
|
|
101
|
+
args = parser.parse_args()
|
|
102
|
+
args.func(args)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
if __name__ == '__main__':
|
|
106
|
+
main()
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
import os
|
|
3
|
+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
|
4
|
+
from utils.constants import *
|
|
5
|
+
from utils.file_handlers import *
|
|
6
|
+
from M1_pre_calculations.outwards_senders import *
|
|
7
|
+
|
|
8
|
+
from typing import List, Tuple
|
|
9
|
+
|
|
10
|
+
class Module1Handler:
|
|
11
|
+
"""
|
|
12
|
+
A handler class for managing molecular calculations using Gaussian input files.
|
|
13
|
+
|
|
14
|
+
Attributes:
|
|
15
|
+
names_list (List[str]): List of molecule names extracted from the CSV file.
|
|
16
|
+
identifier_list (List[str]): List of molecular identifiers (e.g., SMILES strings).
|
|
17
|
+
working_dir (str): Directory path for working with files.
|
|
18
|
+
smiles_list (List[str]): List of SMILES strings, representing molecules.
|
|
19
|
+
inital_xyz_list (List[str]): List of file paths or data for initial XYZ coordinates.
|
|
20
|
+
calculation_method (str): Method of calculation, e.g., 'gaussian'.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
def __init__(self, id_csv_filepath: str, working_dir: str = None, calculation_method: str = 'gaussian'):
|
|
24
|
+
"""
|
|
25
|
+
Initializes the Module1Handler with necessary parameters.
|
|
26
|
+
|
|
27
|
+
Args:
|
|
28
|
+
id_csv_filepath (str): File path to the CSV file containing molecular identifiers.
|
|
29
|
+
working_dir (str, optional): Working directory for file operations. Defaults to the current directory.
|
|
30
|
+
calculation_method (str): The method of calculation to be used. Defaults to 'gaussian'.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
self.names_list, self.identifier_list = process_identifiers_csv_file(id_csv_filepath)
|
|
36
|
+
self.working_dir =os.path.dirname(id_csv_filepath) if working_dir is None else working_dir
|
|
37
|
+
self.smiles_list = self.identifier_list # Update this if the identifier isn't SMILES
|
|
38
|
+
self.inital_xyz_list = smiles_to_coordinates(self.identifier_list)
|
|
39
|
+
self.calculation_method = calculation_method
|
|
40
|
+
|
|
41
|
+
def make_gaussian_input(self) -> None:
|
|
42
|
+
"""
|
|
43
|
+
Generates Gaussian input files from the initial XYZ list.
|
|
44
|
+
"""
|
|
45
|
+
xyz_files_list_to_gaussian_files(self.inital_xyz_list)
|
|
46
|
+
|
|
47
|
+
def submit_to_calculation(self) -> None:
|
|
48
|
+
"""
|
|
49
|
+
Submits the generated Gaussian input for calculation.
|
|
50
|
+
"""
|
|
51
|
+
submit_to_calculation(self.calculation_method)
|
|
52
|
+
|
|
53
|
+
def execute_full_operation(self) -> None:
|
|
54
|
+
"""
|
|
55
|
+
Executes the full operation from generating Gaussian input to submitting for calculation.
|
|
56
|
+
"""
|
|
57
|
+
self.make_gaussian_input()
|
|
58
|
+
self.submit_to_calculation()
|
|
59
|
+
|
|
60
|
+
if __name__ == '__main__':
|
|
61
|
+
csv_filepath = r'smiles_list.csv' # Replace with get_csv_filepath() if necessary
|
|
62
|
+
calculation_method = 'gaussian'
|
|
63
|
+
module_handler = Module1Handler(csv_filepath, calculation_method)
|
|
64
|
+
module_handler.execute_full_operation()
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
import os
|
|
3
|
+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
|
4
|
+
#lib imports
|
|
5
|
+
from utils.constants import LinuxCommands
|
|
6
|
+
from utils.file_handlers import *
|
|
7
|
+
|
|
8
|
+
from typing import List, Optional
|
|
9
|
+
|
|
10
|
+
def run_gaussian_calculation(xyz_filename: str) -> None:
|
|
11
|
+
"""
|
|
12
|
+
Placeholder for running a Gaussian calculation.
|
|
13
|
+
|
|
14
|
+
Args:
|
|
15
|
+
xyz_filename (str): The filename of the XYZ file.
|
|
16
|
+
"""
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
def run_xtb_calcuation(xyz_filename: str, detailed_input: Optional[str] = None) -> None:
|
|
20
|
+
"""
|
|
21
|
+
Runs an xTB calculation on a given XYZ file with optional detailed input.
|
|
22
|
+
|
|
23
|
+
Args:
|
|
24
|
+
xyz_filename (str): The filename of the XYZ file.
|
|
25
|
+
detailed_input (str, optional): Detailed input string for the xTB calculation. Defaults to None.
|
|
26
|
+
"""
|
|
27
|
+
command = LinuxCommands.XTB_INPUT_PREFIX.value + detailed_input + ' ' + xyz_filename + LinuxCommands.XTB_SUFIX.value if detailed_input else LinuxCommands.XTB_PREFIX.value + xyz_filename + LinuxCommands.XTB_SUFIX.value
|
|
28
|
+
os.system(command)
|
|
29
|
+
|
|
30
|
+
def run_crest_calculation(xyz_filename: str, detailed_input: Optional[str] = None) -> None:
|
|
31
|
+
"""
|
|
32
|
+
Runs a CREST calculation on a given XYZ file with optional detailed input.
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
xyz_filename (str): The filename of the XYZ file.
|
|
36
|
+
detailed_input (str, optional): Detailed input string for the CREST calculation. Defaults to None.
|
|
37
|
+
"""
|
|
38
|
+
command = LinuxCommands.CREST_INPUT_PREFIX.value + detailed_input + ' ' + xyz_filename + LinuxCommands.CREST_SUFIX.value if detailed_input else LinuxCommands.CREST_PREFIX.value + xyz_filename + LinuxCommands.CREST_SUFIX.value
|
|
39
|
+
os.system(command)
|
|
40
|
+
|
|
41
|
+
def submit_to_gaussian_calculation(path=None) -> None:
|
|
42
|
+
"""
|
|
43
|
+
Submits files to Gaussian calculation. Assumes .com files are located in the 'com' directory.
|
|
44
|
+
"""
|
|
45
|
+
os.chdir(path) if path else os.chdir(os.getcwd())
|
|
46
|
+
os.system(LinuxCommands.COPY.value + ' ' + LinuxCommands.GAUSS_SUFIX.value + ' .')
|
|
47
|
+
for file in os.listdir():
|
|
48
|
+
if file.endswith('.com'):
|
|
49
|
+
output_name = file.split('.')[0] + '.log'
|
|
50
|
+
os.system(f'./g16 {file} {output_name} -q m')
|
|
51
|
+
os.remove('g16')
|
|
52
|
+
os.chdir('..')
|
|
53
|
+
|
|
54
|
+
def submit_to_xtb_calculation(files_to_send: List[str]) -> str:
|
|
55
|
+
"""
|
|
56
|
+
Submits files to xTB calculation.
|
|
57
|
+
|
|
58
|
+
Args:
|
|
59
|
+
files_to_send (List[str]): List of file names to be sent for xTB calculation.
|
|
60
|
+
|
|
61
|
+
Returns:
|
|
62
|
+
str: Path to the output folder.
|
|
63
|
+
"""
|
|
64
|
+
output_folder_filepath = ''
|
|
65
|
+
# Implementation for xTB calculation submission
|
|
66
|
+
return output_folder_filepath
|
|
67
|
+
|
|
68
|
+
def submit_to_crest_calculation(files_to_send: List[str]) -> str:
|
|
69
|
+
"""
|
|
70
|
+
Submits files to CREST calculation.
|
|
71
|
+
|
|
72
|
+
Args:
|
|
73
|
+
files_to_send (List[str]): List of file names to be sent for CREST calculation.
|
|
74
|
+
|
|
75
|
+
Returns:
|
|
76
|
+
str: Path to the output folder.
|
|
77
|
+
"""
|
|
78
|
+
output_folder_filepath = ''
|
|
79
|
+
# Implementation for CREST calculation submission
|
|
80
|
+
return output_folder_filepath
|
|
81
|
+
|
|
82
|
+
def submit_to_calculation(calculation_method: str = 'gaussian') -> Optional[str]:
|
|
83
|
+
"""
|
|
84
|
+
Submits files to a specified calculation method.
|
|
85
|
+
|
|
86
|
+
Args:
|
|
87
|
+
calculation_method (str): The calculation method to use. Defaults to 'gaussian'.
|
|
88
|
+
|
|
89
|
+
Returns:
|
|
90
|
+
Optional[str]: Path to the output folder, if applicable.
|
|
91
|
+
"""
|
|
92
|
+
if calculation_method == 'gaussian':
|
|
93
|
+
return submit_to_gaussian_calculation()
|
|
94
|
+
elif calculation_method == 'xtb':
|
|
95
|
+
return submit_to_xtb_calculation([])
|
|
96
|
+
elif calculation_method == 'crest':
|
|
97
|
+
return submit_to_crest_calculation([])
|
|
98
|
+
return None
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""SMILES -> numbered structures -> chained cluster stages (GOAT, UMA, xTB, ORCA, Gaussian).
|
|
2
|
+
|
|
3
|
+
from M1_pre_calculations.pipeline import load, build_all, submit, status, retry, watch, fetch
|
|
4
|
+
p = load("protocol.json")
|
|
5
|
+
build_all(p); submit(p)
|
|
6
|
+
|
|
7
|
+
See docs/PIPELINE.md.
|
|
8
|
+
"""
|
|
9
|
+
from .adopt import adopt, permutation, read_sources
|
|
10
|
+
from .build import BuildError, build_all, build_one
|
|
11
|
+
from .cluster import ClusterError, Remote, fetch, plan_lines, reset, retry, status, submit, summarize, watch
|
|
12
|
+
from .protocol import Protocol, ProtocolError, load
|
|
13
|
+
from .stages import render_all, render_stage
|