mdanalysis
Skill6 starsChanged 9 months agoMITView on GitHub
Use when analyzing molecular dynamics trajectories with MDAnalysis. Covers Universe/AtomGroup, RMSD/RMSF/alignment, contacts and hydrogen bonds, dihedral/secondary structure/PCA analysis, and protein-ligand binding analysis.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- tondevrel/scientific-agent-skillstheir own version, first seen Feb 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- tondevrel/scientific-agent-skills★ 23same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- config/CLAUDE.mdCLAUDE.md
- active-learningSkill
- aseSkill
- binding-kineticsSkill
- chem-brainstormSkill
- coarse-grainedSkill
- daylight-theorySkill
- deepchemSkill
- dockingSkill
- fbddSkill
- force-fieldsSkill
- free-energySkill
- generative-designSkill
- homology-modelingSkill
- lit-rescueSkill
- mmpaSkill
- nextflowSkill
- openbabelSkill
- organic-mechanismsSkill
- pepflexSkill
- pharmacophoreSkill
- py3DmolSkill
- qm-dftSkill
- rdkitSkill
- synkitSkill
- torchdrugSkill
- uncertainty-qsarSkill
The file
Files
MDAnalysis — MD Trajectory Analysis
MDAnalysis 2.10.0 (2025). Core pattern: Universe (topology + trajectory) → AtomGroup (selection) → AnalysisBase.run() → .results.
When to Use This Skill
- Loading GROMACS, AMBER, NAMD, CHARMM, LAMMPS trajectories
- RMSD and RMSF calculations (protein stability, flexibility)
- Structural alignment across trajectory frames
- Hydrogen bond detection and lifetime analysis
- Protein-ligand contacts and binding site analysis
- Dihedral angles (Ramachandran plots, chi angles)
- Secondary structure (DSSP) assignment
- PCA of conformational dynamics
- Radial distribution functions (RDF), density maps
- Mean square displacement (MSD), diffusion coefficients
Quick Start
import MDAnalysis as mda
from MDAnalysis.analysis import rms, align
# Load topology + trajectory
u = mda.Universe('protein.prmtop', 'traj.dcd')
print(u) # <Universe with 45000 atoms>
print(len(u.trajectory)) # number of frames
# Select atoms
protein = u.select_atoms('protein')
ca = u.select_atoms('protein and name CA')
ligand = u.select_atoms('resname LIG')
# Iterate trajectory
for ts in u.trajectory:
print(ts.frame, ts.time, ca.positions.mean(axis=0))Router — What to Read
| Task | Reference |
| Universe, topology formats, selections, trajectory I/O, writing | references/universe-selections.md |
| RMSD, RMSF, alignment, radius of gyration | references/rmsd-rmsf-alignment.md |
| Hydrogen bonds, native contacts, binding residues | references/contacts-hbonds.md |
| Dihedrals, DSSP, PCA, RDF, density, MSD | references/structure-dynamics.md |
| Protein-ligand interaction analysis workflow | references/protein-ligand.md |
Key Modules
| Module | Import | Role |
rms | from MDAnalysis.analysis import rms | RMSD, RMSF |
align | from MDAnalysis.analysis import align | Structural alignment |
contacts | from MDAnalysis.analysis import contacts | Native contacts |
hydrogenbonds | from MDAnalysis.analysis.hydrogenbonds.hbond_analysis import HydrogenBondAnalysis | H-bonds |
dihedrals | from MDAnalysis.analysis.dihedrals import Ramachandran, Janin | Dihedral angles |
dssp | from MDAnalysis.analysis.dssp import DSSP | Secondary structure |
pca | from MDAnalysis.analysis.pca import PCA | Conformational PCA |
rdf | from MDAnalysis.analysis.rdf import InterRDF | Radial distribution |
density | from MDAnalysis.analysis.density import DensityAnalysis | Density maps |
msd | from MDAnalysis.analysis.msd import EinsteinMSD | Diffusion |
distances | from MDAnalysis.analysis.distances import dist, between | Distances |
Supported Formats
Topology: PSF, PRMTOP (Amber), GRO (GROMACS), PDB, MOL2, TPR, CRD, XML
Trajectory: DCD, XTC, TRR, NC (Amber), LAMMPSDUMP, H5MD, TNG, XYZ, PDBInstallation
pip install MDAnalysis MDAnalysisData
conda install -c conda-forge mdanalysis
# Verify
python -c "import MDAnalysis; print(MDAnalysis.__version__)"AnalysisBase Pattern (all analysis modules)
analysis = SomeAnalysis(atomgroup, **params)
analysis.run(start=0, stop=None, step=1, verbose=True)
results = analysis.results # dict-like Results objectRelated Skills
ase— ASE MD trajectories, structure building (complementary)scientific-skills:matplotlib— plotting RMSD, RMSF curvesscientific-skills:seaborn— heatmaps for contact mapsscientific-skills:plotly— interactive conformational space plotsscientific-skills:biopython— PDB fetching and sequence tools
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

