Fast algorithms for MD trajectories
Project description
Rust Simulation Tools
Fast Kabsch alignment for MD trajectories using Rust.
Installation
pip install rust-simulation-tools
Features
- ⚡ Fast: Rust implementation with SIMD optimizations
- 🔧 Easy to use: Simple Python API compatible with MDAnalysis
- 🧪 Well tested: Comprehensive test suite with >80% coverage
- 🎯 Accurate: Numerically stable Kabsch algorithm
Usage
import MDAnalysis as mda
from rust_simulation_tools import kabsch_align
# Load trajectory
u = mda.Universe("topology.pdb", "trajectory.dcd")
# Select alignment atoms
align_selection = u.select_atoms("backbone")
align_indices = align_selection.indices.astype(np.uintp)
# Get coordinates
reference = u.atoms.positions.copy().astype(np.float64)
trajectory = np.array([ts.positions for ts in u.trajectory], dtype=np.float64)
# Align
aligned = kabsch_align(trajectory, reference, align_indices)
Development
# Clone repository
git clone https://github.com/msinclair-py/rust-simulation-tools.git
cd rust-simulation-tools
# Install development dependencies
pip install maturin pytest pytest-cov numpy
# Build and install in development mode
maturin develop --release
# Run tests
pytest test_kabsch.py -v --cov
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rust_simulation_tools-0.1.3.tar.gz.
File metadata
- Download URL: rust_simulation_tools-0.1.3.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b08ee0ed042c41084bb628fb740b269b0e164ecce3b45a2882acbb7f136eeaa
|
|
| MD5 |
affe1ad16c48e025ee2494bc9ac3cee6
|
|
| BLAKE2b-256 |
b13dd2da960912beaf816e62a2d6d274e1e3734ef87e6c8a56c798131a9ea8f3
|
File details
Details for the file rust_simulation_tools-0.1.3-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: rust_simulation_tools-0.1.3-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 187.3 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
982180167a37d03bc9f8d416c3825a16516bd8779a51056b14744b14f10266f5
|
|
| MD5 |
bbd07d73d7b1d0bf11f5cead1dbb7d89
|
|
| BLAKE2b-256 |
2a95ffeb61df36675a819f02d8370456737f6bfaf808182cc550ba358762bdc3
|
File details
Details for the file rust_simulation_tools-0.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rust_simulation_tools-0.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 300.8 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1140709914307d511e804f2b7c8f0d3d14253eb9715c1ea29ae15e5bc760a741
|
|
| MD5 |
f01ff53a37e2876b8acf12c99a78f2e7
|
|
| BLAKE2b-256 |
7917b20de06b0902634179a1b779237b244ee8973abd1304a9161f68225f845d
|
File details
Details for the file rust_simulation_tools-0.1.3-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: rust_simulation_tools-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 253.5 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e51e901739180c35b9aff2301b2c9212e1347b928e5486739c9ccc8a931e7545
|
|
| MD5 |
d6891bcb562e20094706f1edf7ae8113
|
|
| BLAKE2b-256 |
084ab90f7af4ca1a17ca99cb33724c4289ba912b42014308e3f5ca6767187f8b
|
File details
Details for the file rust_simulation_tools-0.1.3-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: rust_simulation_tools-0.1.3-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 185.8 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dc5194b63cf5753c30c97f2e157c2c32dea8046921189bdeeadb378b4c096e1
|
|
| MD5 |
18971d1fceb9210936645fe7d8c6d6ed
|
|
| BLAKE2b-256 |
a7c6f5a11ad907c4d5b787019d9eee93d36b4aaa3190cc92e0b5be1689ed8937
|
File details
Details for the file rust_simulation_tools-0.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rust_simulation_tools-0.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 301.0 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3ea6c2b6fcd348baa17fa5ac8b213c9f435d84e4f78ff86fecea385b3c658cd
|
|
| MD5 |
eacfc5bd9e984540edd8e9c183a7249c
|
|
| BLAKE2b-256 |
6c2689f58f51fd9adf418c7bcbca211afad63c106b9b32d48d38c7bfc760b16e
|
File details
Details for the file rust_simulation_tools-0.1.3-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: rust_simulation_tools-0.1.3-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 253.6 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1fe25d1cdaa33609f3b4284a2bc08723325a23cc0ab480b84836463f8181b8e
|
|
| MD5 |
a4ccec86a183358e4f6fc19d39df0f39
|
|
| BLAKE2b-256 |
7d02cfe4c6e864431d0d492127b4e77f50c5fc19ee43b5b166e370e7dd63fa37
|
File details
Details for the file rust_simulation_tools-0.1.3-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: rust_simulation_tools-0.1.3-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 185.8 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
683f5fc5ba7a4ed3f39539c60e6502e957e523afad65767c3cfa4fa6a910a5f5
|
|
| MD5 |
5df54c159fd111afa3686041667a5d79
|
|
| BLAKE2b-256 |
6e3ce3ed3dd40e8c47248a2f3021218976e55ec6ed5b3fc44626d56af83e7a51
|
File details
Details for the file rust_simulation_tools-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rust_simulation_tools-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 300.9 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9ef3371aa7cafac27ce0a12f45fccc9b9e338debbb3af66d538e57d4d7ade7b
|
|
| MD5 |
7163ce767f8002ad299d6dea9fe8ecb7
|
|
| BLAKE2b-256 |
153fd9a604c26e279fce09ecab83fde4a3b8e49546aff6f443723e79bf82bb80
|
File details
Details for the file rust_simulation_tools-0.1.3-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: rust_simulation_tools-0.1.3-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 253.5 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27181b543ae09088b1025929f0158ae43b8d203e8ea0191851aa99f88951b523
|
|
| MD5 |
8dd8a19ac25aa7ca4a94cb296c669f65
|
|
| BLAKE2b-256 |
6ef0c947b5e2549219b26eb759076afe333eebb942918c4fa4da0a75f55e0d97
|
File details
Details for the file rust_simulation_tools-0.1.3-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: rust_simulation_tools-0.1.3-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 186.1 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e40be88f72721bab954e1204c8c1b315724a11670fff894e8af6c412a4e1e798
|
|
| MD5 |
37877e84bfc67928bdfebb4b83542563
|
|
| BLAKE2b-256 |
4cd64a79e57ac137c21be2ed16b783e4659a5dac56daef585831967e500bb902
|
File details
Details for the file rust_simulation_tools-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rust_simulation_tools-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 301.3 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6adb95148723a9535bd1f5d60233ca05913d79e667d1e437fe782a4b2ee63429
|
|
| MD5 |
6b16302abf89da57cb22421d041e5352
|
|
| BLAKE2b-256 |
66970838f5d31b0b15919ed1b247c525fc206d88007ab3db8d1f41c0a964dd68
|
File details
Details for the file rust_simulation_tools-0.1.3-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: rust_simulation_tools-0.1.3-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 253.9 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e677849b1eee1befd8e742b6b34c449ba24b59c317f8c52211342b2367d75ae2
|
|
| MD5 |
4444edb729bd6ae983497c87693cbea7
|
|
| BLAKE2b-256 |
adc280faa03281e08f5d1ff3ec4964a74527ada368fdad3c09abd1517d82f5ed
|