Attribute files in ChimeraX
Dear ChimeraX users,
I'm trying to write a script that will export an attribute file in ChimeraX, (specifically the attribute sasa) I'm looking for a similar output to that of the attribute calculator function in Chimera (see image below) [cid:9fd01eec-1765-4ec9-8172-dec4315fa1d6] I'm currently trying to run the command below to export the attribute file: [cid:6e286ca4-a133-49bc-a34e-1a2f39bb7243] However, when I run this script, it produces the error: "No known data format for file suffix '.defattr'"
Any advice on how I can better go about producing this file or how I can modify my script to prevent this error would be greatly appreciated. Thank you for your time.
Kind regards, David
Hi David, I don't know python, but assuming you are using the "save" command correctly, you probably just need to get a newer version of ChimeraX. If you report problems, it's helpful to include version and platform.
From looking at the ChimeraX change log, you need to get ChimeraX version 1.2 daily build from Oct 19, 2020 or newer, since that's when the ability to write this file type was added: https://www.rbvi.ucsf.edu/trac/ChimeraX/wiki/ChangeLog
Attribute files: https://rbvi.ucsf.edu/chimerax/docs/user/formats/defattr.html
Saving an attribute file: https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html#attributes
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 3, 2021, at 7:32 AM, David Leeming david.leeming@student.manchester.ac.uk wrote:
Dear ChimeraX users,
I'm trying to write a script that will export an attribute file in ChimeraX, (specifically the attribute sasa) I'm looking for a similar output to that of the attribute calculator function in Chimera (see image below) <image.png> I'm currently trying to run the command below to export the attribute file: <image.png> However, when I run this script, it produces the error: "No known data format for file suffix '.defattr'"
Any advice on how I can better go about producing this file or how I can modify my script to prevent this error would be greatly appreciated. Thank you for your time.
Kind regards, David
Hi Elaine,
Thank you very much for the advice, I have updated to the daily build and that was causing the issue I was reporting. However, I'm still a little unsure about how to correctly use the save command [cid:3e12bc90-9dde-4fcc-9e68-7d330862fffb] I'm getting this error message when I attempt to run the code on the latest version, however, I'm not sure what's causing this error [cid:fe76fe7b-f46b-4a2d-b8c4-92d56438e97d] I'm basing my code on the guide featured below: (https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html)
[cid:8aefe194-26d9-4473-b53d-eaca0f281545] using the attribute-name from the help online again featured below (https://rbvi.ucsf.edu/chimerax/docs/user/attributes.html#attrnames)
[cid:564d48af-094a-4fd1-aa6b-9a1aa0d9a8d2]
Would it be possible to provide an example of a working command as I'm unsure what exactly is giving me this error? Apologies if I'm missing something obvious, thank you very much for continued your time and support.
Kind regards, David ________________________________ From: Elaine Meng meng@cgl.ucsf.edu Sent: 03 March 2021 16:47 To: David Leeming david.leeming@student.manchester.ac.uk Cc: chimerax-users@cgl.ucsf.edu chimerax-users@cgl.ucsf.edu Subject: Re: [chimerax-users] Attribute files in ChimeraX
Hi David, I don't know python, but assuming you are using the "save" command correctly, you probably just need to get a newer version of ChimeraX. If you report problems, it's helpful to include version and platform.
From looking at the ChimeraX change log, you need to get ChimeraX version 1.2 daily build from Oct 19, 2020 or newer, since that's when the ability to write this file type was added: https://www.rbvi.ucsf.edu/trac/ChimeraX/wiki/ChangeLog
Attribute files: https://rbvi.ucsf.edu/chimerax/docs/user/formats/defattr.html
Saving an attribute file: https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html#attributes
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 3, 2021, at 7:32 AM, David Leeming david.leeming@student.manchester.ac.uk wrote:
Dear ChimeraX users,
I'm trying to write a script that will export an attribute file in ChimeraX, (specifically the attribute sasa) I'm looking for a similar output to that of the attribute calculator function in Chimera (see image below) <image.png> I'm currently trying to run the command below to export the attribute file: <image.png> However, when I run this script, it produces the error: "No known data format for file suffix '.defattr'"
Any advice on how I can better go about producing this file or how I can modify my script to prevent this error would be greatly appreciated. Thank you for your time.
Kind regards, David
Hi David, The attribute name is just "area". It would be easier to answer this (and for other people to read) if you entered the commands you used as text instead of a bunch of images, but I will try to summarize here by typing them in myself.
You used:
save sasa.defattr attrName r:area=sasa [...other options...]
Instead should be something like:
save sasa.defattr attrName r:area [...other options...]
Command usage given here: https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html#attributes
The table of attributes shows not just the names but also how you would give their values to specify certain atoms. https://rbvi.ucsf.edu/chimerax/docs/user/attributes.html#residue
So the "area=sasa" that you see in the table is the name "area" plus how to specify residues with certain areas in a command, e.g. to select all residues with area values =10:
select ::area=10.0
Normally there wouldn't be residues with exactly the value of 10.0, so that wouldn't select anything. However, the "=" in that table is a shorthand for indicating that one could use other mathematical relationship symbols including less than (<), greater than (>) etc. as listed here: https://rbvi.ucsf.edu/chimerax/docs/user/commands/atomspec.html#attributes
For example, to select all residues with area values >10:
select ::area>10.0
I hope this helps, Elaine
On Mar 3, 2021, at 9:25 AM, David Leeming david.leeming@student.manchester.ac.uk wrote:
Hi Elaine,
Thank you very much for the advice, I have updated to the daily build and that was causing the issue I was reporting. However, I'm still a little unsure about how to correctly use the save command <image.png> I'm getting this error message when I attempt to run the code on the latest version, however, I'm not sure what's causing this error <image.png> I'm basing my code on the guide featured below: (https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html)
<image.png> using the attribute-name from the help online again featured below (https://rbvi.ucsf.edu/chimerax/docs/user/attributes.html#attrnames)
<image.png>
Would it be possible to provide an example of a working command as I'm unsure what exactly is giving me this error? Apologies if I'm missing something obvious, thank you very much for continued your time and support.
Kind regards, David From: Elaine Meng meng@cgl.ucsf.edu Sent: 03 March 2021 16:47 To: David Leeming david.leeming@student.manchester.ac.uk Cc: chimerax-users@cgl.ucsf.edu chimerax-users@cgl.ucsf.edu Subject: Re: [chimerax-users] Attribute files in ChimeraX
Hi David, I don't know python, but assuming you are using the "save" command correctly, you probably just need to get a newer version of ChimeraX. If you report problems, it's helpful to include version and platform.
From looking at the ChimeraX change log, you need to get ChimeraX version 1.2 daily build from Oct 19, 2020 or newer, since that's when the ability to write this file type was added: https://www.rbvi.ucsf.edu/trac/ChimeraX/wiki/ChangeLog
Attribute files: https://rbvi.ucsf.edu/chimerax/docs/user/formats/defattr.html
Saving an attribute file: https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html#attributes
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 3, 2021, at 7:32 AM, David Leeming david.leeming@student.manchester.ac.uk wrote:
Dear ChimeraX users,
I'm trying to write a script that will export an attribute file in ChimeraX, (specifically the attribute sasa) I'm looking for a similar output to that of the attribute calculator function in Chimera (see image below) <image.png> I'm currently trying to run the command below to export the attribute file: <image.png> However, when I run this script, it produces the error: "No known data format for file suffix '.defattr'"
Any advice on how I can better go about producing this file or how I can modify my script to prevent this error would be greatly appreciated. Thank you for your time.
Kind regards, David
Hi David, Just wanted to mention that it is important to be careful when you use "measure sasa" since it does not automatically exclude ligands, ions, solvent, etc. For example, if you want just the SASA of residues in the context of the protein only, not lumping other atoms into the same surface as the protein, be sure to include "protein" in the command, something like:
measure sasa #1 & protein
https://rbvi.ucsf.edu/chimerax/docs/user/commands/measure.html#sasa
Best, Elaine
On Mar 3, 2021, at 10:51 AM, Elaine Meng meng@cgl.ucsf.edu wrote:
Hi David, The attribute name is just "area". It would be easier to answer this (and for other people to read) if you entered the commands you used as text instead of a bunch of images, but I will try to summarize here by typing them in myself.
You used:
save sasa.defattr attrName r:area=sasa [...other options...]
Instead should be something like:
save sasa.defattr attrName r:area [...other options...]
Command usage given here: https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html#attributes
The table of attributes shows not just the names but also how you would give their values to specify certain atoms. https://rbvi.ucsf.edu/chimerax/docs/user/attributes.html#residue
So the "area=sasa" that you see in the table is the name "area" plus how to specify residues with certain areas in a command, e.g. to select all residues with area values =10:
select ::area=10.0
Normally there wouldn't be residues with exactly the value of 10.0, so that wouldn't select anything. However, the "=" in that table is a shorthand for indicating that one could use other mathematical relationship symbols including less than (<), greater than (>) etc. as listed here: https://rbvi.ucsf.edu/chimerax/docs/user/commands/atomspec.html#attributes
For example, to select all residues with area values >10:
select ::area>10.0
I hope this helps, Elaine
On Mar 3, 2021, at 9:25 AM, David Leeming david.leeming@student.manchester.ac.uk wrote:
Hi Elaine,
Thank you very much for the advice, I have updated to the daily build and that was causing the issue I was reporting. However, I'm still a little unsure about how to correctly use the save command <image.png> I'm getting this error message when I attempt to run the code on the latest version, however, I'm not sure what's causing this error <image.png> I'm basing my code on the guide featured below: (https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html)
<image.png> using the attribute-name from the help online again featured below (https://rbvi.ucsf.edu/chimerax/docs/user/attributes.html#attrnames)
<image.png>
Would it be possible to provide an example of a working command as I'm unsure what exactly is giving me this error? Apologies if I'm missing something obvious, thank you very much for continued your time and support.
Kind regards, David From: Elaine Meng meng@cgl.ucsf.edu Sent: 03 March 2021 16:47 To: David Leeming david.leeming@student.manchester.ac.uk Cc: chimerax-users@cgl.ucsf.edu chimerax-users@cgl.ucsf.edu Subject: Re: [chimerax-users] Attribute files in ChimeraX
Hi David, I don't know python, but assuming you are using the "save" command correctly, you probably just need to get a newer version of ChimeraX. If you report problems, it's helpful to include version and platform.
From looking at the ChimeraX change log, you need to get ChimeraX version 1.2 daily build from Oct 19, 2020 or newer, since that's when the ability to write this file type was added: https://www.rbvi.ucsf.edu/trac/ChimeraX/wiki/ChangeLog
Attribute files: https://rbvi.ucsf.edu/chimerax/docs/user/formats/defattr.html
Saving an attribute file: https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html#attributes
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 3, 2021, at 7:32 AM, David Leeming david.leeming@student.manchester.ac.uk wrote:
Dear ChimeraX users,
I'm trying to write a script that will export an attribute file in ChimeraX, (specifically the attribute sasa) I'm looking for a similar output to that of the attribute calculator function in Chimera (see image below) <image.png> I'm currently trying to run the command below to export the attribute file: <image.png> However, when I run this script, it produces the error: "No known data format for file suffix '.defattr'"
Any advice on how I can better go about producing this file or how I can modify my script to prevent this error would be greatly appreciated. Thank you for your time.
Kind regards, David
ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
Hi Elaine, Thank you very much for your assistance, it was really helpful. For any future queries I have, I'll make sure to format it as text for readability.
Kind regards, David ________________________________ From: Elaine Meng meng@cgl.ucsf.edu Sent: 03 March 2021 18:56 To: David Leeming david.leeming@student.manchester.ac.uk Cc: ChimeraX Users Help chimerax-users@cgl.ucsf.edu Subject: Re: [chimerax-users] Attribute files in ChimeraX
Hi David, Just wanted to mention that it is important to be careful when you use "measure sasa" since it does not automatically exclude ligands, ions, solvent, etc. For example, if you want just the SASA of residues in the context of the protein only, not lumping other atoms into the same surface as the protein, be sure to include "protein" in the command, something like:
measure sasa #1 & protein
https://rbvi.ucsf.edu/chimerax/docs/user/commands/measure.html#sasa
Best, Elaine
On Mar 3, 2021, at 10:51 AM, Elaine Meng meng@cgl.ucsf.edu wrote:
Hi David, The attribute name is just "area". It would be easier to answer this (and for other people to read) if you entered the commands you used as text instead of a bunch of images, but I will try to summarize here by typing them in myself.
You used:
save sasa.defattr attrName r:area=sasa [...other options...]
Instead should be something like:
save sasa.defattr attrName r:area [...other options...]
Command usage given here: https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html#attributes
The table of attributes shows not just the names but also how you would give their values to specify certain atoms. https://rbvi.ucsf.edu/chimerax/docs/user/attributes.html#residue
So the "area=sasa" that you see in the table is the name "area" plus how to specify residues with certain areas in a command, e.g. to select all residues with area values =10:
select ::area=10.0
Normally there wouldn't be residues with exactly the value of 10.0, so that wouldn't select anything. However, the "=" in that table is a shorthand for indicating that one could use other mathematical relationship symbols including less than (<), greater than (>) etc. as listed here: https://rbvi.ucsf.edu/chimerax/docs/user/commands/atomspec.html#attributes
For example, to select all residues with area values >10:
select ::area>10.0
I hope this helps, Elaine
On Mar 3, 2021, at 9:25 AM, David Leeming david.leeming@student.manchester.ac.uk wrote:
Hi Elaine,
Thank you very much for the advice, I have updated to the daily build and that was causing the issue I was reporting. However, I'm still a little unsure about how to correctly use the save command <image.png> I'm getting this error message when I attempt to run the code on the latest version, however, I'm not sure what's causing this error <image.png> I'm basing my code on the guide featured below: (https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html)
<image.png> using the attribute-name from the help online again featured below (https://rbvi.ucsf.edu/chimerax/docs/user/attributes.html#attrnames)
<image.png>
Would it be possible to provide an example of a working command as I'm unsure what exactly is giving me this error? Apologies if I'm missing something obvious, thank you very much for continued your time and support.
Kind regards, David From: Elaine Meng meng@cgl.ucsf.edu Sent: 03 March 2021 16:47 To: David Leeming david.leeming@student.manchester.ac.uk Cc: chimerax-users@cgl.ucsf.edu chimerax-users@cgl.ucsf.edu Subject: Re: [chimerax-users] Attribute files in ChimeraX
Hi David, I don't know python, but assuming you are using the "save" command correctly, you probably just need to get a newer version of ChimeraX. If you report problems, it's helpful to include version and platform.
From looking at the ChimeraX change log, you need to get ChimeraX version 1.2 daily build from Oct 19, 2020 or newer, since that's when the ability to write this file type was added: https://www.rbvi.ucsf.edu/trac/ChimeraX/wiki/ChangeLog
Attribute files: https://rbvi.ucsf.edu/chimerax/docs/user/formats/defattr.html
Saving an attribute file: https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html#attributes
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 3, 2021, at 7:32 AM, David Leeming david.leeming@student.manchester.ac.uk wrote:
Dear ChimeraX users,
I'm trying to write a script that will export an attribute file in ChimeraX, (specifically the attribute sasa) I'm looking for a similar output to that of the attribute calculator function in Chimera (see image below) <image.png> I'm currently trying to run the command below to export the attribute file: <image.png> However, when I run this script, it produces the error: "No known data format for file suffix '.defattr'"
Any advice on how I can better go about producing this file or how I can modify my script to prevent this error would be greatly appreciated. Thank you for your time.
Kind regards, David
ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
participants (2)
-
David Leeming
-
Elaine Meng