[Chimera-users] save only selected atoms to Mol2

Elaine Meng meng at cgl.ucsf.edu
Fri Aug 26 08:09:47 PDT 2022


Hello Anjali Setiya,
You can save a Mol2 file containing only the selected atoms with the "write" command. For example, if your structure is model #0 and you want to write a mol2 file named residue30.mol2 to your Desktop:

select :30
write selected format mol2  #0 ~/Desktop/residue30.mol2

See "write" command help including "selected" option:
<https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/write.html>

I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.                       
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco

> On Aug 26, 2022, at 4:31 AM, asetiya <asetiya at cdac.in> wrote:
> 
> Sir/Ma'am,
> I have query regarding chimera, through command line I want to select a particular residue and delete the remaining protein and save in the .mol2 file for further processing for my project.I used the following command to select the residue: select :30 for selecting the desired residue. Can you give me an insight as to how to delete the remaining protein and save in the .mol2 format. That will be very helpful. 
> 
> Thanks & Regards
> Anjali Setiya




More information about the Chimera-users mailing list