# Easy MD Analysis (EMDA)
![GitHub License](https://img.shields.io/github/license/MolBioMedUAB/EMDA)
![GitHub Tag](https://img.shields.io/github/v/tag/MolBioMedUAB/EMDA)
![PyPI - Version](https://img.shields.io/pypi/v/EasyMDA)
[![Powered by MDAnalysis](https://img.shields.io/badge/powered%20by-MDAnalysis-orange.svg?logoWidth=16&logo=data:image/x-icon;base64,AAABAAEAEBAAAAEAIAAoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJD+XwCY/fEAkf3uAJf97wGT/a+HfHaoiIWE7n9/f+6Hh4fvgICAjwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACT/yYAlP//AJ///wCg//8JjvOchXly1oaGhv+Ghob/j4+P/39/f3IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJH8aQCY/8wAkv2kfY+elJ6al/yVlZX7iIiI8H9/f7h/f38UAAAAAAAAAAAAAAAAAAAAAAAAAAB/f38egYF/noqAebF8gYaagnx3oFpUUtZpaWr/WFhY8zo6OmT///8BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICAn46Ojv+Hh4b/jouJ/4iGhfcAAADnAAAA/wAAAP8AAADIAAAAAwCj/zIAnf2VAJD/PAAAAAAAAAAAAAAAAICAgNGHh4f/gICA/4SEhP+Xl5f/AwMD/wAAAP8AAAD/AAAA/wAAAB8Aov9/ALr//wCS/Z0AAAAAAAAAAAAAAACBgYGOjo6O/4mJif+Pj4//iYmJ/wAAAOAAAAD+AAAA/wAAAP8AAABhAP7+FgCi/38Axf4fAAAAAAAAAAAAAAAAiIiID4GBgYKCgoKogoB+fYSEgZhgYGDZXl5e/m9vb/9ISEjpEBAQxw8AAFQAAAAAAAAANQAAADcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjo6Mb5iYmP+cnJz/jY2N95CQkO4pKSn/AAAA7gAAAP0AAAD7AAAAhgAAAAEAAAAAAAAAAACL/gsAkv2uAJX/QQAAAAB9fX3egoKC/4CAgP+NjY3/c3Nz+wAAAP8AAAD/AAAA/wAAAPUAAAAcAAAAAAAAAAAAnP4NAJL9rgCR/0YAAAAAfX19w4ODg/98fHz/i4uL/4qKivwAAAD/AAAA/wAAAP8AAAD1AAAAGwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALGxsVyqqqr/mpqa/6mpqf9KSUn/AAAA5QAAAPkAAAD5AAAAhQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADkUFBSuZ2dn/3V1df8uLi7bAAAATgBGfyQAAAA2AAAAMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB0AAADoAAAA/wAAAP8AAAD/AAAAWgC3/2AAnv3eAJ/+dgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9AAAA/wAAAP8AAAD/AAAA/wAKDzEAnP3WAKn//wCS/OgAf/8MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIQAAANwAAADtAAAA7QAAAMAAABUMAJn9gwCe/e0Aj/2LAP//AQAAAAAAAAAA)](https://www.mdanalysis.org)
## Description
Easy MD Analysis (EMDA) is a Python package based on [MDAnalysis](http://mdanalysis.org) created with the aim of providing an easy, yet powerful way to perform analysis of MD simulations.
## Table of contents
- [Features](#features)
- [Installation](#installation)
- [How to use EMDA](#how-to-use-emda)
- [Future implementations](#future-implementations)
- [Changelog](#changelog)
## 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
```bash
pip install EasyMDA
```
### From source code
1. Clone the GitHub repository in your local machine:
```bash
git clone https://github.com/MolBioMedUAB/EMDA
```
2. Move to the repository direcctory:
```bash
cd EMDA
```
3. Install using pip:
```bash
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](https://github.com/MolBioMedUAB/EMDA/blob/main/example/example.ipynb).
## Future implementations
Future features that will be added in the future can be found in the [TO-DO](https://github.com/MolBioMedUAB/EMDA/blob/main/TO-DO.md) file
## Changelog
Additions or fixed bugs in each version can be found in the [CHANGELOG](https://github.com/MolBioMedUAB/EMDA/blob/main/CHANGELOG.md) file.
Raw data
{
"_id": null,
"home_page": "https://github.com/MolBioMedUAB/EMDA",
"name": "EasyMDA",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "biochemistry,simulations,MDAnalysis,molecular dynamics",
"author": "Miquel Canyelles Ni\u00f1o",
"author_email": "mcanyellesnino@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/68/ea/f9f301e311a21f7163beee303166a1226a8b6cf82c8d9605e9c07e8ad756/EasyMDA-0.3.4.tar.gz",
"platform": null,
"description": "# Easy MD Analysis (EMDA)\n![GitHub License](https://img.shields.io/github/license/MolBioMedUAB/EMDA)\n![GitHub Tag](https://img.shields.io/github/v/tag/MolBioMedUAB/EMDA)\n![PyPI - Version](https://img.shields.io/pypi/v/EasyMDA)\n[![Powered by MDAnalysis](https://img.shields.io/badge/powered%20by-MDAnalysis-orange.svg?logoWidth=16&logo=data:image/x-icon;base64,AAABAAEAEBAAAAEAIAAoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJD+XwCY/fEAkf3uAJf97wGT/a+HfHaoiIWE7n9/f+6Hh4fvgICAjwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACT/yYAlP//AJ///wCg//8JjvOchXly1oaGhv+Ghob/j4+P/39/f3IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJH8aQCY/8wAkv2kfY+elJ6al/yVlZX7iIiI8H9/f7h/f38UAAAAAAAAAAAAAAAAAAAAAAAAAAB/f38egYF/noqAebF8gYaagnx3oFpUUtZpaWr/WFhY8zo6OmT///8BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICAn46Ojv+Hh4b/jouJ/4iGhfcAAADnAAAA/wAAAP8AAADIAAAAAwCj/zIAnf2VAJD/PAAAAAAAAAAAAAAAAICAgNGHh4f/gICA/4SEhP+Xl5f/AwMD/wAAAP8AAAD/AAAA/wAAAB8Aov9/ALr//wCS/Z0AAAAAAAAAAAAAAACBgYGOjo6O/4mJif+Pj4//iYmJ/wAAAOAAAAD+AAAA/wAAAP8AAABhAP7+FgCi/38Axf4fAAAAAAAAAAAAAAAAiIiID4GBgYKCgoKogoB+fYSEgZhgYGDZXl5e/m9vb/9ISEjpEBAQxw8AAFQAAAAAAAAANQAAADcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjo6Mb5iYmP+cnJz/jY2N95CQkO4pKSn/AAAA7gAAAP0AAAD7AAAAhgAAAAEAAAAAAAAAAACL/gsAkv2uAJX/QQAAAAB9fX3egoKC/4CAgP+NjY3/c3Nz+wAAAP8AAAD/AAAA/wAAAPUAAAAcAAAAAAAAAAAAnP4NAJL9rgCR/0YAAAAAfX19w4ODg/98fHz/i4uL/4qKivwAAAD/AAAA/wAAAP8AAAD1AAAAGwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALGxsVyqqqr/mpqa/6mpqf9KSUn/AAAA5QAAAPkAAAD5AAAAhQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADkUFBSuZ2dn/3V1df8uLi7bAAAATgBGfyQAAAA2AAAAMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB0AAADoAAAA/wAAAP8AAAD/AAAAWgC3/2AAnv3eAJ/+dgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9AAAA/wAAAP8AAAD/AAAA/wAKDzEAnP3WAKn//wCS/OgAf/8MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIQAAANwAAADtAAAA7QAAAMAAABUMAJn9gwCe/e0Aj/2LAP//AQAAAAAAAAAA)](https://www.mdanalysis.org)\n\n## Description\n\nEasy MD Analysis (EMDA) is a Python package based on [MDAnalysis](http://mdanalysis.org) created with the aim of providing an easy, yet powerful way to perform analysis of MD simulations. \n\n## Table of contents\n\n- [Features](#features)\n- [Installation](#installation)\n- [How to use EMDA](#how-to-use-emda)\n- [Future implementations](#future-implementations)\n- [Changelog](#changelog)\n\n## Features\n\n### Measurers\n\nSeveral 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. \n\nThe available measures are listed below:\n- __Distance__: measures the distance between two sets of atoms\n- __Angle__: measures the angle between three atoms\n- __Dihedral__: measures the dihedral angle between four atoms\n- __Planar angle__: measures the angle between the closest planes to two sets of at least three atoms\n- __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\n- __RMSD__: measures the RMSD of a set of atoms (or the whole system) in reference of a frame of the structure\n- __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.\n\n### Analysers\n\nSome 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.\n\nThe available analyis are listed below:\n- __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.\n- __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).\n- __contacts_amounts__: analyses the contacts and returns a frame-wise list containing how many contacts a selection (or a residue) stablishes in each frame.\n- __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.\n\n\n### Plotters\n\nSome 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.\n\nThe available plotters are listed below:\n- __values__: plots a float-containing frame-wise list. A similar method has been implemented inside the Measure class.\n- __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.\n\n## Installation\n\n### Using pip\n\n```bash\npip install EasyMDA\n```\n\n### From source code\n\n1. Clone the GitHub repository in your local machine:\n```bash\ngit clone https://github.com/MolBioMedUAB/EMDA\n```\n\n2. Move to the repository direcctory:\n```bash\ncd EMDA\n```\n\n3. Install using pip:\n```bash\npip install .\n```\n\n\n## How to use EMDA\n\nEMDA 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. \n\nAn example Jupyter notebook showing how to perform an analysis of a sample trajectory can be found [here](https://github.com/MolBioMedUAB/EMDA/blob/main/example/example.ipynb).\n\n\n\n## Future implementations\n\nFuture features that will be added in the future can be found in the [TO-DO](https://github.com/MolBioMedUAB/EMDA/blob/main/TO-DO.md) file\n\n\n## Changelog\n\nAdditions or fixed bugs in each version can be found in the [CHANGELOG](https://github.com/MolBioMedUAB/EMDA/blob/main/CHANGELOG.md) file.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "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.",
"version": "0.3.4",
"project_urls": {
"Download": "https://github.com/MolBioMedUAB/EMDA/archive/refs/tags/0.3.4.tar.gz",
"Homepage": "https://github.com/MolBioMedUAB/EMDA"
},
"split_keywords": [
"biochemistry",
"simulations",
"mdanalysis",
"molecular dynamics"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "68eaf9f301e311a21f7163beee303166a1226a8b6cf82c8d9605e9c07e8ad756",
"md5": "7c7333b27b1bfbf408a3aabbee8cfc5f",
"sha256": "c5924e54616853a8a78a06ce2832dbdebd5cabad90406e93669bf39cdfd395c6"
},
"downloads": -1,
"filename": "EasyMDA-0.3.4.tar.gz",
"has_sig": false,
"md5_digest": "7c7333b27b1bfbf408a3aabbee8cfc5f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 22391,
"upload_time": "2024-02-26T19:13:48",
"upload_time_iso_8601": "2024-02-26T19:13:48.952858Z",
"url": "https://files.pythonhosted.org/packages/68/ea/f9f301e311a21f7163beee303166a1226a8b6cf82c8d9605e9c07e8ad756/EasyMDA-0.3.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-26 19:13:48",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "MolBioMedUAB",
"github_project": "EMDA",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "easymda"
}