VMD-L Mailing List
From: Nicolas Sapay (n.sapay_at_ibcp.fr)
Date: Tue May 10 2005 - 09:59:30 CDT
- Next message: John Stone: "Re: radius of gyration"
- Previous message: John Stone: "Re: how to delete atoms from the command line?"
- Maybe in reply to: John Stone: "Re: how to delete atoms from the command line?"
- Next in thread: nordgren_at_sas.upenn.edu: "PSFGEN vs. VMD"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Sorry, there is a mistake in my previous mail. I have use "$bad" and not
"bad" in the command:
foreach segid [$bad get segid] resid [$bad get resid] { ...
And of course, I have checked that my selection is not empty ;-). It
contains 15 residues.
Nicolas
Le mar 10/05/2005 à 16:54, diane lynch a écrit :
>foreach segid [bad get segid] resid [bad get resid] {
in the above line have you tried with $bad not just bad?
also you could check to be sure bad has atoms in it ($bad num)
Nicolas Sapay wrote:
>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 _
- Next message: John Stone: "Re: radius of gyration"
- Previous message: John Stone: "Re: how to delete atoms from the command line?"
- Maybe in reply to: John Stone: "Re: how to delete atoms from the command line?"
- Next in thread: nordgren_at_sas.upenn.edu: "PSFGEN vs. VMD"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]