Skip to main content

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.

Documentation PyPI Python


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 (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

  1. Prepare features — one file per trajectory, shape (n_frames, n_features):

    features/
    ├── traj_0.npy
    └── traj_1.pkl
    
  2. Configure — edit examples/config.yaml (or create your own).

  3. 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

License

MIT

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

adaptivepy_sampling-0.1.2.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

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

adaptivepy_sampling-0.1.2-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file adaptivepy_sampling-0.1.2.tar.gz.

File metadata

  • Download URL: adaptivepy_sampling-0.1.2.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for adaptivepy_sampling-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2a7f51b0c1b9a0bbcd7ff1eabaf59ba7085339d0da2b31ce3e4768e92d68ff74
MD5 3c8c59cedd8971e977ad9a77d6df1b31
BLAKE2b-256 3c6caedaa85651353ca8f445c8aea3d28c5fab01bd12be4746bf7982dc3ff9aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for adaptivepy_sampling-0.1.2.tar.gz:

Publisher: publish.yml on hnadeem2/AdaptivePy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file adaptivepy_sampling-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for adaptivepy_sampling-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7c03536761cc514b7b22e7d460171bf5bae61a26e6ff9cb36a9305cfc2b4ac57
MD5 0ffc83d8f7a03e91c820fef2b7120613
BLAKE2b-256 1c7bd60db88583c8e796d1b333de5f137aa277026c50d56b5371d0dc79af7b2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for adaptivepy_sampling-0.1.2-py3-none-any.whl:

Publisher: publish.yml on hnadeem2/AdaptivePy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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