
Thanks Eric! Sorry I forgot about this convenient option. I just tried the following to see if it saves multiple files, and it does: open 2gbp 2fw0 1plx 1plz save test/[NAME].pdb models #2-4 ...namely, I get files in ~/Desktop/test/ named 1plx.pdb 1plz.pdb 2fw0.pdb One weirdness, however, is that 1plx is an NMR model (ensemble of 80 structures, opened as 80 submodels) and this approach only saves one structure (the last one) in the PDB file. We should investigate that. I don't have that problem if I save 1plx without the [NAME] mechanism, however. Elaine
On Jun 26, 2023, at 11:09 AM, Eric Pettersen <pett@cgl.ucsf.edu> wrote:
Should probably also mention that this special feature is only available for PDB and mmCIF files.
—Eric
On Jun 26, 2023, at 11:07 AM, Eric Pettersen via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
On Jun 26, 2023, at 10:55 AM, Elaine Meng via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/open.html#fetch>
If by "multiple" you mean a huge number that is not practical to put in a single command, that is a different matter. Also, a single "save" command only saves one file and it does not have option to automatically figure out filename from model name.
This is not completely correct, in that if the “file name” you save contains the literal string “[NAME]” in it, then a file will be saved for each model (that was specified in the save command) and each file name will have the [NAME] part replaced with the model name.
--Eric
Eric Pettersen UCSF Computer Graphics Lab