<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Thanks Tom, this is awesome! Much appreciated! <br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Best, Matthias <span id="ms-outlook-android-cursor"></span><br>
</div>
<div><br>
</div>
<div id="ms-outlook-mobile-signature">Holen Sie sich <a href="https://aka.ms/AAb9ysg">
Outlook für Android</a></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> Tom Goddard <goddard@sonic.net><br>
<b>Sent:</b> Tuesday, September 28, 2021 8:54:48 PM<br>
<b>To:</b> Vorländer,Matthias Kopano <matthias.vorlaender@imp.ac.at><br>
<b>Cc:</b> chimerax-users@cgl.ucsf.edu <chimerax-users@cgl.ucsf.edu><br>
<b>Subject:</b> Re: [chimerax-users] Possible to measure the shortest distance between two models?</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">You can use Python in ChimeraX to find the shortest distance.  Here is some example code closest.py to do that.
<div class=""><br class="">
</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span><a href="https://rbvi.github.io/chimerax-recipes/closest/closest.html" class="">https://rbvi.github.io/chimerax-recipes/closest/closest.html</a></div>
<div class=""><br class="">
</div>
<div class="">If you open that Python code in ChimeraX it registers a command "closest"</div>
<div class=""><br class="">
</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>open 7LUP</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>closest /A to /B maxDist 100</div>
<div class=""><br class="">
</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>> Minimum distance 2.27 between /A LYS 45 NZ and /B ASP 522 OD1</div>
<div class="">
<div><br class="">
</div>
<div>  Tom</div>
<div><br class="">
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Sep 28, 2021, at 2:15 AM, Vorländer,Matthias Kopano via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="x_WordSection1" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="" style="font-size:9pt">Dear all,</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="" style="font-size:9pt"> </span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="" style="font-size:9pt">I am interested in measuring the shortest distance between two models (PDBs) without a priori knowledge of which atoms will be the closest ones. I am planning to do this for a large number of model pairs, therefore
 it would be great if this would be scriptable. Is this possible using ChimeraX?</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="" style="font-size:9pt">Thanks a lot in advance,</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="" style="font-size:9pt"> </span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="" style="font-size:9pt">Best,</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="" style="font-size:9pt">Matthias</span></div>
<div class="" style="margin:0cm; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="EN-US" class="" style="font-size:9pt"> </span></div>
</div>
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">ChimeraX-users
 mailing list</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">ChimeraX-users@cgl.ucsf.edu</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">Manage
 subscription:</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>