<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Elaine, </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you very much for your assistance, it was really helpful. </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
For any future queries I have, I'll make sure to format it as text for readability. </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Kind regards, </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
David</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Elaine Meng <meng@cgl.ucsf.edu><br>
<b>Sent:</b> 03 March 2021 18:56<br>
<b>To:</b> David Leeming <david.leeming@student.manchester.ac.uk><br>
<b>Cc:</b> ChimeraX Users Help <chimerax-users@cgl.ucsf.edu><br>
<b>Subject:</b> Re: [chimerax-users] Attribute files in ChimeraX</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi David,<br>
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:<br>
<br>
measure sasa  #1 & protein<br>
<br>
<<a href="https://rbvi.ucsf.edu/chimerax/docs/user/commands/measure.html#sasa">https://rbvi.ucsf.edu/chimerax/docs/user/commands/measure.html#sasa</a>><br>
<br>
Best,<br>
Elaine<br>
<br>
> On Mar 3, 2021, at 10:51 AM, Elaine Meng <meng@cgl.ucsf.edu> wrote:<br>
> <br>
> Hi David,<br>
> 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.<br>
> <br>
> You used:<br>
> <br>
> save sasa.defattr attrName r:area=sasa [...other options...]<br>
> <br>
> Instead should be something like:<br>
> <br>
> save sasa.defattr attrName r:area [...other options...]<br>
> <br>
> Command usage given here:<br>
> <<a href="https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html#attributes">https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html#attributes</a>><br>
> <br>
> The table of attributes shows not just the names but also how you would give their values to specify certain atoms.<br>
> <<a href="https://rbvi.ucsf.edu/chimerax/docs/user/attributes.html#residue">https://rbvi.ucsf.edu/chimerax/docs/user/attributes.html#residue</a>><br>
> <br>
> 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:<br>
> <br>
> select ::area=10.0<br>
> <br>
> 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:<br>
> <<a href="https://rbvi.ucsf.edu/chimerax/docs/user/commands/atomspec.html#attributes">https://rbvi.ucsf.edu/chimerax/docs/user/commands/atomspec.html#attributes</a>><br>
> <br>
> For example, to select all residues with area values >10:<br>
> <br>
> select ::area>10.0<br>
> <br>
> I hope this helps,<br>
> Elaine<br>
> <br>
>> On Mar 3, 2021, at 9:25 AM, David Leeming <david.leeming@student.manchester.ac.uk> wrote:<br>
>> <br>
>> Hi Elaine, <br>
>> <br>
>> Thank you very much for the advice, I have updated to the daily build and that was causing the issue I was reporting.
<br>
>> However, I'm still a little unsure about how to correctly use the save command
<br>
>> <image.png><br>
>> 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
<br>
>> <image.png><br>
>> I'm basing my code on the guide featured below: (<a href="https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html">https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html</a>)<br>
>> <br>
>> <image.png><br>
>> using the attribute-name from the help online again featured below (<a href="https://rbvi.ucsf.edu/chimerax/docs/user/attributes.html#attrnames">https://rbvi.ucsf.edu/chimerax/docs/user/attributes.html#attrnames</a>)<br>
>> <br>
>> <image.png><br>
>> <br>
>> Would it be possible to provide an example of a working command as I'm unsure what exactly is giving me this error?
<br>
>> Apologies if I'm missing something obvious, thank you very much for continued your time and support.
<br>
>> <br>
>> Kind regards, <br>
>> David <br>
>> From: Elaine Meng <meng@cgl.ucsf.edu><br>
>> Sent: 03 March 2021 16:47<br>
>> To: David Leeming <david.leeming@student.manchester.ac.uk><br>
>> Cc: chimerax-users@cgl.ucsf.edu <chimerax-users@cgl.ucsf.edu><br>
>> Subject: Re: [chimerax-users] Attribute files in ChimeraX<br>
>> <br>
>> Hi David,<br>
>> 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.<br>
>> <br>
>> 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:<br>
>> <<a href="https://www.rbvi.ucsf.edu/trac/ChimeraX/wiki/ChangeLog">https://www.rbvi.ucsf.edu/trac/ChimeraX/wiki/ChangeLog</a>><br>
>> <br>
>> Attribute files:<br>
>> <<a href="https://rbvi.ucsf.edu/chimerax/docs/user/formats/defattr.html">https://rbvi.ucsf.edu/chimerax/docs/user/formats/defattr.html</a>><br>
>> <br>
>> Saving an attribute file:<br>
>> <<a href="https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html#attributes">https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html#attributes</a>><br>
>> <br>
>> I hope this helps,<br>
>> Elaine<br>
>> -----<br>
>> Elaine C. Meng, Ph.D.                       <br>
>> UCSF Chimera(X) team<br>
>> Department of Pharmaceutical Chemistry<br>
>> University of California, San Francisco<br>
>> <br>
>>> On Mar 3, 2021, at 7:32 AM, David Leeming <david.leeming@student.manchester.ac.uk> wrote:<br>
>>> <br>
>>> Dear ChimeraX users, <br>
>>> <br>
>>> 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)
<br>
>>> <image.png><br>
>>> I'm currently trying to run the command below to export the attribute file:<br>
>>> <image.png><br>
>>> However, when I run this script, it produces the error: "No known data format for file suffix '.defattr'"
<br>
>>> <br>
>>> 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.
<br>
>>> Thank you for your time. <br>
>>> <br>
>>> Kind regards,<br>
>>> David<br>
> <br>
> <br>
> _______________________________________________<br>
> ChimeraX-users mailing list<br>
> ChimeraX-users@cgl.ucsf.edu<br>
> Manage subscription:<br>
> <a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br>
<br>
</div>
</span></font></div>
</body>
</html>