The following commands are intended for supplying state information to a program that is controlling Chimera remotely via tools such as ReadStdin and RESTServer.
• listen mode what [ prefix prefix ] [ rest URL ]The listen command tells Chimera to start or stop generating notifications when certain events take place; the mode may be either start or stop, and what may be models or selection.• listmodels [ models model_specifier ] [ type model_type ] [ attribute attribute_name ]If what is models, then the events of interest are the addition or removal of a model. If mode is stop, then model addition and removal notification messages will no longer be generated. If mode is start, then notification messages will be generated. Each notification message is prefixed with prefix (default ModelChanged). Typical messages are:
ModelChanged: add model #0 ModelChanged: remove model #0If what is selection, then the event of interest is a change in selected items. If mode is stop, then selection notification messages will no longer be generated. If mode is start, then notification messages will be generated. Each message is prefixed with prefix (default SelectionChanged). A typical message is:
SelectionChanged: selection changedNormally, notification messages are sent to stdout. If URL is specified, then the messages are sent to the given URL with the message encoded as parameter chimeraNotification.
The listmodels command lists models and can report the values of a specified model attribute. Information is sent to the Reply Log. By default, all models are reported. If models is given, only models in the model_specifier are reported. If type is given, only models with the matching type are reported. Common types include molecule, msmsmodel surfacemodel and vrmlmodel. If attribute is given, the value for attribute_name is reported instead of the model name.• listchains [ models model_specifier ] [ attribute attribute_name ]
The listchains command lists chains and can report the values of a specified chain attribute. Information is sent to the Reply Log. By default, the chain attribute is reported for all chains in all molecules. If models is given, only chains in molecules that match the model_specifier are reported. If attribute is given, the value for attribute_name is reported instead of chain.• listphysicalchains [ models model_specifier ]
The listphysicalchains command reports the starting and ending sequence numbers for physically connected chains (no missing residues). Information is sent to the Reply Log. By default, all chains in all models are reported. If models is given, only chains in molecules that match the model_specifier are reported.• listresidues [ residues residue_specifier ] [ attribute attribute_name ]
The listresidues command lists residues and can report the values of a specified residue attribute. Information is sent to the Reply Log. By default, the type attribute for all residues in all molecules are reported. If models is given, only residues in molecules that match the model_specifier are reported. If attribute is given, the value for attribute_name is reported instead of type.
listatoms [ atoms atom_specifier ] [ attribute attribute_name ]
The listatoms command reports the value of an attribute of atoms. Information is sent to the Reply Log. By default, the idatmType attribute for all atoms in all molecules are reported. If models is given, only atoms in molecules that match the model_specifier are reported. If attribute is given, value for attribute_name is reported instead of idatmType.
listselection [ level granularity ] [ mode mode ] [ attribute attribute_name ]
listselection reports the value of an attribute for items that are currently selected. granularity determines which items are reported. Supported values are atom (default), residue, chain and molecule. mode may be either any (default) or all. if it is any, items with any selected subitems are reported; if it is all, only items whose subitems are all selected are reported. For example, with any a residues of five atoms will be reported if any of the five atoms are selected; with all, all five atoms must be selected for the residue to be reported. If attribute is given, value for attribute_name is reported instead of the default, which is idatmType for atoms, type for residues, chain for chains, and name for molecules.
sequence atom_specifier
sequence displays the sequence dialog for all chains containing the specified atoms.