Skip to content

Add properties to MolpherMol and MolpherAtom #4

Description

@martin-sicho

It would be nice if users had the option to store some data with the instances of MolpherMol and MolpherAtom (like it is possible in RDKit or other libraries). It could work like so:

mol = MolpherMol("CCO")
mol.setProp("Name", "ethanol")
for idx, atom in enumerate(mol.atoms):
    atom.setProp("AtomID", mol.getProp("Name") + "." + str(idx))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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