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 beta release of MDANSE 2.0.0. 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
  • Current Correlation Function
  • van Hove function (self)
  • van Hove function (distinct)
Infrared
  • Dipole Autocorrelation Function
  • Infrared
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

You are welcome to use the issue tracker to submit ideas for extending the MDANSE code or to report problems you encountered. However, if you prefer to contact the MDANSE developers directly, you can send us a message:

MDANSE Help (MDANSE-help@stfc.ac.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.0b2.tar.gz (15.4 MB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

MDANSE-2.0.0b2-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.0b2-cp311-cp311-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 macOS 12.0+ ARM64

MDANSE-2.0.0b2-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.0b2-cp310-cp310-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.10 Windows x86-64

MDANSE-2.0.0b2-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.0b2-cp39-cp39-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.9 Windows x86-64

MDANSE-2.0.0b2-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.0b2.tar.gz.

File metadata

  • Download URL: mdanse-2.0.0b2.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.0b2.tar.gz
Algorithm Hash digest
SHA256 eaeb2b2716e2e72ed046006f60d428ef1059c1e1c77edbc0c912cc6c157ef296
MD5 4a3845cfc04ae92f818f82b53529b507
BLAKE2b-256 d3f3b0e2826e57c07da3ed60622a71bc42f97d8a83ae9bb2864cdf2a06df4a96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for MDANSE-2.0.0b2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 26597b2d0ab6fd7513526d90b2c6f072aaa26e5d10da5b735609f0a44f0bbf81
MD5 62cd001ee4bbbb9888187f092206050f
BLAKE2b-256 6f8a14bc7d242a31d7b951abf293e05db4254095de1037c1bde87e7e9298ef70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for MDANSE-2.0.0b2-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 a82a22451240388d0f753e93f59739a696d2d963fd6d415021ae9bcda548c33c
MD5 18dbd7de3256b48d242621dedf8d3289
BLAKE2b-256 370fc59a9afb8d4d4b909883c4f1085296c9f3eed2a8a0e391bf2123e212c4ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for MDANSE-2.0.0b2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2a61965ef02b484087d7d532f848376df4f3b389f90ce64c39a8629c3b37da40
MD5 2a55496e320df69f804941ee172a903d
BLAKE2b-256 aa6da2eb15e28089b457aab24f39bd22612c1d93c3dce4742dac270040974d0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for MDANSE-2.0.0b2-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 8e59947f3e61b217b50a77f5e87b6f3e8d5e381ed3e9193c8e967521ff9f9696
MD5 48e2e3122b8b7e7849bb1500c8c9ea02
BLAKE2b-256 19685a58abd3a1fac4259ad1319a4d2b7cd8977b0decde68498672aebf2ca958

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for MDANSE-2.0.0b2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5fcb0ce413f6221547623d44ddfad1956da4f005814c20555f17f064c2cff79f
MD5 bb4366396365c6bff872d895e40a1481
BLAKE2b-256 23f7356737b6a6422a92187a61ce1847867eb8045124d6ec87fcac2f23a6057f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for MDANSE-2.0.0b2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e5fc4900b4db476bc25590133ab1f7ec8bceb99aa1a1004f1e228374201f4191
MD5 c6c810792149c35c81031a71d9594071
BLAKE2b-256 7b4108ab5dad074163327c3ad3904f4afa06d025aeafc4237988e81298537333

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for MDANSE-2.0.0b2-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 68958f0b55989efe6532d221f8632d80ab19715e80a622fe276ff24ab8b32d57
MD5 2efb12ce04ac7d6e3735fdacc31fb4c8
BLAKE2b-256 322bbc81533616e37b5112227791f82cd7da085c4f5a3529722d744ad2893cd3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: MDANSE-2.0.0b2-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.0b2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ce463335453a70f1ebf75f8ec3a0137d8a1960f00813588806b0766c940121ae
MD5 7b7aeb2480abc5e53df13e1409917e54
BLAKE2b-256 777e45638d1a79674022752930d9f6993e2a2698ac450c440a847eead1713a7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for MDANSE-2.0.0b2-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1cb1192aebaaffa1b7574dcc0c23343a1157893632dab9a1a38a0b81eca29b6f
MD5 c2de6af33de94b55255768ea9dc64d03
BLAKE2b-256 21516cba586f32a7843903e71df661afa88c1d6a56ca33c2695ec56f1c8d4d02

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