molsysmt.element.group.terminal_capping.is_terminal_capping#

molsysmt.element.group.terminal_capping.is_terminal_capping(name)[source]#

Check whether a group name corresponds to any terminal capping residue.

Terminal cappings are protecting groups added to either the N- or C-terminus of a peptide chain (e.g. 'ACE', 'NME', 'NH2').

Parameters:

name (str) – Residue or group name as stored in the topology.

Returns:

True if name belongs to the combined set of known N- and C-terminal capping group names, False otherwise.

Return type:

bool

Notes

The recognised names are defined in molsysmt.element.group.terminal_capping.group_names, which is the union of n_terminal_capping_names and c_terminal_capping_names.

See also

molsysmt.element.group.terminal_capping.is_n_terminal_capping()

Check for N-terminal cappings specifically.

molsysmt.element.group.terminal_capping.is_c_terminal_capping()

Check for C-terminal cappings specifically.