<div dir="auto">Thanks for the tip! </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 7, 2020, 9:09 PM Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu">meng@cgl.ucsf.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Aleena,<br>
Seems like it would be easier just to write your own script to add a chain ID to the PDB files than to do it with a python script in Chimera. All you have to do is replace the blank character at position 22 of ATOM and HETATM lines with A (or whatever you want the chain ID to be).<br>
<br>
<<a href="http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/tutorials/framepdbintro.html" rel="noreferrer noreferrer" target="_blank">http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/tutorials/framepdbintro.html</a>><br>
<<a href="http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/tutorials/pdbintro.html#coords" rel="noreferrer noreferrer" target="_blank">http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/tutorials/pdbintro.html#coords</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 Jul 7, 2020, at 5:48 AM, Aleena Jose <<a href="mailto:aleena.jose@students.iiserpune.ac.in" target="_blank" rel="noreferrer">aleena.jose@students.iiserpune.ac.in</a>> wrote:<br>
> <br>
> Hi Elaine, <br>
> <br>
> Thanks a lot for your reply. The problem is that I have got hundreds of such pdbs with no id chains after random scanning mutagenesis. I wish I could solve it using a python script. <br>
> <br>
> Regards<br>
> Aleena.<br>
> <br>
> On Mon, Jul 6, 2020, 9:32 PM Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu" target="_blank" rel="noreferrer">meng@cgl.ucsf.edu</a>> wrote:<br>
> HI Aleena,<br>
> You can do it with the "Change Chain IDs" graphical interface, open from menu: Tools... Structure Editing... Change Chain IDs. That dialog will list the chain with no ID separately (something like "principal chain") and you can click to choose it in that interface, then enter a new ID.<br>
> <br>
> <<a href="http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/editing/changechains.html" rel="noreferrer noreferrer" target="_blank">http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/editing/changechains.html</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 Jul 4, 2020, at 2:41 PM, Aleena Jose <<a href="mailto:aleena.jose@students.iiserpune.ac.in" target="_blank" rel="noreferrer">aleena.jose@students.iiserpune.ac.in</a>> wrote:<br>
> > <br>
> > Hi, <br>
> > I need help with chimera. In my pdb I have a chain with no id and I want to assign it a new id. I tried using 'changechain' command but I am getting error messages because I don't have any specific from-chain id. I don't know what exactly to give as from-chain id or is there any other command that could help me?<br>
> > Thanks,<br>
> > Aleena.<br>
<br>
</blockquote></div>