Hi, I wouldn't use "list", since that's a python keyword :S Use "reslist" or something.
Cheers, Tsjerk On 10/19/07, Piter_ <x.pi...@gmail.com> wrote: > > Hi Martin > May be this will help: > > from sets import Set > list =[] > cmd.iterate('het', 'list.append(resn)') > residname =Set(list) > print residname > > Best. > Petro > > > > Hi there, > > how can I collect the identifiers contained in a pdb-file in a list, so > that there is one identifier for EACH residue - even if multiple ligands > have the same name. > > When I iterate over 'het', lots of identifiers are added to my list - > one for each atom. > list =[] > cmd.iterate('het', 'list.append(resn)') > > How can I count the occurrence of residues with identical names - > especially when they are assigned to the same chain? > > Cheers, > Martin > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users > > -- Tsjerk A. Wassenaar, Ph.D. Junior UD (post-doc) Biomolecular NMR, Bijvoet Center Utrecht University Padualaan 8 3584 CH Utrecht The Netherlands P: +31-30-2539931 F: +31-30-2537623