<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<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);" class="elementToProof">
Dear Elaine,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Perfrect, thank you. This works like charm.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Kind regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Mateusz</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>Od:</b> Elaine Meng <meng@cgl.ucsf.edu><br>
<b>Wysłane:</b> czwartek, 21 kwietnia 2022 17:53<br>
<b>Do:</b> Mateusz Dobrychłop <mdobrychlop@amu.edu.pl><br>
<b>DW:</b> chimerax-users@cgl.ucsf.edu <chimerax-users@cgl.ucsf.edu><br>
<b>Temat:</b> Re: [chimerax-users] Selecting atoms outside (or inside) a density map's contour</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Dear Mateusz,<br>
Thanks for your kind words!<br>
<br>
You can do it in ChimeraX by assigning the atoms the map values (at their positions) as attributes, and then using the attribute value as selector. For example, if the atoms are in #1 and the map is #2 and the contour level is 0.035:<br>
<br>
measure mapvalues #2 atoms #1 attribute mvalue<br>
sel @@mvalue<0.035<br>
<br>
As you can see, this does not depend on showing a contour surface. You could give any value in the selection by attribute value, and you could use symbols for greater than, less than, greater than or equal to, etc.<br>
<br>
See:<br>
<<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frbvi.ucsf.edu%2Fchimerax%2Fdocs%2Fuser%2Fcommands%2Fmeasure.html%23mapvalues&data=05%7C01%7Cmdobrychlop%40amu.edu.pl%7C1ed6f5a481f848132cb508da23af18dc%7C73689ee1b42f4e25a5f666d1f29bc092%7C0%7C0%7C637861532874496379%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=P%2BKS7AtLm8wopfuPl4vR09OJMqCmz1M%2FIVD9kZUbhEY%3D&reserved=0">https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frbvi.ucsf.edu%2Fchimerax%2Fdocs%2Fuser%2Fcommands%2Fmeasure.html%23mapvalues&data=05%7C01%7Cmdobrychlop%40amu.edu.pl%7C1ed6f5a481f848132cb508da23af18dc%7C73689ee1b42f4e25a5f666d1f29bc092%7C0%7C0%7C637861532874496379%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=P%2BKS7AtLm8wopfuPl4vR09OJMqCmz1M%2FIVD9kZUbhEY%3D&reserved=0</a>><br>
<<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frbvi.ucsf.edu%2Fchimerax%2Fdocs%2Fuser%2Fcommands%2Fatomspec.html%23attributes&data=05%7C01%7Cmdobrychlop%40amu.edu.pl%7C1ed6f5a481f848132cb508da23af18dc%7C73689ee1b42f4e25a5f666d1f29bc092%7C0%7C0%7C637861532874496379%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=I7YB6p1%2FdJw5zlUYbmdOwrEItviJnW%2F6A%2FvKQurKS0o%3D&reserved=0">https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frbvi.ucsf.edu%2Fchimerax%2Fdocs%2Fuser%2Fcommands%2Fatomspec.html%23attributes&data=05%7C01%7Cmdobrychlop%40amu.edu.pl%7C1ed6f5a481f848132cb508da23af18dc%7C73689ee1b42f4e25a5f666d1f29bc092%7C0%7C0%7C637861532874496379%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=I7YB6p1%2FdJw5zlUYbmdOwrEItviJnW%2F6A%2FvKQurKS0o%3D&reserved=0</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>
<br>
> On Apr 21, 2022, at 8:17 AM, Mateusz Dobrychłop via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:<br>
> <br>
> Dear ChimeraX Team,<br>
> <br>
> I'm a structural bioinformatician working on my PhD thesis. I've been a long time user of Chimera, and I'm now using ChimeraX to create figures for my dissertation. I genuinely love both programs. Thank you for creating them.<br>
> <br>
> I found myself stuck trying to perform one operation in ChimeraX that is very easy to perform in Chimera.<br>
> <br>
> What I'm trying to do is select (and color) all atoms of an atomic model, that are located outside of a density map's contour.<br>
> <br>
> In Chimera, I was able to just select the model and use the shortcut "ac oa" and that was it. Unfortunately I am not able to find a way to do that in ChimeraX.<br>
> <br>
> I even tried to select the atoms in Chimera, then save the selected atoms as a PDB file, and then the inverted selection as a separate PDB file, and then open the two files in ChimeraX and color them separately. This could even work for a full atom representation,
but does not work well for ribbon representation. That said, if the solution to my problem could be to somehow transfer the list of atoms that are outside the map from Chimera to ChimeraX, that would work for me as well.<br>
> <br>
> I will appreciate any tips and suggestions!<br>
> <br>
> Kind regards,<br>
> Mateusz<br>
<br>
</div>
</span></font></div>
</body>
</html>