From: Nicolas Sapay (n.sapay_at_ibcp.fr)
Date: Tue May 10 2005 - 07:30:50 CDT

Hello everybody,
I want to delete some residues from a structure. (I mean that I want to
remove their coordinates, not only their representations). I have
selected a set of atoms :
set bad [atomselect top "resname POPC and within 2 of protein"]

I have tried to delete them
foreach segid [bad get segid] resid [bad get resid] {
delatom $segid $resid
}

And then, I have write my new PDB file
animate write pdb myfile.pdb

However, deleted residues are still present in myfile.pdb! Then, I have
tried this :
delres $bad

But I get an error message:
can't read "segid": no such variable

Can someone help me to delete these residues?

Thanks

Nicolas

-- 
_ Nicolas Sapay ________________________ PhD student _
              
 IBCP - Institut de Biologie et Chimie des Protéines 
  >> 7, Passage du Vercors
     69367 Lyon cedex 07, France
  >> Tel : (33) (0)4 72 72 26 46                  
  >> Fax : (33) (0)4 72 72 26 04 
                       
____________________________________ n.sapay_at_ibcp.fr _