ChimeraX docs icon

Command: rename

Usage:
rename  model-specnew-name ] [ id new-id ]

The command rename changes the name of the specified model(s) to new-name and/or changes model ID number to new-id (if a single model is specified and no other model already has new-id) or submodels of new-id (if multiple models are specified or new-id is already “taken”). The new-name should precede the id option if both are given, and if new-name includes spaces, it should be enclosed in quotes.

Note, however, that the model numbers of “overlay” models (2D labels and arrows, color keys) cannot be changed, and other types of models cannot be renumbered to make them submodels of an overlay model.

Model names and/or ID numbers can also be changed in the Model Panel by double-clicking and entering a new value. Model name and ID number can also be specified when a model is first opened, by using the name and id options of the open command, respectively.

See also: combine, renumber, changechains, name, display hierarchy

Examples:

rename #1 mutant4
rename #5 id #3
rename #8 "closed conformation" id #5
rename #1-10 id #11

The last example would give models #11.1, #11.2, ... #11.10, effectively grouping them as #11.


UCSF Resource for Biocomputing, Visualization, and Informatics / October 2023