Skip to content

Radius of Gyration needs wrap option #1760

@kain88-de

Description

@kain88-de

Expected behaviour

Calculating correct radius of gyration when protein is split on the periodic boundary and we set pbc=True

Actual behaviour

Neither with the pbc option set or without it do I get the correct radius of gyration. This is because to correctly handle the split of a protein on periodic boundaries we would need to recombine proteins that are split (unwrap them)

Example protein for which the correct value should be 2-4 nm.

Code to reproduce the behaviour

import MDAnalysis as mda

u = mda.Universe('protein.gro')
u.atoms.radius_of_gyration(pbc=True)

Currently version of MDAnalysis:

(run python -c "import MDAnalysis as mda; print(mda.__version__)")

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