Skip to main content

a flexible n-ary clustering package for all applications.

Project description

MDANCE (Molecular Dynamics Analysis with N-ary Clustering Ensembles) is a flexible n-ary clustering package that provides a set of tools for clustering Molecular Dynamics trajectories. The package is written in Python and an extension of the n-ary similarity framework. The package is designed to be modular and extensible, allowing for the addition of new clustering algorithms and similarity metrics.Research contained in this package was supported by the National Institute of General Medical Sciences of the National Institutes of Health under award number R35GM150620.

Menu

Installation

Installation

$ pip install mdance

To check for proper installation, run the following command:

>>> import mdance
>>> mdance.__version__

Background

Molecular Dynamics (MD) simulations are a powerful tool for studying the dynamics of biomolecules. However, the analysis of MD trajectories is challenging due to the large amount of data generated. Clustering is an unsupervised machine learning approach to group similar frames into clusters. The clustering results can be used to reveal the structure of the data, identify the most representative structures, and to study the dynamics of the system.

Clustering Algorithms

NANI

🪄NANI🪄the first installment of MDANCE

k-Means N-Ary Natural Initiation (NANI) is an algorithm for selecting initial centroids for k-Means clustering. NANI is an extension of the k-Means++ algorithm. NANI stratifies the data to high density region and perform diversity selection on top of the it to select the initial centroids. This is a deterministic algorithm that will always select the same initial centroids for the same dataset and improve on k-means++ by reducing the number of iterations required to converge and improve the clustering quality.

Example Usage:

>>> from mdance.cluster.nani import KmeansNANI
>>> data = np.load('data.npy')
>>> N = 4
>>> mod = KmeansNANI(data, n_clusters=N, metric='MSD', N_atoms=1)
>>> initiators = mod.initiate_kmeans()
>>> initiators = initiators[:N]
>>> kmeans = KMeans(N, init=initiators, n_init=1, random_state=None)
>>> kmeans.fit(data)

A tutorial is available for NANI here.

For more information on the NANI algorithm, please refer to the NANI paper.

Clustering Postprocessing

PRIME

 

🪄 Predict Protein Structure with Precision 🪄

Protein Retrieval via Integrative Molecular Ensembles (PRIME) is a novel algorithm that predicts the native structure of a protein from simulation or clustering data. These methods perfectly mapped all the structural motifs in the studied systems and required unprecedented linear scaling.

2k2e
Fig 1. Superposition of the most representative structures found with extended indices (yellow) and experimental native structures (blue) of 2k2e.

A tutorial is available for PRIME here.

For more information on the PRIME algorithm, please refer to the PRIME paper.

Collab or Contribute?!

Please! Don't hesitate to reach out!

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

mdance-0.2.8.tar.gz (39.0 MB view details)

Uploaded Source

Built Distribution

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

MDANCE-0.2.8-py3-none-any.whl (31.0 MB view details)

Uploaded Python 3

File details

Details for the file mdance-0.2.8.tar.gz.

File metadata

  • Download URL: mdance-0.2.8.tar.gz
  • Upload date:
  • Size: 39.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for mdance-0.2.8.tar.gz
Algorithm Hash digest
SHA256 731c9d23dacc4a46454e2db93994f4c598ee17ea92c1c076a61a133187ffdfcb
MD5 3544faa829faca4472146d13bffe7a8d
BLAKE2b-256 4d4ae960d17d582c04031a4be9428c752e29cfa309e71dd264d30e5cd39fe087

See more details on using hashes here.

File details

Details for the file MDANCE-0.2.8-py3-none-any.whl.

File metadata

  • Download URL: MDANCE-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 31.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for MDANCE-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e7c9622964adb0f239af9d8b599f905bdac5292a6997f641f87f7519c9179f23
MD5 f2ce3fbe91697aa8b7b66ba8a4d37761
BLAKE2b-256 831486803b79817b5e57f455fef82eae4655ae608a4bb26dd9b7da6dc061e1fe

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