Questions tagged [mdanalysis]

MDAnalysis is an object-oriented python toolkit to analyze molecular dynamics trajectories. It allows one to read molecular dynamics trajectories and access the atomic coordinates through NumPy arrays. This provides a flexible and relatively fast framework for complex analysis tasks. Fairly complete atom Selection Commands are implemented. Trajectories can also be manipulated and written out in a range of formats.

MDAnalysis is an object-oriented python toolkit to analyze molecular dynamics trajectories generated by CHARMM, Gromacs, Amber, NAMD, or LAMMPS; it also reads other formats. It can write most of these formats, too, together with atom selections for use in Gromacs, CHARMM, VMD and PyMol.

It allows one to read molecular dynamics trajectories and access the atomic coordinates through NumPy arrays. This provides a flexible and relatively fast framework for complex analysis tasks. Fairly complete atom Selection Commands are implemented. Trajectories can also be manipulated (for instance, fit to a reference structure) and written out in a range of formats.

37 questions
0
votes
1 answer

Adding residue IDs to a numpy array consisting of time series data of water coordinates

I got this script for generating time series data of water molecules, and I want to add one more header row to that generated matrix with residue IDs of water molecules. Could anybody help with with reworking this script? Thanks! import numpy as…
iqra khan
  • 45
  • 1
  • 6
0
votes
0 answers

Unexpected MemoryError in python3.x while doing analysis

I am computational chemist and use python codes (through jupyter notebook) to make analysis of my system. Today, while doing Principal Component Analysis and trying plot some results, it returns MemoryError. I try to find cause by googling, the…
0
votes
1 answer

Can I do PCA (using MDAnalysis in python3.x) with PDB file only?

I have maybe more technical question than code-related. I try to perform PCA (with MDAnalysis package) with only PDB file - this pdb file contain 100 aligned structures (which are, of course, same - it means same type and amount of atoms; it was…
0
votes
1 answer

How can I load an array generated by projecting a trajectory on its principal components in MDAnalysis?

I have an array, tpcs, of shape (150017, 5) generated from MDAnalysis.pca.transform(). I am trying to load this as a trajectory to visualize it. I tried: u = mda.Universe(trjpath+'md.gro', tpcs) which returns the error: ValueError …
0
votes
1 answer

MDAnalysis selects atoms from the PBC box but does not shift the coordinates

MDAnalysis distance selection commands like 'around' and 'sphzere' selects atoms from periodic image (I am using a rectangular box). universe.select_atoms("name OW and around 4 (resid 20 and name O2)") However, the coordinates of the atoms from…
mateuszb
  • 1,072
  • 13
  • 26
-1
votes
1 answer

NameError: name 'pbc' is not defined

Hello I am learning MDAnalysis through python-3.7. Would you please check my code and advise how to resolve the following error: Traceback (most recent call last): File…
-2
votes
1 answer

Data analysis - MD analysis Python

I am seeing this error, need help on this! warnings.warn("Failed to guess the mass for the following atom types: {}".format(atom_type)) Traceback (most recent call last): File "traj_residue-z.py", line 48, in…
1 2
3