<div dir="ltr">Thank you Eric!. :)<div><br></div><div>So, rather than model, I guess I should say "multiple proteins", or, as I am looking at ligands as well, "multiple molecules". Basically I want to show a few proteins (wild type + a few mutants) and some small molecules that I have docked using Vina.</div>
<div><br></div><div>I don't know how to tell Chimera about more than one molecule. Right now I just specify lots of residues and atoms and bonds in the GetDict() function, but, so far as I can tell, I haven't specified that those structures belong to any particular molecule or protein. How do I indicate that *this* residue and atom belong to molecule #1 and *that* residue and atom belong to molecule #2?</div>
<div><br></div><div style>Also, I built a simple stand-alone trajectory plugin to nail down the basic plugin mechanics. The plugin simply creates a single water molecule and pushes it around on demand, so there are no file dependencies. I have attached the files in case somebody else finds them useful. All you need to do is stick them in the "<Chimera>\share\trajectory\formats\Waterdemo" directory. I'll update it with the results of this discussion to show how to load multiple molecules and such.</div>
<div><br></div><div>thanks again!</div><div>-denny-</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 29, 2013 at 11:34 AM, Eric Pettersen <span dir="ltr"><<a href="mailto:pett@cgl.ucsf.edu" target="_blank">pett@cgl.ucsf.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div class="im"><div>On May 29, 2013, at 10:46 AM, Dennis N Bromley <<a href="mailto:dbromley@uw.edu" target="_blank">dbromley@uw.edu</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr">Hi Eric,<div><br></div><div>Thank you very much for your help. My data is happily loading away. :)</div></div></blockquote><div><br></div></div>Hi Denny, happy to hear it!</div>
<div><div class="im"><br><blockquote type="cite"><div dir="ltr"><div>I have two more questions regarding loading:</div><div>1. My trajectory can contain multiple models (i.e. multiple proteins, not just protein + ligand). How do I specify that?</div>
</div></blockquote><div><br></div></div>I'm not sure I understand the issue. In Chimera, a "model" can have multiple proteins. A model is just biological data that came from a single data source (<i>e.g.</i> a PDB file, an MRC file) and is always moved/rotated as a whole. Help me out here. :-)</div>
<div class="im"><div><br><blockquote type="cite"><div dir="ltr">
<div>2. My data is actually coming from a streaming source where the other end of the stream could add molecules or change the structure. I know how to catch that message, but how would I tell Chimera that the structure had changed and I need to re-do all the models and residue counts and names and such (all the stuff from the GetDict() call)?</div>
</div></blockquote><br></div></div><div>Like VMD, Chimera employs the paradigm that trajectories don't change composition over time. Despite that, you can change the composition of your trajectory "by hand" by calling the correct atom/bond/residue creation/deletion calls yourself (<i>i.e.</i> the Molecule methods newAtom, newBond, newResidue, deleteAtom, deleteBond, deleteResidue). You would need to set the coordinates of any new atoms via their setCoord method. If you do nothing about it, the coordinates of these new atoms in previous frames will be at the origin.</div>
<div><br></div><div>Let me know what additional help you need.</div><div class="im"><div><br></div><div>--Eric</div><br><div>
<span style="border-spacing:0px 0px;text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:16px;white-space:normal;font-family:Helvetica;word-spacing:0px"><p style="margin:0.0px 0.0px 0.0px 0.0px">
<font face="Helvetica" size="5" style="font:16.0px Helvetica"><span> <span> </span></span>Eric Pettersen</font></p><p style="margin:0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font:16.0px Helvetica"><span> <span> </span></span>UCSF Computer Graphics Lab</font></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font:16.0px Helvetica"><span> </span><a href="http://www.cgl.ucsf.edu" target="_blank">http://www.cgl.ucsf.edu</a></font></p>
<br></span>
</div>
<br></div></div></blockquote></div><br></div>