xnn.ffnn.models.amberlib.place_impropers#
- xnn.ffnn.models.amberlib.place_impropers(topology, type_cls, elements, improper_types)[source]#
Generate the improper list of a topology the AMBER way.
One improper per atom with exactly three bonded neighbours for which
match_improper()finds a pattern (centers without one get none).- Parameters:
topology (MolecularTopology) – The topology; its
residuesgive the template order used to order wildcard positions (atoms without one order by index).type_cls (sequence of str) – Per-atom out-of-plane class (the atom type for AMBER).
elements (sequence of str) – Per-atom element symbols.
improper_types (dict) – The library’s improper table.
- Returns:
(impropers, keys): the(i, j, k, l)quadruples (center third) and the matching library key of each.- Return type: