MolarVerse-PQSetup 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.
- molarverse_pqsetup-0.1.0/.gitignore +22 -0
- molarverse_pqsetup-0.1.0/CHANGELOG.md +20 -0
- molarverse_pqsetup-0.1.0/LICENSE +21 -0
- molarverse_pqsetup-0.1.0/PKG-INFO +163 -0
- molarverse_pqsetup-0.1.0/README.md +124 -0
- molarverse_pqsetup-0.1.0/THIRD_PARTY_NOTICES.md +50 -0
- molarverse_pqsetup-0.1.0/docs/_static/custom.css +59 -0
- molarverse_pqsetup-0.1.0/docs/assets/pq-logo.png +0 -0
- molarverse_pqsetup-0.1.0/docs/assets/screenshots/input-review.png +0 -0
- molarverse_pqsetup-0.1.0/docs/assets/screenshots/run-plan.png +0 -0
- molarverse_pqsetup-0.1.0/docs/assets/screenshots/workspace.png +0 -0
- molarverse_pqsetup-0.1.0/docs/conf.py +84 -0
- molarverse_pqsetup-0.1.0/docs/getting-started.rst +99 -0
- molarverse_pqsetup-0.1.0/docs/index.rst +91 -0
- molarverse_pqsetup-0.1.0/docs/reference/cli.rst +78 -0
- molarverse_pqsetup-0.1.0/docs/reference/compatibility.rst +90 -0
- molarverse_pqsetup-0.1.0/docs/run-packages.rst +89 -0
- molarverse_pqsetup-0.1.0/docs/validation.rst +90 -0
- molarverse_pqsetup-0.1.0/docs/workflow.rst +107 -0
- molarverse_pqsetup-0.1.0/frontend/index.html +17 -0
- molarverse_pqsetup-0.1.0/frontend/package-lock.json +2322 -0
- molarverse_pqsetup-0.1.0/frontend/package.json +25 -0
- molarverse_pqsetup-0.1.0/frontend/public/pq-logo.png +0 -0
- molarverse_pqsetup-0.1.0/frontend/src/App.tsx +3547 -0
- molarverse_pqsetup-0.1.0/frontend/src/ChemicalFormula.test.tsx +19 -0
- molarverse_pqsetup-0.1.0/frontend/src/ChemicalFormula.tsx +27 -0
- molarverse_pqsetup-0.1.0/frontend/src/CommandPalette.tsx +271 -0
- molarverse_pqsetup-0.1.0/frontend/src/StructureViewer.test.tsx +114 -0
- molarverse_pqsetup-0.1.0/frontend/src/StructureViewer.tsx +469 -0
- molarverse_pqsetup-0.1.0/frontend/src/api.test.ts +28 -0
- molarverse_pqsetup-0.1.0/frontend/src/api.ts +137 -0
- molarverse_pqsetup-0.1.0/frontend/src/commandSearch.test.ts +50 -0
- molarverse_pqsetup-0.1.0/frontend/src/commandSearch.ts +110 -0
- molarverse_pqsetup-0.1.0/frontend/src/conditionOptions.test.ts +20 -0
- molarverse_pqsetup-0.1.0/frontend/src/conditionOptions.ts +44 -0
- molarverse_pqsetup-0.1.0/frontend/src/diagnosticNavigation.test.ts +19 -0
- molarverse_pqsetup-0.1.0/frontend/src/diagnosticNavigation.ts +19 -0
- molarverse_pqsetup-0.1.0/frontend/src/main.tsx +10 -0
- molarverse_pqsetup-0.1.0/frontend/src/method.test.ts +198 -0
- molarverse_pqsetup-0.1.0/frontend/src/method.ts +275 -0
- molarverse_pqsetup-0.1.0/frontend/src/runCommand.test.ts +44 -0
- molarverse_pqsetup-0.1.0/frontend/src/runCommand.ts +26 -0
- molarverse_pqsetup-0.1.0/frontend/src/runPlan.test.ts +125 -0
- molarverse_pqsetup-0.1.0/frontend/src/runPlan.ts +125 -0
- molarverse_pqsetup-0.1.0/frontend/src/styles.css +3544 -0
- molarverse_pqsetup-0.1.0/frontend/src/types.ts +246 -0
- molarverse_pqsetup-0.1.0/frontend/tsconfig.app.json +22 -0
- molarverse_pqsetup-0.1.0/frontend/tsconfig.json +7 -0
- molarverse_pqsetup-0.1.0/frontend/tsconfig.node.json +9 -0
- molarverse_pqsetup-0.1.0/frontend/vite.config.ts +18 -0
- molarverse_pqsetup-0.1.0/pqsetup/__init__.py +3 -0
- molarverse_pqsetup-0.1.0/pqsetup/__main__.py +4 -0
- molarverse_pqsetup-0.1.0/pqsetup/api.py +720 -0
- molarverse_pqsetup-0.1.0/pqsetup/cli.py +229 -0
- molarverse_pqsetup-0.1.0/pqsetup/collisions.py +298 -0
- molarverse_pqsetup-0.1.0/pqsetup/executable.py +179 -0
- molarverse_pqsetup-0.1.0/pqsetup/external_qm.py +115 -0
- molarverse_pqsetup-0.1.0/pqsetup/input_writer.py +826 -0
- molarverse_pqsetup-0.1.0/pqsetup/mm.py +446 -0
- molarverse_pqsetup-0.1.0/pqsetup/models.py +337 -0
- molarverse_pqsetup-0.1.0/pqsetup/pq_validation.py +83 -0
- molarverse_pqsetup-0.1.0/pqsetup/presets.py +48 -0
- molarverse_pqsetup-0.1.0/pqsetup/release.py +52 -0
- molarverse_pqsetup-0.1.0/pqsetup/run_plan.py +440 -0
- molarverse_pqsetup-0.1.0/pqsetup/run_script.py +124 -0
- molarverse_pqsetup-0.1.0/pqsetup/runners.py +303 -0
- molarverse_pqsetup-0.1.0/pqsetup/setup_files.py +255 -0
- molarverse_pqsetup-0.1.0/pqsetup/static/assets/index-CSNPgzM2.js +184 -0
- molarverse_pqsetup-0.1.0/pqsetup/static/assets/index-CdBTCRXM.css +1 -0
- molarverse_pqsetup-0.1.0/pqsetup/static/index.html +18 -0
- molarverse_pqsetup-0.1.0/pqsetup/static/pq-logo.png +0 -0
- molarverse_pqsetup-0.1.0/pqsetup/structures.py +551 -0
- molarverse_pqsetup-0.1.0/pyproject.toml +91 -0
- molarverse_pqsetup-0.1.0/scripts/verify_distribution.py +97 -0
- molarverse_pqsetup-0.1.0/tests/data/invalid.xyz +3 -0
- molarverse_pqsetup-0.1.0/tests/data/legacy.rst +4 -0
- molarverse_pqsetup-0.1.0/tests/data/water.rst +4 -0
- molarverse_pqsetup-0.1.0/tests/data/water.xyz +5 -0
- molarverse_pqsetup-0.1.0/tests/test_api_cli.py +539 -0
- molarverse_pqsetup-0.1.0/tests/test_collision_limits.py +126 -0
- molarverse_pqsetup-0.1.0/tests/test_coupling_details.py +356 -0
- molarverse_pqsetup-0.1.0/tests/test_executable.py +183 -0
- molarverse_pqsetup-0.1.0/tests/test_mm_workflow.py +569 -0
- molarverse_pqsetup-0.1.0/tests/test_plan_api_export.py +465 -0
- molarverse_pqsetup-0.1.0/tests/test_pq_integration.py +262 -0
- molarverse_pqsetup-0.1.0/tests/test_pq_validation.py +233 -0
- molarverse_pqsetup-0.1.0/tests/test_presets_and_input.py +247 -0
- molarverse_pqsetup-0.1.0/tests/test_qm_companion_files.py +311 -0
- molarverse_pqsetup-0.1.0/tests/test_run_plans.py +532 -0
- molarverse_pqsetup-0.1.0/tests/test_run_script_export.py +249 -0
- molarverse_pqsetup-0.1.0/tests/test_runners.py +214 -0
- molarverse_pqsetup-0.1.0/tests/test_structures.py +182 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.DS_Store
|
|
2
|
+
.release-venv/
|
|
3
|
+
.venv/
|
|
4
|
+
__pycache__/
|
|
5
|
+
*.py[cod]
|
|
6
|
+
*.egg-info/
|
|
7
|
+
.pytest_cache/
|
|
8
|
+
.mypy_cache/
|
|
9
|
+
.coverage
|
|
10
|
+
htmlcov/
|
|
11
|
+
build/
|
|
12
|
+
dist/
|
|
13
|
+
output/
|
|
14
|
+
docs/_build/
|
|
15
|
+
.playwright-cli/
|
|
16
|
+
frontend/node_modules/
|
|
17
|
+
frontend/.vite/
|
|
18
|
+
frontend/vite.config.js
|
|
19
|
+
frontend/vite.config.d.ts
|
|
20
|
+
*.tsbuildinfo
|
|
21
|
+
playwright-report/
|
|
22
|
+
test-results/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
PQSetup follows [Semantic Versioning](https://semver.org/). This file records
|
|
4
|
+
user-visible changes.
|
|
5
|
+
|
|
6
|
+
## [Unreleased]
|
|
7
|
+
|
|
8
|
+
## [0.1.0] - 2026-09-13
|
|
9
|
+
|
|
10
|
+
Initial public alpha.
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Local browser interface for preparing PQ simulation inputs
|
|
15
|
+
- CIF, XYZ, PDB, MOL, SDF, ASE trajectory, and PQ restart imports
|
|
16
|
+
- Molecular mechanics and supported external QM calculator setup
|
|
17
|
+
- NVE, NVT, and NPT run planning with optional equilibration
|
|
18
|
+
- Local validation with optional validation by a compatible PQ executable
|
|
19
|
+
- Portable run packages with ordered inputs, launcher, provenance, and hashes
|
|
20
|
+
- Reproducible coordinate wrapping and optional seeded perturbation
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MolarVerse
|
|
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.
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: MolarVerse-PQSetup
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Prepare and validate PQ simulation inputs.
|
|
5
|
+
Project-URL: Documentation, https://molarverse.github.io/PQSetup/
|
|
6
|
+
Project-URL: Repository, https://github.com/MolarVerse/PQSetup
|
|
7
|
+
Project-URL: Changelog, https://github.com/MolarVerse/PQSetup/blob/main/CHANGELOG.md
|
|
8
|
+
Project-URL: Issues, https://github.com/MolarVerse/PQSetup/issues
|
|
9
|
+
Project-URL: PQ, https://github.com/MolarVerse/PQ
|
|
10
|
+
Author: MolarVerse
|
|
11
|
+
License-Expression: MIT
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
License-File: THIRD_PARTY_NOTICES.md
|
|
14
|
+
Keywords: computational chemistry,molecular dynamics,simulation input
|
|
15
|
+
Classifier: Development Status :: 3 - Alpha
|
|
16
|
+
Classifier: Intended Audience :: Science/Research
|
|
17
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
22
|
+
Requires-Python: >=3.11
|
|
23
|
+
Requires-Dist: ase>=3.23
|
|
24
|
+
Requires-Dist: fastapi>=0.115
|
|
25
|
+
Requires-Dist: numpy>=2.0
|
|
26
|
+
Requires-Dist: pydantic>=2.10
|
|
27
|
+
Requires-Dist: python-multipart>=0.0.18
|
|
28
|
+
Requires-Dist: scipy>=1.13
|
|
29
|
+
Requires-Dist: uvicorn>=0.34
|
|
30
|
+
Provides-Extra: docs
|
|
31
|
+
Requires-Dist: furo<2027,>=2024.8.6; extra == 'docs'
|
|
32
|
+
Requires-Dist: sphinx-copybutton<1,>=0.5; extra == 'docs'
|
|
33
|
+
Requires-Dist: sphinx-design<1,>=0.6; extra == 'docs'
|
|
34
|
+
Requires-Dist: sphinx<9,>=8; extra == 'docs'
|
|
35
|
+
Provides-Extra: test
|
|
36
|
+
Requires-Dist: httpx>=0.27; extra == 'test'
|
|
37
|
+
Requires-Dist: pytest>=8.0; extra == 'test'
|
|
38
|
+
Description-Content-Type: text/markdown
|
|
39
|
+
|
|
40
|
+
<img src="https://raw.githubusercontent.com/MolarVerse/PQSetup/main/frontend/public/pq-logo.png" alt="PQSetup logo" width="200">
|
|
41
|
+
|
|
42
|
+
[](https://github.com/MolarVerse/PQSetup/actions/workflows/ci.yml)
|
|
43
|
+
[](https://molarverse.github.io/PQSetup/)
|
|
44
|
+
[](https://pypi.org/project/molarverse-pqsetup/)
|
|
45
|
+
[](LICENSE)
|
|
46
|
+
|
|
47
|
+
# PQSetup
|
|
48
|
+
|
|
49
|
+
Prepare and validate PQ simulation inputs in a local browser interface.
|
|
50
|
+
|
|
51
|
+
PQSetup builds the input package. [PQ](https://github.com/MolarVerse/PQ) runs it.
|
|
52
|
+
|
|
53
|
+
[Documentation](https://molarverse.github.io/PQSetup/) ·
|
|
54
|
+
[Getting started](https://molarverse.github.io/PQSetup/getting-started.html) ·
|
|
55
|
+
[Command line](https://molarverse.github.io/PQSetup/reference/cli.html)
|
|
56
|
+
|
|
57
|
+
## Install
|
|
58
|
+
|
|
59
|
+
Python 3.11 or newer. The UI ships inside the package; Node.js is not required.
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
python3 -m venv .venv
|
|
63
|
+
source .venv/bin/activate
|
|
64
|
+
python -m pip install MolarVerse-PQSetup
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
From a local clone (contributors):
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
python -m pip install .
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Quick Start
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
pqsetup
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Keep the water example, choose a method, review the inputs, download the
|
|
80
|
+
package, then run it where PQ is installed:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
unzip water-nvt.zip -d water-nvt
|
|
84
|
+
cd water-nvt
|
|
85
|
+
./run.sh /path/to/PQ
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Check what this machine can see:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
pqsetup doctor
|
|
92
|
+
pqsetup --pq-executable /path/to/PQ doctor
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Validate an existing input:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
pqsetup validate run.in
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
See the [documentation](https://molarverse.github.io/PQSetup/) for server
|
|
102
|
+
options, validation scopes, and complete setup examples.
|
|
103
|
+
|
|
104
|
+
## Input
|
|
105
|
+
|
|
106
|
+
| Structure | Extension | Handling |
|
|
107
|
+
| --- | --- | --- |
|
|
108
|
+
| PQ restart | `.rst` | Preserves atom names, molecule types, and available velocities or forces |
|
|
109
|
+
| CIF | `.cif` | Read through ASE |
|
|
110
|
+
| XYZ | `.xyz`, `.extxyz` | Reads standard and extended XYZ data |
|
|
111
|
+
| Protein Data Bank | `.pdb` | Read through ASE |
|
|
112
|
+
| MOL / SDF | `.mol`, `.sdf` | Read through ASE |
|
|
113
|
+
| ASE trajectory | `.traj` | Read through ASE |
|
|
114
|
+
|
|
115
|
+
Multi-frame ASE sources import the final frame. Structures without a cell
|
|
116
|
+
receive a centered vacuum cell. Periodic coordinates follow PQ's
|
|
117
|
+
origin-centered cell convention.
|
|
118
|
+
|
|
119
|
+
## Workflow
|
|
120
|
+
|
|
121
|
+
| Step | Result |
|
|
122
|
+
| --- | --- |
|
|
123
|
+
| System | Inspect coordinates, elements, periodic cells, and close contacts |
|
|
124
|
+
| Method | Configure molecular mechanics or one supported QM calculator |
|
|
125
|
+
| Conditions | Build NVE, NVT, or NPT sampling with optional NVT equilibration |
|
|
126
|
+
| Prepare | Wrap periodic atoms and optionally perturb perfect crystal symmetry |
|
|
127
|
+
| Review | Inspect every generated input before creating the package |
|
|
128
|
+
|
|
129
|
+
PQSetup does not submit jobs or run the simulation.
|
|
130
|
+
|
|
131
|
+
## Validation
|
|
132
|
+
|
|
133
|
+
PQSetup checks the structure, plan, required files, and generated inputs
|
|
134
|
+
locally. When the selected PQ executable advertises machine-readable
|
|
135
|
+
validation, PQSetup also checks the inputs with PQ.
|
|
136
|
+
|
|
137
|
+
Environment detection reports what is available. It does not establish that a
|
|
138
|
+
method, force field, or protocol is scientifically suitable.
|
|
139
|
+
|
|
140
|
+
PQSetup writes inputs for the stable PQ v0.7.0 release.
|
|
141
|
+
|
|
142
|
+
## Run Packages
|
|
143
|
+
|
|
144
|
+
| File | Purpose |
|
|
145
|
+
| --- | --- |
|
|
146
|
+
| `run-eq.in` | Optional NVT equilibration |
|
|
147
|
+
| `run-01.in` … `run-999.in` | Sampling inputs and restart chain |
|
|
148
|
+
| Structure restart | Prepared coordinates under the selected start filename |
|
|
149
|
+
| `run.sh` | Fail-fast execution in the recorded order |
|
|
150
|
+
| `pqproject.json` | Plan, environment, provenance, warnings, and file hashes |
|
|
151
|
+
|
|
152
|
+
Uploaded force-field files and calculator templates are included in the
|
|
153
|
+
package.
|
|
154
|
+
|
|
155
|
+
## Development
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
python -m pip install -e ".[test]"
|
|
159
|
+
npm --prefix frontend ci
|
|
160
|
+
python -m pytest
|
|
161
|
+
npm --prefix frontend test
|
|
162
|
+
npm --prefix frontend run build
|
|
163
|
+
```
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
<img src="https://raw.githubusercontent.com/MolarVerse/PQSetup/main/frontend/public/pq-logo.png" alt="PQSetup logo" width="200">
|
|
2
|
+
|
|
3
|
+
[](https://github.com/MolarVerse/PQSetup/actions/workflows/ci.yml)
|
|
4
|
+
[](https://molarverse.github.io/PQSetup/)
|
|
5
|
+
[](https://pypi.org/project/molarverse-pqsetup/)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
|
|
8
|
+
# PQSetup
|
|
9
|
+
|
|
10
|
+
Prepare and validate PQ simulation inputs in a local browser interface.
|
|
11
|
+
|
|
12
|
+
PQSetup builds the input package. [PQ](https://github.com/MolarVerse/PQ) runs it.
|
|
13
|
+
|
|
14
|
+
[Documentation](https://molarverse.github.io/PQSetup/) ·
|
|
15
|
+
[Getting started](https://molarverse.github.io/PQSetup/getting-started.html) ·
|
|
16
|
+
[Command line](https://molarverse.github.io/PQSetup/reference/cli.html)
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
Python 3.11 or newer. The UI ships inside the package; Node.js is not required.
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
python3 -m venv .venv
|
|
24
|
+
source .venv/bin/activate
|
|
25
|
+
python -m pip install MolarVerse-PQSetup
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
From a local clone (contributors):
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
python -m pip install .
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Quick Start
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pqsetup
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Keep the water example, choose a method, review the inputs, download the
|
|
41
|
+
package, then run it where PQ is installed:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
unzip water-nvt.zip -d water-nvt
|
|
45
|
+
cd water-nvt
|
|
46
|
+
./run.sh /path/to/PQ
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Check what this machine can see:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
pqsetup doctor
|
|
53
|
+
pqsetup --pq-executable /path/to/PQ doctor
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Validate an existing input:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
pqsetup validate run.in
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
See the [documentation](https://molarverse.github.io/PQSetup/) for server
|
|
63
|
+
options, validation scopes, and complete setup examples.
|
|
64
|
+
|
|
65
|
+
## Input
|
|
66
|
+
|
|
67
|
+
| Structure | Extension | Handling |
|
|
68
|
+
| --- | --- | --- |
|
|
69
|
+
| PQ restart | `.rst` | Preserves atom names, molecule types, and available velocities or forces |
|
|
70
|
+
| CIF | `.cif` | Read through ASE |
|
|
71
|
+
| XYZ | `.xyz`, `.extxyz` | Reads standard and extended XYZ data |
|
|
72
|
+
| Protein Data Bank | `.pdb` | Read through ASE |
|
|
73
|
+
| MOL / SDF | `.mol`, `.sdf` | Read through ASE |
|
|
74
|
+
| ASE trajectory | `.traj` | Read through ASE |
|
|
75
|
+
|
|
76
|
+
Multi-frame ASE sources import the final frame. Structures without a cell
|
|
77
|
+
receive a centered vacuum cell. Periodic coordinates follow PQ's
|
|
78
|
+
origin-centered cell convention.
|
|
79
|
+
|
|
80
|
+
## Workflow
|
|
81
|
+
|
|
82
|
+
| Step | Result |
|
|
83
|
+
| --- | --- |
|
|
84
|
+
| System | Inspect coordinates, elements, periodic cells, and close contacts |
|
|
85
|
+
| Method | Configure molecular mechanics or one supported QM calculator |
|
|
86
|
+
| Conditions | Build NVE, NVT, or NPT sampling with optional NVT equilibration |
|
|
87
|
+
| Prepare | Wrap periodic atoms and optionally perturb perfect crystal symmetry |
|
|
88
|
+
| Review | Inspect every generated input before creating the package |
|
|
89
|
+
|
|
90
|
+
PQSetup does not submit jobs or run the simulation.
|
|
91
|
+
|
|
92
|
+
## Validation
|
|
93
|
+
|
|
94
|
+
PQSetup checks the structure, plan, required files, and generated inputs
|
|
95
|
+
locally. When the selected PQ executable advertises machine-readable
|
|
96
|
+
validation, PQSetup also checks the inputs with PQ.
|
|
97
|
+
|
|
98
|
+
Environment detection reports what is available. It does not establish that a
|
|
99
|
+
method, force field, or protocol is scientifically suitable.
|
|
100
|
+
|
|
101
|
+
PQSetup writes inputs for the stable PQ v0.7.0 release.
|
|
102
|
+
|
|
103
|
+
## Run Packages
|
|
104
|
+
|
|
105
|
+
| File | Purpose |
|
|
106
|
+
| --- | --- |
|
|
107
|
+
| `run-eq.in` | Optional NVT equilibration |
|
|
108
|
+
| `run-01.in` … `run-999.in` | Sampling inputs and restart chain |
|
|
109
|
+
| Structure restart | Prepared coordinates under the selected start filename |
|
|
110
|
+
| `run.sh` | Fail-fast execution in the recorded order |
|
|
111
|
+
| `pqproject.json` | Plan, environment, provenance, warnings, and file hashes |
|
|
112
|
+
|
|
113
|
+
Uploaded force-field files and calculator templates are included in the
|
|
114
|
+
package.
|
|
115
|
+
|
|
116
|
+
## Development
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
python -m pip install -e ".[test]"
|
|
120
|
+
npm --prefix frontend ci
|
|
121
|
+
python -m pytest
|
|
122
|
+
npm --prefix frontend test
|
|
123
|
+
npm --prefix frontend run build
|
|
124
|
+
```
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
## Lucide
|
|
4
|
+
|
|
5
|
+
PQSetup bundles icons from `lucide-react` 0.468.0.
|
|
6
|
+
|
|
7
|
+
ISC License
|
|
8
|
+
|
|
9
|
+
Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part
|
|
10
|
+
of Feather (MIT). All other copyright (c) for Lucide are held by Lucide
|
|
11
|
+
Contributors 2022.
|
|
12
|
+
|
|
13
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
14
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
15
|
+
copyright notice and this permission notice appear in all copies.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
18
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
19
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
20
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
21
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
22
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
23
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
24
|
+
|
|
25
|
+
## React
|
|
26
|
+
|
|
27
|
+
The browser bundle includes `react` 19.2.8, `react-dom` 19.2.8, and
|
|
28
|
+
`scheduler` 0.27.0.
|
|
29
|
+
|
|
30
|
+
MIT License
|
|
31
|
+
|
|
32
|
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
33
|
+
|
|
34
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
35
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
36
|
+
in the Software without restriction, including without limitation the rights
|
|
37
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
38
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
39
|
+
furnished to do so, subject to the following conditions:
|
|
40
|
+
|
|
41
|
+
The above copyright notice and this permission notice shall be included in all
|
|
42
|
+
copies or substantial portions of the Software.
|
|
43
|
+
|
|
44
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
45
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
46
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
47
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
48
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
49
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
50
|
+
SOFTWARE.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* PQSetup-specific additions to Furo. */
|
|
2
|
+
|
|
3
|
+
.sidebar-brand {
|
|
4
|
+
flex-direction: row;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: 0.75rem;
|
|
7
|
+
padding-block: 0.75rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.sidebar-logo-container {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex: 0 0 4.5rem;
|
|
13
|
+
align-items: center;
|
|
14
|
+
margin: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.sidebar-logo {
|
|
18
|
+
width: 4.5rem;
|
|
19
|
+
margin: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sidebar-brand-text {
|
|
23
|
+
margin: 0;
|
|
24
|
+
font-size: 1.35rem;
|
|
25
|
+
font-weight: 700;
|
|
26
|
+
line-height: 1.1;
|
|
27
|
+
letter-spacing: -0.02em;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.sd-card {
|
|
31
|
+
box-shadow: none;
|
|
32
|
+
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.sd-card:hover {
|
|
36
|
+
transform: translateY(-2px);
|
|
37
|
+
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.content p code.literal,
|
|
41
|
+
.content li code.literal {
|
|
42
|
+
background: var(--color-code-background);
|
|
43
|
+
border-radius: 0.2em;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.pq-workspace {
|
|
47
|
+
margin: 1.5rem 0 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.pq-workspace img,
|
|
51
|
+
.pq-shot img {
|
|
52
|
+
width: 100%;
|
|
53
|
+
border: 1px solid var(--color-foreground-border);
|
|
54
|
+
border-radius: 0.35rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.pq-shot {
|
|
58
|
+
margin: 1.5rem 0 2rem;
|
|
59
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"""Sphinx configuration for the PQSetup documentation."""
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import sys
|
|
5
|
+
|
|
6
|
+
sys.path.insert(0, os.path.abspath(".."))
|
|
7
|
+
|
|
8
|
+
project = "PQSetup"
|
|
9
|
+
author = "MolarVerse"
|
|
10
|
+
copyright = "2026, the PQSetup authors"
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from pqsetup import __version__ as release
|
|
14
|
+
except Exception: # pragma: no cover - package may be absent in a bare checkout
|
|
15
|
+
release = ""
|
|
16
|
+
version = release
|
|
17
|
+
|
|
18
|
+
extensions = [
|
|
19
|
+
"sphinx.ext.autodoc",
|
|
20
|
+
"sphinx.ext.napoleon",
|
|
21
|
+
"sphinx.ext.viewcode",
|
|
22
|
+
"sphinx.ext.intersphinx",
|
|
23
|
+
"sphinx_copybutton",
|
|
24
|
+
"sphinx_design",
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
autodoc_typehints = "description"
|
|
28
|
+
napoleon_numpy_docstring = True
|
|
29
|
+
napoleon_google_docstring = False
|
|
30
|
+
|
|
31
|
+
intersphinx_mapping = {
|
|
32
|
+
"python": ("https://docs.python.org/3", None),
|
|
33
|
+
"numpy": ("https://numpy.org/doc/stable/", None),
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
copybutton_prompt_text = r">>> |\.\.\. |\$ "
|
|
37
|
+
copybutton_prompt_is_regexp = True
|
|
38
|
+
|
|
39
|
+
templates_path = ["_templates"]
|
|
40
|
+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
|
|
41
|
+
|
|
42
|
+
html_theme = "furo"
|
|
43
|
+
html_title = "PQSetup"
|
|
44
|
+
html_logo = "assets/pq-logo.png"
|
|
45
|
+
html_favicon = "assets/pq-logo.png"
|
|
46
|
+
html_static_path = ["_static"]
|
|
47
|
+
html_css_files = ["custom.css"]
|
|
48
|
+
|
|
49
|
+
html_theme_options = {
|
|
50
|
+
"sidebar_hide_name": False,
|
|
51
|
+
"light_css_variables": {
|
|
52
|
+
"color-brand-primary": "#1f718f",
|
|
53
|
+
"color-brand-content": "#176c8c",
|
|
54
|
+
},
|
|
55
|
+
"dark_css_variables": {
|
|
56
|
+
"color-brand-primary": "#65bddb",
|
|
57
|
+
"color-brand-content": "#65bddb",
|
|
58
|
+
},
|
|
59
|
+
"source_repository": "https://github.com/MolarVerse/PQSetup/",
|
|
60
|
+
"source_branch": "main",
|
|
61
|
+
"source_directory": "docs/",
|
|
62
|
+
"footer_icons": [
|
|
63
|
+
{
|
|
64
|
+
"name": "GitHub",
|
|
65
|
+
"url": "https://github.com/MolarVerse/PQSetup",
|
|
66
|
+
"html": (
|
|
67
|
+
'<svg stroke="currentColor" fill="currentColor" stroke-width="0" '
|
|
68
|
+
'viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8 0C3.58 0 0 '
|
|
69
|
+
'3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01'
|
|
70
|
+
'-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13'
|
|
71
|
+
'-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 '
|
|
72
|
+
'2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31'
|
|
73
|
+
'-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 '
|
|
74
|
+
'1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 '
|
|
75
|
+
'1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 '
|
|
76
|
+
'3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55'
|
|
77
|
+
'.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg>'
|
|
78
|
+
),
|
|
79
|
+
"class": "",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
html_baseurl = "https://molarverse.github.io/PQSetup/"
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
Getting started
|
|
2
|
+
===============
|
|
3
|
+
|
|
4
|
+
PQSetup prepares PQ input packages in a local browser. It does not install or
|
|
5
|
+
run PQ. Install `PQ <https://github.com/MolarVerse/PQ>`_ separately to validate
|
|
6
|
+
deeply and to execute ``run.sh``.
|
|
7
|
+
|
|
8
|
+
You can design and export packages without a detected calculator or PQ
|
|
9
|
+
executable. Missing checks are reported instead of silently passed.
|
|
10
|
+
|
|
11
|
+
Requirements
|
|
12
|
+
------------
|
|
13
|
+
|
|
14
|
+
* Python 3.11 or newer
|
|
15
|
+
* A PQ executable to validate and run the generated inputs
|
|
16
|
+
* The calculator and supporting files required by the chosen method
|
|
17
|
+
|
|
18
|
+
Install
|
|
19
|
+
-------
|
|
20
|
+
|
|
21
|
+
.. code-block:: bash
|
|
22
|
+
|
|
23
|
+
python3 -m venv .venv
|
|
24
|
+
source .venv/bin/activate
|
|
25
|
+
python -m pip install MolarVerse-PQSetup
|
|
26
|
+
|
|
27
|
+
From a local clone:
|
|
28
|
+
|
|
29
|
+
.. code-block:: bash
|
|
30
|
+
|
|
31
|
+
python -m pip install .
|
|
32
|
+
|
|
33
|
+
Node.js is only needed when changing the interface.
|
|
34
|
+
|
|
35
|
+
Open the interface
|
|
36
|
+
------------------
|
|
37
|
+
|
|
38
|
+
.. code-block:: bash
|
|
39
|
+
|
|
40
|
+
pqsetup
|
|
41
|
+
|
|
42
|
+
PQSetup opens a local page at ``127.0.0.1:8888``. To choose another port or
|
|
43
|
+
avoid opening a browser:
|
|
44
|
+
|
|
45
|
+
.. code-block:: bash
|
|
46
|
+
|
|
47
|
+
pqsetup serve --port 8890 --no-browser
|
|
48
|
+
|
|
49
|
+
Create the first package
|
|
50
|
+
------------------------
|
|
51
|
+
|
|
52
|
+
#. Keep the water example, or import a structure.
|
|
53
|
+
#. Choose molecular mechanics or one QM calculator.
|
|
54
|
+
#. Set the sampling ensemble and duration. Add NVT equilibration if needed.
|
|
55
|
+
#. Review optional coordinate preparation.
|
|
56
|
+
#. Inspect every generated input, then create the package.
|
|
57
|
+
|
|
58
|
+
Presets are editable starting points, not validated production protocols.
|
|
59
|
+
|
|
60
|
+
Check the environment
|
|
61
|
+
---------------------
|
|
62
|
+
|
|
63
|
+
.. code-block:: bash
|
|
64
|
+
|
|
65
|
+
pqsetup doctor
|
|
66
|
+
|
|
67
|
+
``doctor`` reports the selected PQ executable and the external calculators
|
|
68
|
+
that PQSetup can detect. To use a different executable:
|
|
69
|
+
|
|
70
|
+
.. code-block:: bash
|
|
71
|
+
|
|
72
|
+
pqsetup --pq-executable /opt/pq/bin/PQ doctor
|
|
73
|
+
|
|
74
|
+
The same path can be supplied through ``PQ_EXECUTABLE``.
|
|
75
|
+
|
|
76
|
+
Run the package
|
|
77
|
+
---------------
|
|
78
|
+
|
|
79
|
+
Unpack the download on the machine where PQ and the calculator are available:
|
|
80
|
+
|
|
81
|
+
.. code-block:: bash
|
|
82
|
+
|
|
83
|
+
mkdir water-nvt
|
|
84
|
+
unzip water-nvt.zip -d water-nvt
|
|
85
|
+
cd water-nvt
|
|
86
|
+
./run.sh /opt/pq/bin/PQ
|
|
87
|
+
|
|
88
|
+
The launcher follows the recorded input order, writes output to ``run-logs/``,
|
|
89
|
+
and stops after the first failed or incomplete PQ run.
|
|
90
|
+
|
|
91
|
+
PQSetup does not submit a scheduler job. Transfer and submission remain under
|
|
92
|
+
the user's control.
|
|
93
|
+
|
|
94
|
+
Next
|
|
95
|
+
----
|
|
96
|
+
|
|
97
|
+
* :doc:`Build a run <workflow>`
|
|
98
|
+
* :doc:`Understand validation <validation>`
|
|
99
|
+
* :doc:`Inspect the package format <run-packages>`
|