Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a499695
Add: IMD-documentation and tutorial-example
amruthesht Oct 10, 2025
4829f19
Apply suggestions from code review
orbeckst Oct 16, 2025
5ca8a6d
DocUpdate: `imd.rst`
amruthesht Oct 17, 2025
a644d7d
Apply suggestions from code review
orbeckst Oct 30, 2025
12dcfc3
Update RTD (#432)
lilyminium Nov 3, 2025
dca68ae
Document AI policy for contribution docs
IAlibay Jul 13, 2026
b20b22d
update mass unit to CODATA 2010 value (#443)
orbeckst Sep 4, 2026
a333754
DOC: explain boolean frame masks in trajectory analysis
sici17 Oct 4, 2026
66f797e
DOC: add Francesco Siciliani to User Guide authors
sici17 Oct 4, 2026
fd0b298
Add CIF format
jpkrowe Oct 23, 2026
01e2fa4
Fixed minor typo in "Default values and attribute levels" table
jpkrowe Oct 23, 2026
92d5d89
Merge pull request #446 from sici17/docs-boolean-frame-masks
orbeckst Nov 15, 2026
158db4c
Merge pull request #447 from jpkrowe/fix-cif-format-description
orbeckst Nov 15, 2026
2d589bb
Merge pull request #448 from jpkrowe/fix-default-att-table
orbeckst Nov 15, 2026
362a8f0
update .readthedocs.yml (#450)
orbeckst Nov 16, 2026
29eee8d
rerun snapshots
lilyminium Nov 16, 2026
6053e1f
pin python
lilyminium Nov 16, 2026
f589e63
rm newline
lilyminium Nov 16, 2026
7fc11f2
rerun hes for numeric precision
lilyminium Nov 16, 2026
4cbe263
Updated black version in pre commit
jpkrowe Nov 16, 2026
120ab05
Merge pull request #452 from MDAnalysis/fix-examples
orbeckst Nov 17, 2026
a629249
Merge pull request #457 from jpkrowe/update-black
orbeckst Nov 17, 2026
efc278a
Pin numpy to pre 2.5 (#461)
jpkrowe Nov 18, 2026
64d98e1
Release notes for 2.10.0 and 2.11.0 (#459)
jpkrowe Nov 18, 2026
b3c9159
Bumped actions and added lockfile (#462)
jpkrowe Nov 19, 2026
7b9507c
Update readme (#460)
jpkrowe Nov 19, 2026
d9a6598
Merge branch 'imd-doc' of https://github.com/amruthesht/UserGuide int…
orbeckst Nov 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/actions.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This file is machine-generated by `gh actions-lock`.
# Do not edit by hand; run `gh actions-lock` to update.
# Docs: https://gh.io/actions-lockfile
version: 'v0.0.3'
workflows:
'.github/workflows/gh-ci-tests.yaml':
- 'actions/checkout@v7.0.1'
- 'mamba-org/setup-micromamba@v3.2.1'
'.github/workflows/gh-ci.yaml':
- 'actions/checkout@v7.0.1'
- 'mamba-org/setup-micromamba@v3.2.1'
'.github/workflows/pre-commit.yaml':
- 'actions/checkout@v7.0.1'
- 'actions/setup-python@v7.1.0'
- 'pre-commit/action@v3.0.1'
'.github/workflows/rtd.yaml':
- 'readthedocs/actions@v1.5'
dependencies:
'actions/cache@v4':
ref: 'v4'
commit: 'sha1-0057852bfaa89a56745cba8c7296529d2fc39830'
owner_id: 44036562
repo_id: 215566462
'actions/checkout@v3':
ref: 'v3'
commit: 'sha1-a37ce9120846195fa4ece8f58b268e6043cb2f26'
owner_id: 44036562
repo_id: 197814629
'actions/checkout@v7.0.1':
ref: 'v7.0.1'
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
owner_id: 44036562
repo_id: 197814629
'actions/github-script@v6':
ref: 'v6'
commit: 'sha1-d7906e4ad0b1822421a7e6a35d5ca353c962f410'
owner_id: 44036562
repo_id: 205262760
'actions/setup-python@v7.1.0':
ref: 'v7.1.0'
commit: 'sha1-6d4fd22b20465ccc0f7354476588e8df7c9ca0e0'
owner_id: 44036562
repo_id: 192625525
'mamba-org/setup-micromamba@v3.2.1':
ref: 'v3.2.1'
commit: 'sha1-f457c30a868e4760d3a6fcea5f25dc655b8edf39'
owner_id: 66118895
repo_id: 595118157
'pre-commit/action@v3.0.1':
ref: 'v3.0.1'
commit: 'sha1-2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd'
owner_id: 6943086
repo_id: 204199630
uses:
- 'actions/cache@v4'
'readthedocs/actions@v1.5':
ref: 'v1.5'
commit: 'sha1-b8bba1484329bda1a3abe986df7ebc80a8950333'
owner_id: 366329
repo_id: 517605621
uses:
- 'actions/checkout@v3'
- 'actions/github-script@v6'
4 changes: 2 additions & 2 deletions .github/workflows/gh-ci-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
name: "examples-tests"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v7.0.1

- name: Get current date
id: date
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"

- name: setup micromamba
uses: mamba-org/setup-micromamba@v1
uses: mamba-org/setup-micromamba@v3.2.1
with:
environment-file: environment.yml
environment-name: mda-user-guide
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ jobs:
MPLBACKEND: agg

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v7.0.1

- name: Get current date
id: date
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"

- name: setup micromamba
uses: mamba-org/setup-micromamba@v1
uses: mamba-org/setup-micromamba@v3.2.1
with:
environment-file: environment.yml
environment-name: mda-user-guide
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v3
- uses: actions/checkout@v7.0.1
- uses: actions/setup-python@v7.1.0
with:
python-version: '3.x'
python-version: '3.12'
- uses: pre-commit/action@v3.0.1
with:
extra_args: --all-files
2 changes: 1 addition & 1 deletion .github/workflows/rtd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
permissions:
pull-requests: write
steps:
- uses: readthedocs/actions/preview@v1
- uses: readthedocs/actions/preview@v1.5
with:
project-slug: "mdanalysisuserguide"
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
name: isort (python)
args: ["--profile", "black", "--line-length", "79"]
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 26.10.1
hooks:
- id: black
args: [--line-length=79]
Expand Down
12 changes: 2 additions & 10 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,10 @@ version: 2
sphinx:
configuration: doc/source/conf.py

# Build documentation with MkDocs
#mkdocs:
# configuration: mkdocs.yml

build:
os: "ubuntu-22.04"
os: "ubuntu-lts-latest"
tools:
python: "mambaforge-4.10"
python: "miniforge3-latest"

conda:
environment: environment.yml
formats:
- epub
- pdf
- htmlzip
78 changes: 63 additions & 15 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,59 @@
MDAnalysis User Guide
================================

|build| |binder|
|build|

|usergroup| |developergroup|

MDAnalysis is a Python toolkit to analyse molecular dynamics files and trajectories in `many popular formats`_. MDAnalysis can write most of these formats, too, together with atom selections for use in visualisation tools or other analysis programs. It provides a fast framework for complex analysis tasks, as well as flexible tooling to construct your own analyses.
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`_.

This repository contains the `user guide`_ for MDAnalysis. The user guide originated as a `project for Google Season of Docs 2019-2020`_.

The code in the user guide is released under the `GNU LGPL v2.1+` license, while text and images are released under the `CC BY-SA 4.0 DEED`_ license.
The code in the user guide is released under the `GNU LGPL v2.1+`_ license, while text and images are released under the `CC BY-SA 4.0 DEED`_ license.

.. _numfocus-fiscal-sponsor-attribution:

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.

.. image:: https://www.mdanalysis.org/public/images/numfocus-sponsored-small.png
:alt: NumFOCUS (Fiscally Sponsored Project)
:target: https://numfocus.org/project/mdanalysis
:align: center

This project is bound by a `Code of Conduct`_.

|powered_by_MDA|

If you use MDAnalysis_ in your project consider letting your users and the world know about it by displaying the MDAnalysis_ badge! `Embedding code`_ is available for different markups.

Contributing
============

If you would like to contribute documentation to the `user guide`_, please follow the instructions in the `contributing to the user guide`_ page. All contributions must comply with the MDAnalysis `AI policy`_.


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_.

.. Footnotes

Expand All @@ -21,19 +65,23 @@ The code in the user guide is released under the `GNU LGPL v2.1+` license, while
.. _MDAnalysis: https://www.mdanalysis.org
.. _LICENSE: https://github.com/MDAnalysis/mdanalysis/blob/develop/LICENSE
.. _`project for Google Season of Docs 2019-2020`: https://developers.google.com/season-of-docs/docs/2019/participants/project-mdanalysis

.. |usergroup| image:: https://img.shields.io/badge/Google%20Group-Users-lightgrey.svg
:alt: User Google Group
:target: http://users.mdanalysis.org

.. |developergroup| image:: https://img.shields.io/badge/Google%20Group-Developers-lightgrey.svg
:alt: Developer Google Group
:target: http://developers.mdanalysis.org
.. _NumFOCUS: https://numfocus.org/
.. _open governance model: https://www.mdanalysis.org/pages/governance/
.. _tax-deductible donation: https://numfocus.org/donate-to-mdanalysis
.. _`Code of Conduct`: https://www.mdanalysis.org/conduct/
.. _trajectory formats: https://docs.mdanalysis.org/documentation_pages/coordinates/init.html#id1
.. _topology formats: https://docs.mdanalysis.org/documentation_pages/topology/init.html#supported-topology-formats
.. _`AI policy`: https://github.com/MDAnalysis/mdanalysis/blob/develop/AI_POLICY.md
.. _`contributing to the user guide`: https://userguide.mdanalysis.org/stable/contributing_docs.html
.. _`10.1002/jcc.21787`: https://dx.doi.org/10.1002/jcc.21787
.. _`10.25080/Majora-629e541a-00e`: https://doi.org/10.25080/Majora-629e541a-00e
.. _references: https://docs.mdanalysis.org/documentation_pages/references.html
.. _Embedding code: https://www.mdanalysis.org/pages/citations/#powered-by-mdanalysis

.. |build| image:: https://github.com/MDAnalysis/UserGuide/actions/workflows/gh-ci.yaml/badge.svg
:alt: Build Status
:target: https://github.com/MDAnalysis/UserGuide/actions/workflows/gh-ci.yaml

.. |binder| image:: https://mybinder.org/badge_logo.svg
:alt: Binder
:target: https://mybinder.org/v2/gh/MDAnalysis/binder-env-userguide/main?urlpath=git-pull%3Frepo%3Dhttps%253A%252F%252Fgithub.com%252FMDAnalysis%252FUserGuide%26urlpath%3Dtree%252FUserGuide%252Fdoc%252Fsource%252Fexamples%26branch%3Dmaster
.. |powered_by_MDA| image:: https://img.shields.io/badge/Powered%20by-MDAnalysis-orange.svg?logoWidth=15&logo=data:image/x-icon;base64,AAABAAEAEBAAAAEAIAAoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJD+XwCY/fEAkf3uAJf97wGT/a+HfHaoiIWE7n9/f+6Hh4fvgICAjwAAAAAAAAAAAAAAAAAAAAA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AADoAAAA/wAAAP8AAAD/AAAAWgC3/2AAnv3eAJ/+dgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9AAAA/wAAAP8AAAD/AAAA/wAKDzEAnP3WAKn//wCS/OgAf/8MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIQAAANwAAADtAAAA7QAAAMAAABUMAJn9gwCe/e0Aj/2LAP//AQAAAAAAAAAA
:alt: Powered by MDAnalysis
:target: https://www.mdanalysis.org
2 changes: 2 additions & 0 deletions doc/source/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ Chronological list of authors
- Rubén Chaves
2025
- Yu-Yuan (Stuart) Yang
2026
- Francesco Siciliani
10 changes: 10 additions & 0 deletions doc/source/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,20 @@ Getting started with Git
setting up your SSH key, and configuring git. All these steps need to be completed before
you can work seamlessly between your local repository and GitHub.


Using AI-powered tools when contributing to MDAnalysis
======================================================

Open source projects often have different stances on how AI-powered tools (e.g. LLMs like Claude Code and ChatGPT)
can be used in contributions. MDAnalysis has an `AI policy`_ which defines what is permitted in this space. We ask
you to follow this policy, unless the specific sub-project you are contributing to has its own policy in place.


.. _`GitHub Discussions`:
https://github.com/MDAnalysis/mdanalysis/discussions
.. _`Code of Conduct`: https://www.mdanalysis.org/pages/conduct/
.. _`Issue Tracker`: https://github.com/MDAnalysis/mdanalysis/issues
.. _`MDAKits registry`: https://mdakits.mdanalysis.org/mdakits.html
.. _`MDAnalysis toolkit (MDAKit)`: https://mdakits.mdanalysis.org/about.html
.. _`Making an MDAKit`: https://mdakits.mdanalysis.org/makingakit.html
.. _`AI policy`: https://github.com/MDAnalysis/mdanalysis/blob/develop/AI_POLICY.md
32 changes: 32 additions & 0 deletions doc/source/examples/analysis/custom_trajectory_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,38 @@
"plt.xlabel('Frame')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"You can also select frames by passing a mask to the `frames` argument of the `run()` method. The mask contains one boolean value per frame; only frames marked `True` are analysed. The mask can be a NumPy boolean array or a Python list of booleans.\n",
"\n",
"For example, the following mask selects every second frame:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"mask = np.zeros(len(u.trajectory), dtype=bool)\n",
"mask[::2] = True\n",
"\n",
"rog_masked = AnalysisFromFunction(\n",
" radgyr, u.trajectory, protein, protein.masses,\n",
" total_mass=np.sum(protein.masses),\n",
")\n",
"rog_masked.run(frames=mask);"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"You can also pass an array of integers to `frames`; in that case, the array directly specifies the frame indices to analyse."
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
Loading
Loading