Skip to content

water dynamics without needing to order atom IDs #25

Description

@yjw0510

Is your feature request related to a problem?

The current (2.4.0-dev) version of MDAnalysis requires a user to order the atom IDs in advance.
The module (water dynamics) expects OHHOHH... ordered data as input.

Describe the solution you'd like

Probably the direct way to solve this is to reuse parts of hydrogen bonding code (mdanalysis/package/MDAnalysis/analysis/hydrogenbonds/hbond_analysis.py: line 362~367)
I think both functions (hydrogen bonding and water dynamics) are deeply related and, for that, it is also good for consistency.

    def guess_hydrogens(self,
                        select='all',
                        max_mass=1.1,
                        min_charge=0.3,
                        min_mass=0.9
                        ):

I am not sure but it might potentially degrade the computation performance significantly as there is an additional overhead of detecting oxygens and hydrogens. Thus, it might be more adequate to add this function as an optional parameter (i.e. guess_atom_type=bool).

Describe alternatives you've considered

I have no other idea

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions