Skip to main content

Easy MD Analysis (EMDA) is a Python package created with the aim of providing an easy, yet powerful way to perform analysis of MD simulations.

Project description

Easy MD Analysis (EMDA)

GitHub License GitHub Tag PyPI - Version Powered by MDAnalysis

Description

Easy MD Analysis (EMDA) is a Python package based on MDAnalysis created with the aim of providing an easy, yet powerful way to perform analysis of MD simulations.

Table of contents

Features

Measurers

Several kinds of measures have been implemented in EMDA. Each of them has its own adder function and calculator function. Adder functions are the functions through which the user is able to request a certain kind of measure, while calculators are the engines that perform the measure when the run function is executed.

The available measures are listed below:

  • Distance: measures the distance between two sets of atoms
  • Angle: measures the angle between three atoms
  • Dihedral: measures the dihedral angle between four atoms
  • Planar angle: measures the angle between the closest planes to two sets of at least three atoms
  • Distance of bridging waters between two sets of atoms: identifies the closest water that is bridging between two sets of atoms and measures the distances to each
  • RMSD: measures the RMSD of a set of atoms (or the whole system) in reference of a frame of the structure
  • Contacts, both of a group of atoms and of a whole protein: identifies the contacts stablished by a selection in a given radius or the contacts of each residue.

Analysers

Some analysis can be performed from previous measures and they are stored as Analysis classes. In this case, each analysis has its own analyser. In opposition with measures, analysis are executed when requested. All the analysers functions' names start with the 'analyse_' string.

The available analyis are listed below:

  • value: analyses the value of a frame-wise measure (like distance, for instance) and returns frame-wise list containing True if the value is between the given values or False if it is not.
  • contacts_frequency: analyses the contacts and returns a dictionary containing the contacts that take place and how many times it takes place (in an absolute or relative number).
  • contacts_amounts: analyses the contacts and returns a frame-wise list containing how many contacts a selection (or a residue) stablishes in each frame.
  • NACs (near-attack conformations): analyses two or more analysed values (so a frame-wise boolean list) and returns the combination of all the values as a boolean frame-wise list.

Plotters

Some analysis or measures can be plotted. The plotters functions (named with the plot_ prefix) take the analysis or measures' result and returns a plot depending on the type of data.

The available plotters are listed below:

  • values: plots a float-containing frame-wise list. A similar method has been implemented inside the Measure class.
  • contacts_frequencies_diff: external plotter (so it is not a method of the EMDA class). It takes two contacts_frequency (analyser) results (or two lists of), compares them so a bar plot is returned containing the contacts that are the most different between the two sets.

Installation

Using pip

pip install EasyMDA

From source code

  1. Clone the GitHub repository in your local machine:
git clone https://github.com/MolBioMedUAB/EMDA
  1. Move to the repository direcctory:
cd EMDA
  1. Install using pip:
pip install .

How to use EMDA

EMDA has been design to perform analysis of MD trajectories in three steps: measure, analyse, and plot. Nonetheless, measuring is the most time-consuming task in an analysis. Thus, the code has been structured in such a way that all the requested measures are firstly added using the adders and the ran with the run method. On the other hand, analysis of the measures and plotting tasks are executed at the moment.

An example Jupyter notebook showing how to perform an analysis of a sample trajectory can be found here.

Future implementations

Future features that will be added in the future can be found in the TO-DO file

Changelog

Additions or fixed bugs in each version can be found in the CHANGELOG file.

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

EasyMDA-0.3.4.tar.gz (22.4 kB view hashes)

Uploaded Source

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