Skip to content

XTC, GRO and PDB data file do not correctly reflect triclinic basis. #3410

@Miro-Astore

Description

@Miro-Astore

Expected behavior

The example files XTC PDB and GRO files have triclinic bases (angles 60 60 90)
testsuite/MDAnalysisTests/data/adk_oplsaa.xtc
testsuite/MDAnalysisTests/data/adk_oplsaa.pdb
testsuite/MDAnalysisTests/data/adk_oplsaa.gro

Actual behavior

Visually they appear to have a monoclinic basis (angles 60 90 90) according to the definitions https://en.wikipedia.org/wiki/Triclinic_crystal_system
This caused me some confusion when working on #3409

Perhaps they should be changed to reflect their metadata?

Code to reproduce the behavior

import MDAnalysis as mda
from MDAnalysis.tests.datafiles import PSF, DCD,  GRO, PDB, TPR, XTC, TRR,  PRMncdf, NCDF

u = mda.Universe(GRO,XTC)
for ts in u.trajectory:
    print(u.dimensions)
u = mda.Universe(PDB)
print(u.dimensions)

....

Current version of MDAnalysis

  • Which version are you using? 2.0.0-dev0
  • Which version of Python (python -V)? 3.7
  • Which operating system? Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions