Adaptive sampling on MD trajectories via clustering and policy-driven seed selection
Project description
AdaptivePy
Adaptive sampling for molecular dynamics trajectories
Clustering-based state space partitioning and policy-driven seed selection for MD workflows.
Overview
AdaptivePy helps you identify under-sampled regions of conformational space and select seed frames for new simulations. It loads per-trajectory feature arrays, clusters frames, applies adaptive policies, and writes reproducible metadata and optional PDB structures.
Full documentation: https://hnadeem2.github.io/AdaptivePy/
| Input | Feature arrays (.npy / .pkl), optional coordinate trajectories |
| Clustering | KMeans, MiniBatch KMeans, regular-space |
| Policies | Least counts, random, FAST, MA-REAP (extensible) |
| Output | Seeds, cluster assignments, model, logs, optional PDBs |
Installation
pip install adaptivepy-sampling
For development:
git clone https://github.com/hnadeem2/AdaptivePy.git
cd AdaptivePy
pip install -e ".[dev,docs]"
Quick start
-
Prepare features — one file per trajectory, shape
(n_frames, n_features):features/ ├── traj_0.npy └── traj_1.pkl
-
Configure — edit
examples/config.yaml(or create your own). -
Run:
adaptivepy run examples/config.yaml
See the Getting Started guide for a complete walkthrough.
CLI
adaptivepy run config.yaml # run adaptive sampling
adaptivepy validate config.yaml # validate inputs only
adaptivepy list-policies # list available policies
Python API
from adaptivepy import run_adaptive_sampling
results = run_adaptive_sampling("config.yaml")
Documentation
| Guide | Description |
|---|---|
| Getting Started | First run in minutes |
| Configuration | YAML options and defaults |
| Feature Inputs | File formats and layout |
| Policies | Seed selection strategies |
| API Reference | Module documentation |
Contributors
- Hassan
License
MIT. See LICENSE for details.
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
Built Distribution
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 adaptivepy_sampling-0.2.0.tar.gz.
File metadata
- Download URL: adaptivepy_sampling-0.2.0.tar.gz
- Upload date:
- Size: 34.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1de2aec88b933732458f24e00be1bc7bd447643e44d698c50b16d2e42430efe8
|
|
| MD5 |
756c2cbcf4372193eecfeaf452fcca53
|
|
| BLAKE2b-256 |
441bbc91695cbb5d413e0bc78c51db97d3269e1606860a3a8f9b3c929fd7aa7b
|
Provenance
The following attestation bundles were made for adaptivepy_sampling-0.2.0.tar.gz:
Publisher:
publish.yml on hnadeem2/AdaptivePy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
adaptivepy_sampling-0.2.0.tar.gz -
Subject digest:
1de2aec88b933732458f24e00be1bc7bd447643e44d698c50b16d2e42430efe8 - Sigstore transparency entry: 1810610613
- Sigstore integration time:
-
Permalink:
hnadeem2/AdaptivePy@8a10dfd8b32f87f8028eba992551e67186453767 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/hnadeem2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8a10dfd8b32f87f8028eba992551e67186453767 -
Trigger Event:
release
-
Statement type:
File details
Details for the file adaptivepy_sampling-0.2.0-py3-none-any.whl.
File metadata
- Download URL: adaptivepy_sampling-0.2.0-py3-none-any.whl
- Upload date:
- Size: 41.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bdb0e1c4245a0a032bd5fdc4524866e4bcd5a76470ae424b937e9e2edc462ac
|
|
| MD5 |
f7f3d68ef1e91377d2a980f6b4d4c2a0
|
|
| BLAKE2b-256 |
e52e4dc72b1fa90eee8f77dce255b7afa33b8e8f6b8b39388914713493d25b35
|
Provenance
The following attestation bundles were made for adaptivepy_sampling-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on hnadeem2/AdaptivePy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
adaptivepy_sampling-0.2.0-py3-none-any.whl -
Subject digest:
9bdb0e1c4245a0a032bd5fdc4524866e4bcd5a76470ae424b937e9e2edc462ac - Sigstore transparency entry: 1810610618
- Sigstore integration time:
-
Permalink:
hnadeem2/AdaptivePy@8a10dfd8b32f87f8028eba992551e67186453767 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/hnadeem2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8a10dfd8b32f87f8028eba992551e67186453767 -
Trigger Event:
release
-
Statement type: