<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
Hi Elaine,
<div><br>
</div>
<div>Ah ok I see, thank you. A python solution would be fine too, I do have quite a lot of these to do so positioning them all by hand would be a bit of a last resort.</div>
<div><br>
</div>
<div>Naively I would have thought an approach like defining a centroid for each structure, taking the x and y coords, then looping through each structure to acquire the model name from the python object, and then positioning the label with an offset might work?</div>
<div><br>
</div>
<div>Is there any documentation for the python implementation of 2dlabels?</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Joe<br>
<br>
<div id="AppleMailSignature">
<div id="divtagdefaultwrapper">
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span style="background-color: rgba(255, 255, 255, 0);"><u> </u><o:p></o:p></span></p>
</div>
<div id="divtagdefaultwrapper">
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span style="background-color: rgba(255, 255, 255, 0);">M.Sc. B.Sc. (Hons) MSRB<o:p></o:p></span></p>
</div>
<div id="divtagdefaultwrapper">
<div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span style="background-color: rgba(255, 255, 255, 0);">PhD Student<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span style="background-color: rgba(255, 255, 255, 0);">MOAC CDT, Senate House<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span style="background-color: rgba(255, 255, 255, 0);">University of Warwick<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span style="background-color: rgba(255, 255, 255, 0);">Coventry<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span style="background-color: rgba(255, 255, 255, 0);">CV47AL<br>
Mob: <a href="tel:+44%207536%20042620" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="15">+44 (0) 7536 042620</a> | Email:<span class="apple-converted-space"> </span><a href="mailto:J.R.J.Healey@warwick.ac.uk">J.R.J.Healey@warwick.ac.uk</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span style="background-color: rgba(255, 255, 255, 0);"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span style="background-color: rgba(255, 255, 255, 0);">Jointly working in:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);"><a href="http://www2.warwick.ac.uk/fac/med/research/tsm/microinfect/staff/waterfieldlab/" id="LPNoLP">Waterfield Lab</a><span class="apple-converted-space"> </span>(WMS Microbiology
and Infection Unit)<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span style="background-color: rgba(255, 255, 255, 0);">and the <a href="http://www2.warwick.ac.uk/fac/sci/chemistry/research/gibson/gibsongroup/" id="LPNoLP">Gibson Lab</a> (Warwick Chemistry)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span style="background-color: rgba(255, 255, 255, 0);"> <o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span style="background-color: rgba(255, 255, 255, 0);">Twitter:<span class="apple-converted-space"> </span><a href="https://twitter.com/JRJHealey" id="LPNoLP">@JRJHealey</a> | Website:<span class="apple-converted-space"> </span><a href="http://www2.warwick.ac.uk/fac/sci/moac/people/students/2013/joseph_healey" id="LPNoLP">MOAC
Page</a> | ORCID: <a href="http://orcid.org/0000-0002-9569-6738">orcid.org/0000-0002-9569-6738</a></span></p>
</div>
</div>
</div>
</div>
<div><br>
On 23 Feb 2018, at 19:07, Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu">meng@cgl.ucsf.edu</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div><span>Hi Joe,</span><br>
<span>I don’t think there is a simple way (not involving python scripting) to achieve what you want…</span><br>
<span></span><br>
<span>The instructions in that previous post are for 3D labels, not 2D, and they work to label the first atom in each structure by the model number:</span><br>
<span></span><br>
<span>labelopt info molecule</span><br>
<span>la @/serialNumber=1 </span><br>
<span></span><br>
<span>The part that specifies model number is “info molecule” and it does not have a model-name option. I see that “molecule” isn’t even documented as a choice for type of info, so I will need to add it… apparently I didn’t know about it and failed to notice
the omission when that previous post appeared! Sorry about that. IMO, “molecule” is somewhat misleading and should be “model” instead, as there could be many different molecules in a single model.</span><br>
<span><<a href="http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/labelopt.html">http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/labelopt.html</a>></span><br>
<span></span><br>
<span>Don’t be distracted by the serial number stuff in the “label” command; it simply indicates which atoms to label: the first one in each model. It was used simply to just get one label per model without prior knowledge of the atom names and residue numbers
in each structure, since the label command potentially applies to all atoms.</span><br>
<span></span><br>
<span>You could use the “2dlabels” command instead, but you would have to manually specify the text for each label and its X,Y position in the graphics window (or use the 2D Labels graphical interface and place the labels by hand, which is much easier as long
as you don’t have to do it too many times)</span><br>
<span><<a href="http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/2dlabels.html">http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/2dlabels.html</a>></span><br>
<span><<a href="http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/2dlabels/2dlabels.html">http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/2dlabels/2dlabels.html</a>></span><br>
<span></span><br>
<span>Somebody else would have to advise on the Python-scripting possibilities for a more automatic approach.</span><br>
<span></span><br>
<span>I hope this helps,</span><br>
<span>Elaine</span><br>
<span>-----</span><br>
<span>Elaine C. Meng, Ph.D. </span><br>
<span>UCSF Chimera(X) team</span><br>
<span>Department of Pharmaceutical Chemistry</span><br>
<span>University of California, San Francisco</span><br>
<span></span><br>
<blockquote type="cite"><span>On Feb 23, 2018, at 1:54 AM, Healey, Joe <<a href="mailto:J.R.J.Healey@warwick.ac.uk">J.R.J.Healey@warwick.ac.uk</a>> wrote:</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>Hi again Chimera team,</span><br>
</blockquote>
<blockquote type="cite"><span>I'm looking for a fairly quick and dirty way to apply some annotations using 2D labels to a bunch of open structures.</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>Basically, I have ~16 structures open on screen, which I then tile to compare. I'd like the model name to be displayed just below each model so that its easy to track. I've found this thread (<a href="http://www.cgl.ucsf.edu/pipermail/chimera-users/2009-July/004081.html">http://www.cgl.ucsf.edu/pipermail/chimera-users/2009-July/004081.html</a>)
which appears to be attempting a similar thing (though I'd like to use the model.name not serial number), but the approach doesn't seem to work (no labels appear and there is no information in the reply log or IDLE to give me any clues).</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>Any suggestions/alternatives appreciated!</span><br>
</blockquote>
<blockquote type="cite"><span>Joe</span><br>
</blockquote>
</div>
</blockquote>
</div>
</body>
</html>