[chimerax-users] Saving multiple MRC with derivative names
Elaine Meng
meng at cgl.ucsf.edu
Mon Apr 18 13:59:21 PDT 2022
Hi Nebojsa,
We're glad you like ChimeraX!
It has the following handy mechanism for using command files (.cxc) to process multiple input files without having write python.
You can open a command file (.cxc file) using the "open" command with the "forEachFile" option:
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/open.html#forEachFile>
As explained in the link above, you can use "$file" in the commands in the file to name them differently according to the names of the different input files.
I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco
> On Apr 18, 2022, at 1:47 PM, Nebojsa Bogdanovic via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
>
> Hi,
> I was looking into the possibility of saving 5 mrc maps after batch z-flipping them. The commands would looks something like this:
>
> 1. cd /folder/with/maps
> 2. open *.mrc
> 3. volume flip #1-5
> 4. save [name]-zflip.mrc models #6-10
>
> Ideally, the script would save each new (flipped) map as a new .mrc with the suffix "-zflip" or whichever suffix user specifies in the script line 4. Is there such an option if it's implemented?
>
> Thank you for the awesome ChimeraX
>
> Best regards,
> Nebojša Bogdanović, Ph.D
> Department of Physiology and Biophysics,
> School of Medicine,
> Case Western Reserve University
More information about the ChimeraX-users
mailing list