Skip to main content

A python package to analyze Molecular Dynamics (MD) trajectories of amorphous Metal-Organic Frameworks (MOFs).

Project description

aMOF

aMOF is a python package consisting in a collection of tools to analyze Molecular Dynamics (MD) trajectories of amorphous Metal-Organic Frameworks (MOFs).

Functionalities

General-purpose MD toolbox

This package brings together a number of analyses that can be performed on every MD trajectory (not necessarily MOFs), heavily using both other python packages and non-python codes. It can compute the following properties:

  • Radial Distribution Functions (RDF), based on ASAP
  • Bond-Angle Distributions
  • Coordination numbers
  • Mean Squared Displacement (MSD)
  • Elastic constants from cell properties, and mechanical properties from elastic constants by calling ELATE
  • Pore analysis by wrapping Zeo++, reusing code from pysimm
  • Ring statistics by wrapping the RINGS code

The backend for manipulating trajectories is ASE, which are ASE trajectory objects.

Building units identification of aMOFs

A module called coordination allows the identification of the different building blocks of amorphous MOFs with an ad hoc approach per MOF system.

Only ZIF-4 is supported in the current release.

This allows the computation of rings statistics of the metal-ligand network.

This code is designed to be compatible with molsys, and can be used to generate input files in mfpx format.

The detailed algorithm for ZIF-4 is presented in the supporting information of the paper Challenges in Molecular Dynamics of Amorphous ZIFs using Reactive Force Fields.

Installation

Pre-requisites

To use the pore and ring modules, Zeo++ and the RINGS code need to be installed and accessible in the system path.

First download and follow the installation instructions on their respective websites (here for Zeo++ and here for RINGS).

Then for Zeo++, create the following variable on your system:

export ZEOpp_EXEC=/path/to/zeo++-0.3/network

For RINGS, ensure that the rings binary is in your path:

export PATH=$PATH:/path/to/rings/bin

Installation with pip

aMOF can be installed from PyPI:

pip install amof

or directly from source:

git clone https://github.com/coudertlab/amof.git
cd amof
pip install . 

Special care should be taken with Asap, which can only be installed if numpy is already installed and is thus not a default dependency. To solve this, either install asap independently (following their installation guide), or first install numpy then install amof with the rdf extra:

pip install numpy
pip install amof[rdf]

By default, graphical dependencies (used in the plot module) are not installed. To install them use the graphics extra:

pip install amof[graphics]

Documentation

A documentation is can easily be created with pdoc.

Simply run (with pdoc installed):

pdoc --html --output-dir path\to\docs path\to\amof

Usage

Examples

Examples analyses can be found in the examples folder of this repository.

Citation

If you use the python package in published results (paper, conference, etc.), please cite the first paper for which it was developed: Challenges in Molecular Dynamics of Amorphous ZIFs using Reactive Force Fields.

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

amof-1.0.0.tar.gz (57.0 kB view details)

Uploaded Source

Built Distribution

amof-1.0.0-py3-none-any.whl (66.4 kB view details)

Uploaded Python 3

File details

Details for the file amof-1.0.0.tar.gz.

File metadata

  • Download URL: amof-1.0.0.tar.gz
  • Upload date:
  • Size: 57.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.0

File hashes

Hashes for amof-1.0.0.tar.gz
Algorithm Hash digest
SHA256 916c972e1f79a6a73ac38bb1cca5cd10c3e0da8f27de68974d9796bf71cbb203
MD5 6c10ecb92b20704fe77693448f2fce48
BLAKE2b-256 63a3bd514f52f5d7837bda23834ee84bbf04fbb2957cc2adb98554c691d73b45

See more details on using hashes here.

File details

Details for the file amof-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: amof-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 66.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.0

File hashes

Hashes for amof-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22eca01aeb730d1e531d88e08ddc730b987dd32f93d89f85e620139f6d22a74d
MD5 224ce1086ac9ef345114816667544b73
BLAKE2b-256 99bc6b507f637794c824337d3560fa7eaa11c5b25d5b5e259a5bcfa8594dc8f1

See more details on using hashes here.

Supported by

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