Hi,

I would like to open multiple alphafold results that are stored in several folders, make an image, and save the image in those orignial folders.

I'm using the forEach command to open all the results and run the script to create an image,
and it works very well:

open script.cxc forEach /PATH*/ranked_*.pdb

script.cxc:
open reference-structure.pdb
match #1 to #2
color #*/B green
color #*/C red
color #*/D blue
view matrix camera 0.87509,0.019021,-0.48356,-124.35,0.48393,-0.035333,0.87439,694.49,-0.00044561,-0.99919,-0.040123,163.41



I'm only stuck at the saving process where I'd like to save an image ranked_*.png matching the original name and folder location:
save /PATH*/$file.png     doesn't work because the /PATH*/ is not recognized as an existing directory.
save /$PATH*/$file.png   gives the same error.

If I remove the /PATH/ it saves all the images on top of each other and it defeats the purpose.


Could you let me know how to save in the folder where the .pdb was read from?

Thank you
Vincent


--

Vincent Chaptal, PhD

Director of GdR APPICOM

Drug Resistance and Membrane Proteins Lab


MMSB -UMR5086

7 passage du Vercors 

69007 LYON

FRANCE

+33 4 37 65 29 01

http://www.appicom.cnrs.fr

http://mmsb.cnrs.fr/en/