Residue class

class chemfiles.Residue(name, resid=None)

A Residue is a group of atoms belonging to the same logical unit. They can be small molecules, amino-acids in a protein, monomers in polymers, etc.

Create a new Residue from a name and optionally a residue id resid.

property id

Get the Residue index in the initial topology.

list_properties()

Get the name of all properties in this residue.

property name

Get the name of this Residue.

properties_count()

Get the number of properties in this residue.