select displayed atoms via command line / transfer saved views

Dear ChimeraX users, I have to unrelated questions: 1) Is there a way to select displayed atoms via the command line? 2) Is it possible to transfer saved views from one session to another one? Many regards and thank you for reading, Helge

Dear Helge, For 1) yes, it would be command: select @@display ...the @@ part means atom attribute, and the name of the boolean (on or off) attribute is "display", see: <https://rbvi.ucsf.edu/chimerax/docs/user/commands/atomspec.html#attributes> <https://rbvi.ucsf.edu/chimerax/docs/user/attributes.html#atom> For 2) not exactly... if you haven't already made the new session, I would start with the original session with the desired view and then open the data you want in the new session, fit/superimpose them on the original session contents, and close the parts you don't want, and then save the new session. If you already made the new session with a lot of steps, however, it depends on whether you can use the same transformations as in the old session to generate that view. (Whether the data you want to have the same view as the original data is already in coordinates that superimpose with it.) You could try reporting the model transformations in the original session and then in the new session apply them. Reporting/applying transformations would be done with the "view matrix" command, see <https://rbvi.ucsf.edu/chimerax/docs/user/commands/view.html#matrix> ... or you could save to a "positions" file from the original session and apply that file in the new session: <https://rbvi.ucsf.edu/chimerax/docs/user/formats/positions.html> That wouldn't include the clipping plane position(s), which can be reported with "clip list" and applied with "clip" <https://rbvi.ucsf.edu/chimerax/docs/user/commands/clip.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 Nov 11, 2022, at 2:05 AM, Helge Paternoga via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Dear ChimeraX users,
I have to unrelated questions:
1) Is there a way to select displayed atoms via the command line?
2) Is it possible to transfer saved views from one session to another one?
Many regards and thank you for reading,
Helge

Dear ChimeraX users, I have an ever-developing number of self-defined aliases that I added to the startup options. I noticed that when I continue to work on older sessions, that were created with a by now outdated set of aliases, that the commands run from these alias are the old versions present at the time of session creation. Is there a way to always use the newest settings from the startup file in such a case? Manry regards, Helge

Dear Helge, I don't have an elegant solution, but faced with this problem I would (1) open old session (2) use "alias delete" to get rid of the old versions of the aliases (or "alias delete all" if you are OK with getting rid of all of them) <https://rbvi.ucsf.edu/chimerax/docs/user/commands/alias.html> (3) re-save session I understand that it is a pain to do this if you have a large repertoire of saved sessions, however. I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Department of Pharmaceutical Chemistry University of California, San Francisco
On Jan 18, 2023, at 2:50 AM, Helge Paternoga via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Dear ChimeraX users,
I have an ever-developing number of self-defined aliases that I added to the startup options.
I noticed that when I continue to work on older sessions, that were created with a by now outdated set of aliases, that the commands run from these alias are the old versions present at the time of session creation.
Is there a way to always use the newest settings from the startup file in such a case?
Manry regards,
Helge
participants (3)
-
Elaine Meng
-
Helge Paternoga
-
Helge Paternoga