Skip to main content

Fast algorithms for MD trajectories

Project description

Rust Simulation Tools

CI/CD PyPI version Python versions

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rust_simulation_tools-0.1.3.tar.gz (2.1 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

rust_simulation_tools-0.1.3-cp312-cp312-win_amd64.whl (187.3 kB view details)

Uploaded CPython 3.12Windows x86-64

rust_simulation_tools-0.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

rust_simulation_tools-0.1.3-cp312-cp312-macosx_11_0_arm64.whl (253.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

rust_simulation_tools-0.1.3-cp311-cp311-win_amd64.whl (185.8 kB view details)

Uploaded CPython 3.11Windows x86-64

rust_simulation_tools-0.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (301.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

rust_simulation_tools-0.1.3-cp311-cp311-macosx_11_0_arm64.whl (253.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

rust_simulation_tools-0.1.3-cp310-cp310-win_amd64.whl (185.8 kB view details)

Uploaded CPython 3.10Windows x86-64

rust_simulation_tools-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

rust_simulation_tools-0.1.3-cp310-cp310-macosx_11_0_arm64.whl (253.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

rust_simulation_tools-0.1.3-cp39-cp39-win_amd64.whl (186.1 kB view details)

Uploaded CPython 3.9Windows x86-64

rust_simulation_tools-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (301.3 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

rust_simulation_tools-0.1.3-cp39-cp39-macosx_11_0_arm64.whl (253.9 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file rust_simulation_tools-0.1.3.tar.gz.

File metadata

File hashes

Hashes for rust_simulation_tools-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1b08ee0ed042c41084bb628fb740b269b0e164ecce3b45a2882acbb7f136eeaa
MD5 affe1ad16c48e025ee2494bc9ac3cee6
BLAKE2b-256 b13dd2da960912beaf816e62a2d6d274e1e3734ef87e6c8a56c798131a9ea8f3

See more details on using hashes here.

File details

Details for the file rust_simulation_tools-0.1.3-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for rust_simulation_tools-0.1.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 982180167a37d03bc9f8d416c3825a16516bd8779a51056b14744b14f10266f5
MD5 bbd07d73d7b1d0bf11f5cead1dbb7d89
BLAKE2b-256 2a95ffeb61df36675a819f02d8370456737f6bfaf808182cc550ba358762bdc3

See more details on using hashes here.

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

File hashes

Hashes for rust_simulation_tools-0.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1140709914307d511e804f2b7c8f0d3d14253eb9715c1ea29ae15e5bc760a741
MD5 f01ff53a37e2876b8acf12c99a78f2e7
BLAKE2b-256 7917b20de06b0902634179a1b779237b244ee8973abd1304a9161f68225f845d

See more details on using hashes here.

File details

Details for the file rust_simulation_tools-0.1.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rust_simulation_tools-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e51e901739180c35b9aff2301b2c9212e1347b928e5486739c9ccc8a931e7545
MD5 d6891bcb562e20094706f1edf7ae8113
BLAKE2b-256 084ab90f7af4ca1a17ca99cb33724c4289ba912b42014308e3f5ca6767187f8b

See more details on using hashes here.

File details

Details for the file rust_simulation_tools-0.1.3-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for rust_simulation_tools-0.1.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2dc5194b63cf5753c30c97f2e157c2c32dea8046921189bdeeadb378b4c096e1
MD5 18971d1fceb9210936645fe7d8c6d6ed
BLAKE2b-256 a7c6f5a11ad907c4d5b787019d9eee93d36b4aaa3190cc92e0b5be1689ed8937

See more details on using hashes here.

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

File hashes

Hashes for rust_simulation_tools-0.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d3ea6c2b6fcd348baa17fa5ac8b213c9f435d84e4f78ff86fecea385b3c658cd
MD5 eacfc5bd9e984540edd8e9c183a7249c
BLAKE2b-256 6c2689f58f51fd9adf418c7bcbca211afad63c106b9b32d48d38c7bfc760b16e

See more details on using hashes here.

File details

Details for the file rust_simulation_tools-0.1.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rust_simulation_tools-0.1.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1fe25d1cdaa33609f3b4284a2bc08723325a23cc0ab480b84836463f8181b8e
MD5 a4ccec86a183358e4f6fc19d39df0f39
BLAKE2b-256 7d02cfe4c6e864431d0d492127b4e77f50c5fc19ee43b5b166e370e7dd63fa37

See more details on using hashes here.

File details

Details for the file rust_simulation_tools-0.1.3-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for rust_simulation_tools-0.1.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 683f5fc5ba7a4ed3f39539c60e6502e957e523afad65767c3cfa4fa6a910a5f5
MD5 5df54c159fd111afa3686041667a5d79
BLAKE2b-256 6e3ce3ed3dd40e8c47248a2f3021218976e55ec6ed5b3fc44626d56af83e7a51

See more details on using hashes here.

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

File hashes

Hashes for rust_simulation_tools-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e9ef3371aa7cafac27ce0a12f45fccc9b9e338debbb3af66d538e57d4d7ade7b
MD5 7163ce767f8002ad299d6dea9fe8ecb7
BLAKE2b-256 153fd9a604c26e279fce09ecab83fde4a3b8e49546aff6f443723e79bf82bb80

See more details on using hashes here.

File details

Details for the file rust_simulation_tools-0.1.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rust_simulation_tools-0.1.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 27181b543ae09088b1025929f0158ae43b8d203e8ea0191851aa99f88951b523
MD5 8dd8a19ac25aa7ca4a94cb296c669f65
BLAKE2b-256 6ef0c947b5e2549219b26eb759076afe333eebb942918c4fa4da0a75f55e0d97

See more details on using hashes here.

File details

Details for the file rust_simulation_tools-0.1.3-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for rust_simulation_tools-0.1.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e40be88f72721bab954e1204c8c1b315724a11670fff894e8af6c412a4e1e798
MD5 37877e84bfc67928bdfebb4b83542563
BLAKE2b-256 4cd64a79e57ac137c21be2ed16b783e4659a5dac56daef585831967e500bb902

See more details on using hashes here.

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

File hashes

Hashes for rust_simulation_tools-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6adb95148723a9535bd1f5d60233ca05913d79e667d1e437fe782a4b2ee63429
MD5 6b16302abf89da57cb22421d041e5352
BLAKE2b-256 66970838f5d31b0b15919ed1b247c525fc206d88007ab3db8d1f41c0a964dd68

See more details on using hashes here.

File details

Details for the file rust_simulation_tools-0.1.3-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rust_simulation_tools-0.1.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e677849b1eee1befd8e742b6b34c449ba24b59c317f8c52211342b2367d75ae2
MD5 4444edb729bd6ae983497c87693cbea7
BLAKE2b-256 adc280faa03281e08f5d1ff3ec4964a74527ada368fdad3c09abd1517d82f5ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page