Skip to main content

MDANSE Core package - Molecular Dynamics trajectory handling and analysis code

Project description

MDANSE

MDANSE Python Module

This is the module containing the command-line utilities and libraries of the Molecular Dynamics Analysis for Neutron Scattering Experiments (MDANSE) software package.

If you would like to use a graphical user interface, you will need to install also the MDANSE_GUI package.

Molecular Dynamics Analysis for Neutron Scattering Experiments

MDANSE is a Python application designed for computing neutron observables from molecular dynamics (MD) trajectories. The results can be directly compared with neutron scattering experiments, particularly inelastic and quasi-elastic neutron scattering spectroscopies.

To do this, it interfaces with a variety of MD simulation software such as CASTEP, VASP, DMOL, Gromacs, DL_POLY, CHARMM, LAMMPS, PBD, DFTB etc., and provides both a graphical user interface (GUI) and a command line interface.

This project is built on the development published previously:
G. Goret, B. Aoun, E. Pellegrini, "MDANSE: An Interactive Analysis Environment for Molecular Dynamics Simulations", J Chem Inf Model. 57(1):1-5 (2017).

Version information

This is the alpha release of MDANSE 2.0.0. It is the first release since MDANSE has been ported to Python 3. Please help us develop MDANSE by reporting any problems you experience when using the code. The preferred way of reporting problems is by adding them to the GitHub issue tracker.

Quick start: installation

We recommend that you install MDANSE in a Python virtual environment. You can create a virtual environment named mdanse_env by typing

python3 -m venv mdanse_env

To activate your virtual environment, type

source mdanse_env/bin/activate

in a bash console, or

mdanse_end/Scripts/activate.bat

if you are using cmd.exe on Windows.

While your virtual environment is active, you can install MDANSE:

pip install MDANSE

and see the basic information about its command line interface:

mdanse --help

If you experience problems with the installation, you may want to upgrade pip

pip install --upgrade pip

and try again.

Quick start: workflow

The typical workflow of MDANSE:

  1. Convert a trajectory from the file format generated by an MD simulation software into the MDANSE trajectory format,
  2. Load the converted trajectory into MDANSE,
  3. Perform an analysis,
  4. Check the results with the plotter.

The most complete user documentation of MDANSE can be found on our Read the Docs page.

Other information including example scripts can be found on the MDANSE website

What can MDANSE do?

Firstly, MDANSE can interface with MD simulation software. It does this by providing converters for different file formats into an .MDT file (HDF format), which is then used for all calculations. The following MD packages are supported:

  • CASTEP
  • CHARMM
  • CP2K
  • DCD
  • DFTB
  • Discover
  • DL_POLY
  • DMol
  • Forcite
  • Gromacs
  • LAMMPS
  • NAMD
  • VASP
  • XPLOR
  • ASE

The converted trajectory can then be loaded into MDANSE, where it can be visualised via the Molecular Viewer and animated. Various trajectory variables (positions, velocities, and forces) can also be plotted for each particle. Then, various properties can be calculated, which can be compared with neutron (or, for some analysis types, with X-ray) experimental data, or used as a prediction of results of a potential experiment. The following properties can be computed:

Dynamics
  • Angular correlation
  • Density of states
  • Mean Square Displacement
  • Position Autocorrelation Function
  • Velocity Autocorrelation Function
Scattering
  • Dynamic Coherent Structure Factor
  • Dynamic Incoherent Structure Factor
  • Elastic Incoherent Structure Factor
  • Gaussian Dynamic Incoherent Structure Factor
  • Neutron Dynamic Total Structure Factor
Structural
  • Area Per Molecule
  • Coordination Number
  • Density Profile
  • Eccentricity
  • Molecular Trace
  • Pair Distribution Function
  • Root Mean Square Deviation
  • Root Mean Square Fluctuation
  • Radius of Gyration
  • Solvent Accessible Surface
  • Static Structure Factor
  • Voronoi (volume per atom)
  • X-Ray Static Structure Factor
Thermodynamics
  • Density
  • Temperature

Each of these analyses can be controlled using a number of parameters. For example, the user can select a subset of trajectory frames or a subset of atoms on which to perform the calculation, or specified atoms can be substituted with different elements/isotopes. Finally, their results can be saved in an MDA file (HDF5 format), or a set of DAT files (text format), and those can then be plotted directly in MDANSE.

More detailed information on how MDANSE works, what it can do, and the science can all be found on our Read the Docs page.

Citing MDANSE

If you used MDANSE in your research, please cite the following paper:

MDANSE: An Interactive Analysis Environment for Molecular Dynamics Simulations. G. Goret, B. Aoun, E. Pellegrini. J Chem Inf Model. (2017) 57(1):1-5.

License

MDANSE is licensed under GPL-3.0. See LICENSE for more information.

Acknowledgements

MDANSE started as a fork of version 3 of the nMOLDYN program. nMOLDYN was originally developed by Gerald Kneller in 1995 and subsequently also by Konrad Hinsen, Tomasz Rog, Krzysztof Murzyn, Slawomir Stachura, and Eric Pellegrini. MDANSE includes most of the code of nMOLDYN3, and also code from the libraries MMTK, ScientificPython and MDTraj.

For more information see:

nMoldyn 3: Using task farming for a parallel spectroscopy-oriented analysis of molecular dynamics simulations. K. Hinsen, E. Pellegrini, S. Stachura, G.R. Kneller J. Comput. Chem. (2012) 33:2043-2048 [https://doi.org/10.1002/jcc.23035][https://doi.org/10.1002/jcc.23035].

We are grateful to all the people who have helped in some way or another to improve nMOLDYN and/or MDANSE along those years. Apart from the main developers mentioned above, we would like to acknowledge explicitly the contributions done in the past by Bachir Aoun, Vania Calandrini, Paolo Calligari, Gael Goret, Remi Perenon and Rastislav Turanyi.

The MDANSE project is supported by Ada Lovelace Centre, ISIS Neutron and Muon Source, Science and Technology Facilities Council, UKRI, and the Institut Laue-Langevin (Grenoble, France). Past financial support from the French Agence Nationale de la Recherche (ANR) through contracts No. ANR-2010-COSI-001-01 and ANR-06-CIS6-012-01, and the Horizon 2020 Framework Programme of the European Union under project number 654000 is also acknowledged.

Joining the project

MDANSE is currently maintained and developed by software developers from ISIS and ILL, but we are fully open to new collaborators who would like to contribute code, documentation, tutorials or usage examples. If you want to join the project contact:

Dr. Sanghamitra Mukhopadhyay (sanghamitra.mukhopadhyay@stfc.ac.uk)
ISIS Neutron and Muon Source
Rutherford Appleton Laboratory
Didcot, UK

Software Inquiries

For questions or contributions related to the software, please contact:

Dr. Maciej Bartkowiak (maciej.bartkowiak@stfc.ac.uk)
ISIS Neutron and Muon Source
Rutherford Appleton Laboratory
Didcot, UK

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

mdanse-2.0.0b1.tar.gz (15.4 MB view details)

Uploaded Source

Built Distributions

MDANSE-2.0.0b1-cp312-cp312-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.12 Windows x86-64

MDANSE-2.0.0b1-cp312-cp312-macosx_10_13_universal2.whl (1.8 MB view details)

Uploaded CPython 3.12 macOS 10.13+ universal2 (ARM64, x86-64)

MDANSE-2.0.0b1-cp311-cp311-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.11 Windows x86-64

MDANSE-2.0.0b1-cp311-cp311-macosx_12_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

MDANSE-2.0.0b1-cp311-cp311-macosx_10_9_universal2.whl (1.8 MB view details)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)

MDANSE-2.0.0b1-cp310-cp310-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.10 Windows x86-64

MDANSE-2.0.0b1-cp310-cp310-macosx_10_9_universal2.whl (1.8 MB view details)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)

MDANSE-2.0.0b1-cp39-cp39-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.9 Windows x86-64

MDANSE-2.0.0b1-cp39-cp39-macosx_10_9_universal2.whl (1.8 MB view details)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file mdanse-2.0.0b1.tar.gz.

File metadata

  • Download URL: mdanse-2.0.0b1.tar.gz
  • Upload date:
  • Size: 15.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for mdanse-2.0.0b1.tar.gz
Algorithm Hash digest
SHA256 69da5c46fdb8283cb36922dbc42bba7ed14b1e4ff987e95a1295f0d692f1463d
MD5 facad11a525a3a4be00f26fe2aa026ac
BLAKE2b-256 e9a2641873767d403fdcdbfbec81fcb1a0f1cd3f1db57cae196a1752fd3defb4

See more details on using hashes here.

File details

Details for the file MDANSE-2.0.0b1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for MDANSE-2.0.0b1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8c0a65b696d6483c807195745d7dff25fff01a44bf03c06b16edb85bf789b202
MD5 d54bd458a04da1f8a7cfd7ab27d11a2d
BLAKE2b-256 f493736dedb6eb7c0140c9954aba606102db7b98a8b4f52048b3efc325c5601e

See more details on using hashes here.

File details

Details for the file MDANSE-2.0.0b1-cp312-cp312-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for MDANSE-2.0.0b1-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 64fd1fd69373a54b72e9102699da30aa6283de8ccbc03087749e97ede2cbfe5e
MD5 3baf2d4310da967470e8f762180bc93b
BLAKE2b-256 100a6cd8a8e871653c6398ae8ee696c6ba7ec55f6a1022e916ff6e62111e3cc8

See more details on using hashes here.

File details

Details for the file MDANSE-2.0.0b1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for MDANSE-2.0.0b1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 377d5a3b65e88d8e9e3d3e04e402799000e4233a2600f00a6a7c5ed061609d12
MD5 b39d805e32fd73e31b88d9db0ddd3dd9
BLAKE2b-256 7dab714d590d4fbd0f7351db03124270d986fb056d000a01c020a2edab6b5bd1

See more details on using hashes here.

File details

Details for the file MDANSE-2.0.0b1-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for MDANSE-2.0.0b1-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 0b233bd2debaa91de082551f9b01dd00a2f5331214600e3b489a0f0ff56aee12
MD5 08961b7e0c0128fb3ce8b392212da663
BLAKE2b-256 0114c5688c1396dae07540b6a90ff721a91a759db8e142f1a0fb82d19e5073de

See more details on using hashes here.

File details

Details for the file MDANSE-2.0.0b1-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for MDANSE-2.0.0b1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7a2d5826096a1f3ed7f5dbc9eafeaddada672d92a712d4510d7073403f8fdce7
MD5 e0da592cb2f0910592096164afb1e0de
BLAKE2b-256 e0e5cece2230c886ee8d6563aac5a277cc6a1525583cc591fcb5ac8a7850dfed

See more details on using hashes here.

File details

Details for the file MDANSE-2.0.0b1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for MDANSE-2.0.0b1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9c851b2524ac35725ce7d5af9a0a95a58d6d75544a7dae4c2a608863d3465a54
MD5 b5985bc74e06acf57eae30de977e0df4
BLAKE2b-256 709adf200605cbfee627f547fd0ac520915233c481415f9bb870a44005cb4e9e

See more details on using hashes here.

File details

Details for the file MDANSE-2.0.0b1-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for MDANSE-2.0.0b1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d6f03285a7dfede16c7fde571359399587fe9a68bf3859bd94bb8d476ba2562f
MD5 c0ec176ebd3195dd72964a9402a1fdd9
BLAKE2b-256 f3b489679145bc5e226873a22dd28a2d769d7787a081fc82afb3365d635654f3

See more details on using hashes here.

File details

Details for the file MDANSE-2.0.0b1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: MDANSE-2.0.0b1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for MDANSE-2.0.0b1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 df4b9b760fbc53025646c4673a4791962de6445e28e3c42b55b286a586c5a1e6
MD5 a2a184d408b610b78bee861eb19446e3
BLAKE2b-256 ae060d6c6b112b04ec17a993a2bd45c8e3ac47359c2673b0178eebf251a13119

See more details on using hashes here.

File details

Details for the file MDANSE-2.0.0b1-cp39-cp39-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for MDANSE-2.0.0b1-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e98ba02dafab53a6b94006448c6e55a077e359bb762c2b18fb6573666a4efddc
MD5 dcacd5a715be08a495244d07d9dd5d95
BLAKE2b-256 d74191381e2ce07a2967498df009fa4d8a121f9851f8b42b7f86d1049be58321

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