An object-oriented toolkit to analyze molecular dynamics trajectories.
Project description
MDAnalysis is a Python library for the analysis of computer simulations of many-body systems at the molecular scale, spanning use cases from interactions of drugs with proteins to novel materials. It is widely used in the scientific community and is written by scientists for scientists.
It works with a wide range of popular simulation packages including Gromacs, Amber, NAMD, CHARMM, DL_Poly, HooMD, LAMMPS and many others — see the lists of supported trajectory formats and topology formats. MDAnalysis also includes widely used analysis algorithms in the MDAnalysis.analysis module.
The MDAnalysis project uses an open governance model and is fiscally sponsored by NumFOCUS. Consider making a tax-deductible donation to help the project pay for developer time, professional services, travel, workshops, and a variety of other needs.
This project is bound by a Code of Conduct.
If you use MDAnalysis in your project consider lettting your users and the world know about it by displaying the MDAnalysis badge! Embedding code is available for different markups.
Example analysis script
import MDAnalysis as mda
# Load simulation results with a single line
u = mda.Universe('topol.tpr','traj.trr')
# Select atoms
ag = u.select_atoms('name OH')
# Atom data made available as Numpy arrays
ag.positions
ag.velocities
ag.forces
# Iterate through trajectories
for ts in u.trajectory:
print(ag.center_of_mass())
Documentation
New users should read the Quickstart Guide and might want to look at our videos, in which core developers explain various aspects of MDAnalysis.
All users should read the User Guide.
Developers may also want to refer to the MDAnalysis API docs.
A growing number of tutorials are available that explain how to conduct RMSD calculations, structural alignment, distance and contact analysis, and many more.
Installation and availability
The latest release can be installed via pip or conda as described in the Installation Quick Start.
Source code is hosted in a git repository at https://github.com/MDAnalysis/mdanalysis and is available under the GNU General Public License, version 2 (see the file LICENSE).
Contributing
Please report bugs or enhancement requests through the Issue Tracker. Questions can also be asked on the user mailing list.
If you are a new developer who would like to start contributing to MDAnalysis get in touch on the developer mailing list. To set up a development environment and run the test suite read the developer guide.
Citation
When using MDAnalysis in published work, please cite the following two papers:
R. J. Gowers, M. Linke, J. Barnoud, T. J. E. Reddy, M. N. Melo, S. L. Seyler, D. L. Dotson, J. Domanski, S. Buchoux, I. M. Kenney, and O. Beckstein. MDAnalysis: A Python package for the rapid analysis of molecular dynamics simulations. In S. Benthall and S. Rostrup, editors, Proceedings of the 15th Python in Science Conference, pages 102-109, Austin, TX, 2016. SciPy. doi:10.25080/Majora-629e541a-00e
N. Michaud-Agrawal, E. J. Denning, T. B. Woolf, and O. Beckstein. MDAnalysis: A Toolkit for the Analysis of Molecular Dynamics Simulations. J. Comput. Chem. 32 (2011), 2319–2327. doi:10.1002/jcc.21787
For citations of included algorithms and sub-modules please see the references.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for MDAnalysis-2.4.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97587b4a48a702964814446520c4be761d9319997c103b6739df9c21581367c7 |
|
MD5 | 00a9a65c6f7cb50f6210338347847281 |
|
BLAKE2b-256 | 8b65c72765a2a6c73b8e03e114cf7e1661c28df3049adc42e8c75838b48ca083 |
Hashes for MDAnalysis-2.4.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b95d0fb6903d730575a2dac3cce726fdc18b12e39326686ac2b0e0e08c813b5 |
|
MD5 | c80ec6857ad6a399cafdc4a449ff220a |
|
BLAKE2b-256 | ee4020322a888419cc4aeaafa552c51c97c666a46e69c0d130dc5744ec04ae58 |
Hashes for MDAnalysis-2.4.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 579fba5fadd8632618d3e60452eb1b682447605900de79193ab92133d4f5aced |
|
MD5 | d73e06b295d2a923906337810c5a0bb1 |
|
BLAKE2b-256 | f1347eedce6129f71fa38fbf9d7fe3a8f366ddee3142afb07113598bf2b66d81 |
Hashes for MDAnalysis-2.4.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4541984e4e1413595c5ea69c3ba8d302890f581113db75cddf1e987bae72b87 |
|
MD5 | 0b5222132880eb6f65351d34184d2980 |
|
BLAKE2b-256 | 7374abcb7c91e47f350db0268c2058f079c937bb2f337d73b62ca3b8dea4642e |
Hashes for MDAnalysis-2.4.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbf0987b8fc767ec07e694b9b8d91a82b6ef81b334460241871a4bbbd871512a |
|
MD5 | 666157b502bd7161a51c0538694ed4e7 |
|
BLAKE2b-256 | 69c73dfe97658982390bbf93cf97f4aabb22025d2956bcd82b410e8c1831dfac |
Hashes for MDAnalysis-2.4.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1ea28219f39bb5acb3f71292421f2a4edcd6774178f751e6ef0b5c2552bbefe |
|
MD5 | 8b220f8991ff24b66f5bcae67633c439 |
|
BLAKE2b-256 | 39ae52d836a64c4094794580daf0d2692fa95d244be6321fa17e6d45fe35f621 |
Hashes for MDAnalysis-2.4.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e823216bb54b84ca2605ec00108644d1106cf2f351c537cdb379e83f07eed597 |
|
MD5 | e1b6b3892fe9f6a4c42be577dc63e706 |
|
BLAKE2b-256 | 8937ee29c83d622e3d55a2e2936d70cf3f3d74beaf28d5d5747385e2f9149ec8 |
Hashes for MDAnalysis-2.4.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a947b401d722337c0f05bf76f5131e37e44e7af62bbbaa3f93f00f7ccd5c71d9 |
|
MD5 | 24ae7ff203d21640d94ce6ded0ef44da |
|
BLAKE2b-256 | 19cc840974bc7109839cdef50cc049336cefb2a4acc44f68913eec5f0d4db458 |
Hashes for MDAnalysis-2.4.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2eb25fe13a188223d41c63470e19d55a88149a278de5b1eb49be0b81e70fc79 |
|
MD5 | 0a68558c188410f1b986a6ceb56cb4cb |
|
BLAKE2b-256 | 899a8e6cdd8c6da04926bbaea76877b9b17082b77db742a82074b2c6dfb85e99 |
Hashes for MDAnalysis-2.4.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b407456f2376489868a38edf7f0d8495b5c4c4076996de5b37442f3d6d12e340 |
|
MD5 | 1bc9169cc092e6989d53bf3ba9c72dce |
|
BLAKE2b-256 | 447f4e2ae6b5207f9782cfff053f3939433c62ef97e624bf8a71c07411d015e9 |
Hashes for MDAnalysis-2.4.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | caac5fe6f328280535168afebc584a758e564a840ff6d57e5bdeab7e4bceb7f3 |
|
MD5 | d87c2c098e2c94dd4ac7f5764b501284 |
|
BLAKE2b-256 | 83841fa84dc9f427b8200444b1921eaf6739d9309203ffe8851a0c0e9236acb7 |
Hashes for MDAnalysis-2.4.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 218f20193da0c2aa585c9182cf683f0be86d79133e53ead2377264e8c30feace |
|
MD5 | 700d002ac1bc3e4f3723584afab6a647 |
|
BLAKE2b-256 | 57eb504c7f70f9d10d54ce9227df3c71b128b7a15945c525ad1604a99e654973 |