phenoms 0.2.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.
- phenoms-0.2.0/.dockerignore +26 -0
- phenoms-0.2.0/.github/workflows/docs.yml +59 -0
- phenoms-0.2.0/.github/workflows/release.yml +97 -0
- phenoms-0.2.0/.github/workflows/tests.yml +47 -0
- phenoms-0.2.0/.gitignore +55 -0
- phenoms-0.2.0/Cargo.lock +322 -0
- phenoms-0.2.0/Cargo.toml +16 -0
- phenoms-0.2.0/LICENSE +21 -0
- phenoms-0.2.0/PKG-INFO +95 -0
- phenoms-0.2.0/README.md +56 -0
- phenoms-0.2.0/assets/phenoms.png +0 -0
- phenoms-0.2.0/docker/README.md +108 -0
- phenoms-0.2.0/docker/benchmark-one-cpu.Dockerfile +36 -0
- phenoms-0.2.0/docs/Makefile +19 -0
- phenoms-0.2.0/docs/_static/.gitkeep +0 -0
- phenoms-0.2.0/docs/api/comparison.rst +10 -0
- phenoms-0.2.0/docs/api/core.rst +18 -0
- phenoms-0.2.0/docs/api/detection.rst +6 -0
- phenoms-0.2.0/docs/api/index.rst +15 -0
- phenoms-0.2.0/docs/api/plotting.rst +14 -0
- phenoms-0.2.0/docs/api/preprocess.rst +10 -0
- phenoms-0.2.0/docs/api/qc_cleanup.rst +14 -0
- phenoms-0.2.0/docs/cli.rst +56 -0
- phenoms-0.2.0/docs/conf.py +109 -0
- phenoms-0.2.0/docs/index.rst +49 -0
- phenoms-0.2.0/docs/installation.rst +40 -0
- phenoms-0.2.0/docs/outputs.rst +55 -0
- phenoms-0.2.0/docs/requirements.txt +4 -0
- phenoms-0.2.0/docs/usage.rst +198 -0
- phenoms-0.2.0/environment.yml +31 -0
- phenoms-0.2.0/phenoms/__init__.py +346 -0
- phenoms-0.2.0/phenoms/__main__.py +6 -0
- phenoms-0.2.0/phenoms/analysis.py +130 -0
- phenoms-0.2.0/phenoms/cleanup.py +540 -0
- phenoms-0.2.0/phenoms/cli.py +177 -0
- phenoms-0.2.0/phenoms/comparison.py +161 -0
- phenoms-0.2.0/phenoms/comparison_set.py +360 -0
- phenoms-0.2.0/phenoms/connectivity.py +649 -0
- phenoms-0.2.0/phenoms/dimensionality_reduction.py +151 -0
- phenoms-0.2.0/phenoms/hbond.py +356 -0
- phenoms-0.2.0/phenoms/io.py +91 -0
- phenoms-0.2.0/phenoms/outputs.py +26 -0
- phenoms-0.2.0/phenoms/plotting.py +367 -0
- phenoms-0.2.0/phenoms/preprocess.py +243 -0
- phenoms-0.2.0/phenoms/qc.py +144 -0
- phenoms-0.2.0/phenoms/simulation.py +530 -0
- phenoms-0.2.0/phenoms/structure.py +214 -0
- phenoms-0.2.0/phenoms/viewer_bfactor_html.py +169 -0
- phenoms-0.2.0/pyproject.toml +57 -0
- phenoms-0.2.0/scripts/benchmark_kernel.py +310 -0
- phenoms-0.2.0/scripts/benchmark_plcg2_truncations.py +627 -0
- phenoms-0.2.0/scripts/compare_rust_mdtraj_difference_plot.py +235 -0
- phenoms-0.2.0/scripts/debug_docker_all_methods.py +85 -0
- phenoms-0.2.0/scripts/debug_docker_isolate.py +57 -0
- phenoms-0.2.0/scripts/fix_plcg2_table_totals.py +119 -0
- phenoms-0.2.0/scripts/preprocess_gromacs_to_pdb.py +124 -0
- phenoms-0.2.0/scripts/preprocess_plcg2_for_benchmark.py +66 -0
- phenoms-0.2.0/scripts/renumber_many_to_reference.py +73 -0
- phenoms-0.2.0/scripts/renumber_pdb_to_reference.py +80 -0
- phenoms-0.2.0/scripts/run_benchmark_docker_1cpu.sh +30 -0
- phenoms-0.2.0/scripts/run_benchmark_plcg2_docker.sh +83 -0
- phenoms-0.2.0/scripts/run_test_data_plots.py +417 -0
- phenoms-0.2.0/src/lib.rs +327 -0
- phenoms-0.2.0/tests/__init__.py +0 -0
- phenoms-0.2.0/tests/fixtures/__init__.py +0 -0
- phenoms-0.2.0/tests/fixtures/minimal.pdb +5 -0
- phenoms-0.2.0/tests/fixtures/tiny_protein.pdb +363 -0
- phenoms-0.2.0/tests/test_analysis.py +79 -0
- phenoms-0.2.0/tests/test_api_extensions.py +70 -0
- phenoms-0.2.0/tests/test_cleanup_renumber.py +92 -0
- phenoms-0.2.0/tests/test_comparison.py +35 -0
- phenoms-0.2.0/tests/test_comparison_set.py +60 -0
- phenoms-0.2.0/tests/test_connectivity.py +144 -0
- phenoms-0.2.0/tests/test_hbond.py +58 -0
- phenoms-0.2.0/tests/test_plotting.py +74 -0
- phenoms-0.2.0/tests/test_preprocess.py +61 -0
- phenoms-0.2.0/tests/test_qc.py +66 -0
- phenoms-0.2.0/tests/test_rust_hbond_speed.py +168 -0
- phenoms-0.2.0/tests/test_simulation_set.py +120 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Docker build context (repo root). Keep phenoms/test_data/ for benchmarks.
|
|
2
|
+
.git
|
|
3
|
+
**/__pycache__
|
|
4
|
+
*.pyc
|
|
5
|
+
.pytest_cache
|
|
6
|
+
.mypy_cache
|
|
7
|
+
.ruff_cache
|
|
8
|
+
*.egg-info
|
|
9
|
+
target/
|
|
10
|
+
phenoms/test_outputs/
|
|
11
|
+
old_scripts/
|
|
12
|
+
H_bond_work/
|
|
13
|
+
.vscode/
|
|
14
|
+
.cursor/
|
|
15
|
+
**/.ipynb_checkpoints
|
|
16
|
+
phenom_outputs/
|
|
17
|
+
protein_pdb_exports/
|
|
18
|
+
plcg2_data/
|
|
19
|
+
paper_materials/
|
|
20
|
+
H_bond_work/
|
|
21
|
+
target/
|
|
22
|
+
*.ai
|
|
23
|
+
*.tif
|
|
24
|
+
*.pdf
|
|
25
|
+
*.docx
|
|
26
|
+
*.pse
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
name: Docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
pages: write
|
|
13
|
+
id-token: write
|
|
14
|
+
|
|
15
|
+
concurrency:
|
|
16
|
+
group: pages
|
|
17
|
+
cancel-in-progress: true
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
build:
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
steps:
|
|
23
|
+
- name: Checkout
|
|
24
|
+
uses: actions/checkout@v5
|
|
25
|
+
|
|
26
|
+
- name: Set up Python
|
|
27
|
+
uses: actions/setup-python@v6
|
|
28
|
+
with:
|
|
29
|
+
python-version: "3.12"
|
|
30
|
+
cache: pip
|
|
31
|
+
cache-dependency-path: |
|
|
32
|
+
docs/requirements.txt
|
|
33
|
+
pyproject.toml
|
|
34
|
+
|
|
35
|
+
- name: Install package and docs dependencies
|
|
36
|
+
run: |
|
|
37
|
+
python -m pip install --upgrade pip
|
|
38
|
+
python -m pip install -e .
|
|
39
|
+
python -m pip install -r docs/requirements.txt
|
|
40
|
+
|
|
41
|
+
- name: Build Sphinx HTML
|
|
42
|
+
run: sphinx-build -b html -W --keep-going docs docs/_build/html
|
|
43
|
+
|
|
44
|
+
- name: Upload Pages artifact
|
|
45
|
+
uses: actions/upload-pages-artifact@v4
|
|
46
|
+
with:
|
|
47
|
+
path: docs/_build/html
|
|
48
|
+
|
|
49
|
+
deploy:
|
|
50
|
+
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/API_and_docs')
|
|
51
|
+
needs: build
|
|
52
|
+
runs-on: ubuntu-latest
|
|
53
|
+
environment:
|
|
54
|
+
name: github-pages
|
|
55
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
56
|
+
steps:
|
|
57
|
+
- name: Deploy to GitHub Pages
|
|
58
|
+
id: deployment
|
|
59
|
+
uses: actions/deploy-pages@v4
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ["v*"]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
linux:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v5
|
|
16
|
+
- uses: actions/setup-python@v6
|
|
17
|
+
with:
|
|
18
|
+
python-version: ${{ matrix.python-version }}
|
|
19
|
+
- name: Build wheel (manylinux)
|
|
20
|
+
uses: PyO3/maturin-action@v1
|
|
21
|
+
with:
|
|
22
|
+
target: x86_64
|
|
23
|
+
manylinux: auto
|
|
24
|
+
args: --release --out dist --interpreter python${{ matrix.python-version }}
|
|
25
|
+
- uses: actions/upload-artifact@v4
|
|
26
|
+
with:
|
|
27
|
+
name: wheels-linux-${{ matrix.python-version }}
|
|
28
|
+
path: dist/*.whl
|
|
29
|
+
|
|
30
|
+
macos:
|
|
31
|
+
runs-on: macos-latest
|
|
32
|
+
strategy:
|
|
33
|
+
matrix:
|
|
34
|
+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/checkout@v5
|
|
37
|
+
- uses: actions/setup-python@v6
|
|
38
|
+
with:
|
|
39
|
+
python-version: ${{ matrix.python-version }}
|
|
40
|
+
- name: Build wheel (universal2, arm64 + x86_64)
|
|
41
|
+
uses: PyO3/maturin-action@v1
|
|
42
|
+
with:
|
|
43
|
+
target: universal2-apple-darwin
|
|
44
|
+
args: --release --out dist --interpreter python${{ matrix.python-version }}
|
|
45
|
+
- uses: actions/upload-artifact@v4
|
|
46
|
+
with:
|
|
47
|
+
name: wheels-macos-${{ matrix.python-version }}
|
|
48
|
+
path: dist/*.whl
|
|
49
|
+
|
|
50
|
+
windows:
|
|
51
|
+
runs-on: windows-latest
|
|
52
|
+
strategy:
|
|
53
|
+
matrix:
|
|
54
|
+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
55
|
+
steps:
|
|
56
|
+
- uses: actions/checkout@v5
|
|
57
|
+
- uses: actions/setup-python@v6
|
|
58
|
+
with:
|
|
59
|
+
python-version: ${{ matrix.python-version }}
|
|
60
|
+
- name: Build wheel
|
|
61
|
+
uses: PyO3/maturin-action@v1
|
|
62
|
+
with:
|
|
63
|
+
target: x64
|
|
64
|
+
args: --release --out dist --interpreter python
|
|
65
|
+
- uses: actions/upload-artifact@v4
|
|
66
|
+
with:
|
|
67
|
+
name: wheels-windows-${{ matrix.python-version }}
|
|
68
|
+
path: dist/*.whl
|
|
69
|
+
|
|
70
|
+
sdist:
|
|
71
|
+
runs-on: ubuntu-latest
|
|
72
|
+
steps:
|
|
73
|
+
- uses: actions/checkout@v5
|
|
74
|
+
- name: Build sdist
|
|
75
|
+
uses: PyO3/maturin-action@v1
|
|
76
|
+
with:
|
|
77
|
+
command: sdist
|
|
78
|
+
args: --out dist
|
|
79
|
+
- uses: actions/upload-artifact@v4
|
|
80
|
+
with:
|
|
81
|
+
name: sdist
|
|
82
|
+
path: dist/*.tar.gz
|
|
83
|
+
|
|
84
|
+
publish:
|
|
85
|
+
needs: [linux, macos, windows, sdist]
|
|
86
|
+
runs-on: ubuntu-latest
|
|
87
|
+
permissions:
|
|
88
|
+
id-token: write
|
|
89
|
+
steps:
|
|
90
|
+
- uses: actions/download-artifact@v4
|
|
91
|
+
with:
|
|
92
|
+
path: dist
|
|
93
|
+
merge-multiple: true
|
|
94
|
+
- name: Publish to PyPI
|
|
95
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
96
|
+
with:
|
|
97
|
+
packages-dir: dist
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
name: Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
test:
|
|
12
|
+
strategy:
|
|
13
|
+
fail-fast: false
|
|
14
|
+
matrix:
|
|
15
|
+
os: [ubuntu-latest, macos-latest]
|
|
16
|
+
python-version: ["3.10", "3.12"]
|
|
17
|
+
runs-on: ${{ matrix.os }}
|
|
18
|
+
steps:
|
|
19
|
+
- name: Checkout
|
|
20
|
+
uses: actions/checkout@v5
|
|
21
|
+
|
|
22
|
+
- name: Set up Python
|
|
23
|
+
uses: actions/setup-python@v6
|
|
24
|
+
with:
|
|
25
|
+
python-version: ${{ matrix.python-version }}
|
|
26
|
+
cache: pip
|
|
27
|
+
cache-dependency-path: pyproject.toml
|
|
28
|
+
|
|
29
|
+
- name: Set up Rust
|
|
30
|
+
uses: dtolnay/rust-toolchain@stable
|
|
31
|
+
|
|
32
|
+
- name: Cache Cargo registry
|
|
33
|
+
uses: actions/cache@v4
|
|
34
|
+
with:
|
|
35
|
+
path: |
|
|
36
|
+
~/.cargo/registry
|
|
37
|
+
~/.cargo/git
|
|
38
|
+
target
|
|
39
|
+
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
|
|
40
|
+
|
|
41
|
+
- name: Install phenoms (builds the Rust kernel)
|
|
42
|
+
run: |
|
|
43
|
+
python -m pip install --upgrade pip
|
|
44
|
+
python -m pip install -e ".[dev]"
|
|
45
|
+
|
|
46
|
+
- name: Run tests
|
|
47
|
+
run: pytest -q
|
phenoms-0.2.0/.gitignore
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Python bytecode / caches
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
|
|
5
|
+
# Test and tooling caches
|
|
6
|
+
.pytest_cache/
|
|
7
|
+
.coverage
|
|
8
|
+
.mypy_cache/
|
|
9
|
+
|
|
10
|
+
# Build / packaging artifacts
|
|
11
|
+
build/
|
|
12
|
+
dist/
|
|
13
|
+
*.egg-info/
|
|
14
|
+
pip-wheel-metadata/
|
|
15
|
+
|
|
16
|
+
# Rust extension build artifacts
|
|
17
|
+
target/
|
|
18
|
+
# Compiled extension from `maturin develop` (lands inside phenoms/ in editable installs)
|
|
19
|
+
phenoms/*.so
|
|
20
|
+
phenoms/*.pyd
|
|
21
|
+
phenoms/*.dll
|
|
22
|
+
|
|
23
|
+
# Conda build artifacts
|
|
24
|
+
condaenv.*.requirements.txt
|
|
25
|
+
|
|
26
|
+
# Local heavy test artifacts (not source code)
|
|
27
|
+
phenoms/test_data/
|
|
28
|
+
phenoms/test_outputs/
|
|
29
|
+
phenom_outputs/
|
|
30
|
+
|
|
31
|
+
# Paper / manuscript materials (local only)
|
|
32
|
+
paper_materials/
|
|
33
|
+
|
|
34
|
+
# Local heavy trajectory / topology data
|
|
35
|
+
plcg2_data/
|
|
36
|
+
|
|
37
|
+
# Non-package project/work-in-progress
|
|
38
|
+
H_bond_work/
|
|
39
|
+
old_scripts/
|
|
40
|
+
|
|
41
|
+
# Local editor/project state
|
|
42
|
+
.vscode/
|
|
43
|
+
.cursor/
|
|
44
|
+
|
|
45
|
+
# Local exported structures
|
|
46
|
+
protein_pdb_exports/
|
|
47
|
+
|
|
48
|
+
*.svg
|
|
49
|
+
*.cdxml
|
|
50
|
+
|
|
51
|
+
# Sphinx
|
|
52
|
+
docs/_build/
|
|
53
|
+
|
|
54
|
+
# Local scratch / publication notes
|
|
55
|
+
for_publication_*.txt
|
phenoms-0.2.0/Cargo.lock
ADDED
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "autocfg"
|
|
7
|
+
version = "1.5.0"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "cfg-if"
|
|
13
|
+
version = "1.0.4"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "crossbeam-deque"
|
|
19
|
+
version = "0.8.6"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
|
|
22
|
+
dependencies = [
|
|
23
|
+
"crossbeam-epoch",
|
|
24
|
+
"crossbeam-utils",
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
[[package]]
|
|
28
|
+
name = "crossbeam-epoch"
|
|
29
|
+
version = "0.9.18"
|
|
30
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
31
|
+
checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
|
|
32
|
+
dependencies = [
|
|
33
|
+
"crossbeam-utils",
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
[[package]]
|
|
37
|
+
name = "crossbeam-utils"
|
|
38
|
+
version = "0.8.21"
|
|
39
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
40
|
+
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
|
|
41
|
+
|
|
42
|
+
[[package]]
|
|
43
|
+
name = "either"
|
|
44
|
+
version = "1.15.0"
|
|
45
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
46
|
+
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
|
47
|
+
|
|
48
|
+
[[package]]
|
|
49
|
+
name = "heck"
|
|
50
|
+
version = "0.5.0"
|
|
51
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
52
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
53
|
+
|
|
54
|
+
[[package]]
|
|
55
|
+
name = "indoc"
|
|
56
|
+
version = "2.0.7"
|
|
57
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
58
|
+
checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
|
|
59
|
+
dependencies = [
|
|
60
|
+
"rustversion",
|
|
61
|
+
]
|
|
62
|
+
|
|
63
|
+
[[package]]
|
|
64
|
+
name = "libc"
|
|
65
|
+
version = "0.2.182"
|
|
66
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
67
|
+
checksum = "6800badb6cb2082ffd7b6a67e6125bb39f18782f793520caee8cb8846be06112"
|
|
68
|
+
|
|
69
|
+
[[package]]
|
|
70
|
+
name = "matrixmultiply"
|
|
71
|
+
version = "0.3.10"
|
|
72
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
73
|
+
checksum = "a06de3016e9fae57a36fd14dba131fccf49f74b40b7fbdb472f96e361ec71a08"
|
|
74
|
+
dependencies = [
|
|
75
|
+
"autocfg",
|
|
76
|
+
"rawpointer",
|
|
77
|
+
]
|
|
78
|
+
|
|
79
|
+
[[package]]
|
|
80
|
+
name = "memoffset"
|
|
81
|
+
version = "0.9.1"
|
|
82
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
83
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
84
|
+
dependencies = [
|
|
85
|
+
"autocfg",
|
|
86
|
+
]
|
|
87
|
+
|
|
88
|
+
[[package]]
|
|
89
|
+
name = "ndarray"
|
|
90
|
+
version = "0.16.1"
|
|
91
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
92
|
+
checksum = "882ed72dce9365842bf196bdeedf5055305f11fc8c03dee7bb0194a6cad34841"
|
|
93
|
+
dependencies = [
|
|
94
|
+
"matrixmultiply",
|
|
95
|
+
"num-complex",
|
|
96
|
+
"num-integer",
|
|
97
|
+
"num-traits",
|
|
98
|
+
"portable-atomic",
|
|
99
|
+
"portable-atomic-util",
|
|
100
|
+
"rawpointer",
|
|
101
|
+
]
|
|
102
|
+
|
|
103
|
+
[[package]]
|
|
104
|
+
name = "num-complex"
|
|
105
|
+
version = "0.4.6"
|
|
106
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
107
|
+
checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
|
|
108
|
+
dependencies = [
|
|
109
|
+
"num-traits",
|
|
110
|
+
]
|
|
111
|
+
|
|
112
|
+
[[package]]
|
|
113
|
+
name = "num-integer"
|
|
114
|
+
version = "0.1.46"
|
|
115
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
116
|
+
checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
|
|
117
|
+
dependencies = [
|
|
118
|
+
"num-traits",
|
|
119
|
+
]
|
|
120
|
+
|
|
121
|
+
[[package]]
|
|
122
|
+
name = "num-traits"
|
|
123
|
+
version = "0.2.19"
|
|
124
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
125
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
126
|
+
dependencies = [
|
|
127
|
+
"autocfg",
|
|
128
|
+
]
|
|
129
|
+
|
|
130
|
+
[[package]]
|
|
131
|
+
name = "numpy"
|
|
132
|
+
version = "0.22.1"
|
|
133
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
134
|
+
checksum = "edb929bc0da91a4d85ed6c0a84deaa53d411abfb387fc271124f91bf6b89f14e"
|
|
135
|
+
dependencies = [
|
|
136
|
+
"libc",
|
|
137
|
+
"ndarray",
|
|
138
|
+
"num-complex",
|
|
139
|
+
"num-integer",
|
|
140
|
+
"num-traits",
|
|
141
|
+
"pyo3",
|
|
142
|
+
"rustc-hash",
|
|
143
|
+
]
|
|
144
|
+
|
|
145
|
+
[[package]]
|
|
146
|
+
name = "once_cell"
|
|
147
|
+
version = "1.21.3"
|
|
148
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
149
|
+
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
|
|
150
|
+
|
|
151
|
+
[[package]]
|
|
152
|
+
name = "phenoms_hbond_rs"
|
|
153
|
+
version = "0.1.0"
|
|
154
|
+
dependencies = [
|
|
155
|
+
"ndarray",
|
|
156
|
+
"numpy",
|
|
157
|
+
"pyo3",
|
|
158
|
+
"rayon",
|
|
159
|
+
]
|
|
160
|
+
|
|
161
|
+
[[package]]
|
|
162
|
+
name = "portable-atomic"
|
|
163
|
+
version = "1.13.1"
|
|
164
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
165
|
+
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
|
166
|
+
|
|
167
|
+
[[package]]
|
|
168
|
+
name = "portable-atomic-util"
|
|
169
|
+
version = "0.2.5"
|
|
170
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
171
|
+
checksum = "7a9db96d7fa8782dd8c15ce32ffe8680bbd1e978a43bf51a34d39483540495f5"
|
|
172
|
+
dependencies = [
|
|
173
|
+
"portable-atomic",
|
|
174
|
+
]
|
|
175
|
+
|
|
176
|
+
[[package]]
|
|
177
|
+
name = "proc-macro2"
|
|
178
|
+
version = "1.0.106"
|
|
179
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
180
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
181
|
+
dependencies = [
|
|
182
|
+
"unicode-ident",
|
|
183
|
+
]
|
|
184
|
+
|
|
185
|
+
[[package]]
|
|
186
|
+
name = "pyo3"
|
|
187
|
+
version = "0.22.6"
|
|
188
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
189
|
+
checksum = "f402062616ab18202ae8319da13fa4279883a2b8a9d9f83f20dbade813ce1884"
|
|
190
|
+
dependencies = [
|
|
191
|
+
"cfg-if",
|
|
192
|
+
"indoc",
|
|
193
|
+
"libc",
|
|
194
|
+
"memoffset",
|
|
195
|
+
"once_cell",
|
|
196
|
+
"portable-atomic",
|
|
197
|
+
"pyo3-build-config",
|
|
198
|
+
"pyo3-ffi",
|
|
199
|
+
"pyo3-macros",
|
|
200
|
+
"unindent",
|
|
201
|
+
]
|
|
202
|
+
|
|
203
|
+
[[package]]
|
|
204
|
+
name = "pyo3-build-config"
|
|
205
|
+
version = "0.22.6"
|
|
206
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
207
|
+
checksum = "b14b5775b5ff446dd1056212d778012cbe8a0fbffd368029fd9e25b514479c38"
|
|
208
|
+
dependencies = [
|
|
209
|
+
"once_cell",
|
|
210
|
+
"target-lexicon",
|
|
211
|
+
]
|
|
212
|
+
|
|
213
|
+
[[package]]
|
|
214
|
+
name = "pyo3-ffi"
|
|
215
|
+
version = "0.22.6"
|
|
216
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
217
|
+
checksum = "9ab5bcf04a2cdcbb50c7d6105de943f543f9ed92af55818fd17b660390fc8636"
|
|
218
|
+
dependencies = [
|
|
219
|
+
"libc",
|
|
220
|
+
"pyo3-build-config",
|
|
221
|
+
]
|
|
222
|
+
|
|
223
|
+
[[package]]
|
|
224
|
+
name = "pyo3-macros"
|
|
225
|
+
version = "0.22.6"
|
|
226
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
227
|
+
checksum = "0fd24d897903a9e6d80b968368a34e1525aeb719d568dba8b3d4bfa5dc67d453"
|
|
228
|
+
dependencies = [
|
|
229
|
+
"proc-macro2",
|
|
230
|
+
"pyo3-macros-backend",
|
|
231
|
+
"quote",
|
|
232
|
+
"syn",
|
|
233
|
+
]
|
|
234
|
+
|
|
235
|
+
[[package]]
|
|
236
|
+
name = "pyo3-macros-backend"
|
|
237
|
+
version = "0.22.6"
|
|
238
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
239
|
+
checksum = "36c011a03ba1e50152b4b394b479826cad97e7a21eb52df179cd91ac411cbfbe"
|
|
240
|
+
dependencies = [
|
|
241
|
+
"heck",
|
|
242
|
+
"proc-macro2",
|
|
243
|
+
"pyo3-build-config",
|
|
244
|
+
"quote",
|
|
245
|
+
"syn",
|
|
246
|
+
]
|
|
247
|
+
|
|
248
|
+
[[package]]
|
|
249
|
+
name = "quote"
|
|
250
|
+
version = "1.0.44"
|
|
251
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
252
|
+
checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4"
|
|
253
|
+
dependencies = [
|
|
254
|
+
"proc-macro2",
|
|
255
|
+
]
|
|
256
|
+
|
|
257
|
+
[[package]]
|
|
258
|
+
name = "rawpointer"
|
|
259
|
+
version = "0.2.1"
|
|
260
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
261
|
+
checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
|
|
262
|
+
|
|
263
|
+
[[package]]
|
|
264
|
+
name = "rayon"
|
|
265
|
+
version = "1.12.0"
|
|
266
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
267
|
+
checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
|
|
268
|
+
dependencies = [
|
|
269
|
+
"either",
|
|
270
|
+
"rayon-core",
|
|
271
|
+
]
|
|
272
|
+
|
|
273
|
+
[[package]]
|
|
274
|
+
name = "rayon-core"
|
|
275
|
+
version = "1.13.0"
|
|
276
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
277
|
+
checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
|
|
278
|
+
dependencies = [
|
|
279
|
+
"crossbeam-deque",
|
|
280
|
+
"crossbeam-utils",
|
|
281
|
+
]
|
|
282
|
+
|
|
283
|
+
[[package]]
|
|
284
|
+
name = "rustc-hash"
|
|
285
|
+
version = "1.1.0"
|
|
286
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
287
|
+
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
|
288
|
+
|
|
289
|
+
[[package]]
|
|
290
|
+
name = "rustversion"
|
|
291
|
+
version = "1.0.22"
|
|
292
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
293
|
+
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|
294
|
+
|
|
295
|
+
[[package]]
|
|
296
|
+
name = "syn"
|
|
297
|
+
version = "2.0.117"
|
|
298
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
299
|
+
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
|
300
|
+
dependencies = [
|
|
301
|
+
"proc-macro2",
|
|
302
|
+
"quote",
|
|
303
|
+
"unicode-ident",
|
|
304
|
+
]
|
|
305
|
+
|
|
306
|
+
[[package]]
|
|
307
|
+
name = "target-lexicon"
|
|
308
|
+
version = "0.12.16"
|
|
309
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
310
|
+
checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
|
|
311
|
+
|
|
312
|
+
[[package]]
|
|
313
|
+
name = "unicode-ident"
|
|
314
|
+
version = "1.0.24"
|
|
315
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
316
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
317
|
+
|
|
318
|
+
[[package]]
|
|
319
|
+
name = "unindent"
|
|
320
|
+
version = "0.2.4"
|
|
321
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
322
|
+
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
phenoms-0.2.0/Cargo.toml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "phenoms_hbond_rs"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
description = "Baker-Hubbard H-bond detection in Rust for PHENOMS"
|
|
6
|
+
readme = "README.md"
|
|
7
|
+
|
|
8
|
+
[lib]
|
|
9
|
+
name = "phenoms_hbond_rs"
|
|
10
|
+
crate-type = ["cdylib"]
|
|
11
|
+
|
|
12
|
+
[dependencies]
|
|
13
|
+
pyo3 = { version = "0.22", features = ["extension-module"] }
|
|
14
|
+
numpy = "0.22"
|
|
15
|
+
ndarray = "0.16"
|
|
16
|
+
rayon = "1.10"
|
phenoms-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Brandon Novy
|
|
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.
|