[Chimera-users] editing session file

Olivier Bignucolo olivier.bignucolo at unil.ch
Tue Mar 2 08:33:23 PST 2021

Don't worry about this!

And thanks for the response. I will try it as soon as possible.


From: Elaine Meng <meng at cgl.ucsf.edu>
Sent: Tuesday, March 2, 2021 5:31:16 PM
To: Olivier Bignucolo
Cc: chimera-users at cgl.ucsf.edu BB
Subject: Re: [Chimera-users] editing session file

Oops, should be "Olivier" ... sorry for spelling your name wrong!


> On Mar 2, 2021, at 8:19 AM, Elaine Meng <meng at cgl.ucsf.edu> wrote:
> Hi Oliver,
> Sorry, there is no way simply to replace one atomic model in the session with another.  (It does not simply refer to a filename.)
> You can open the original session, then also open the new atomic model (e.g.proteinB.pdb), and then use the command "mcopy" to copy the settings of  the first model proteinA.pdb to the new one.  Then you can close the first model, and then save a new session.  However, the model number of proteinB.pdb in the session won't be the same as the model number of proteinA.pdb in the original session.
> The "mcopy" manual page includes examples:
> <https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/mcopy.html>
> I hope this helps,
> Elaine
> -----
> Elaine C. Meng, Ph.D.
> UCSF Chimera(X) team
> Department of Pharmaceutical Chemistry
> University of California, San Francisco
>> On Mar 2, 2021, at 6:55 AM, Olivier Bignucolo <olivier.bignucolo at unil.ch> wrote:
>> Dear Chimera-users,
>> I am new to Chimera.
>> I saved a session.py file that manages the appearance of, say, folder1/proteinA.pdb.
>> I would like to apply exactly the same formats, colors, etc... to proteinB.pdb located in folder2.
>> I edited session.py but was unable to find out how to do it. It seems that the python script does not contain any line like:
>> "open("filename","r") or anything similar.
>> How can I reuse session.py for a new pdb file?
>> Thanks
>> Olivier
> _______________________________________________
> Chimera-users mailing list: Chimera-users at cgl.ucsf.edu
> Manage subscription: https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20210302/cbf1c891/attachment.html>

More information about the Chimera-users mailing list