Okay, this comes from a script I wrote a while ago to create selections for individual helices etc:
stored.ss = [] cmd.do("iterate %s and name ca,stored.ss.append(ss)"%yourmodel) then check all stored.ss[] == "" or some such. There is probably a less clumsy way though. Hope it helps. On Wednesday, 22 October 2003 12:49, Tom Walsh wrote: > I'm writing a script that writes a Python script that loads PDB > files and displays them in cartoon representation. The problem > is that, if the PDB file doesn't contain secondary structure > records, you get a ribbon-like representation rather than a > proper cartoon. The obvious way to fix this is to run util.ss > but this can be slow if you have a lot of structures. Is there > a way in the API to tell whether a PDB file you've loaded contains > secondary structure records, so that you can avoid an unnecessary > call to util.ss? > > Tom Walsh > > > > > ------------------------------------------------------- > This SF.net email is sponsored by OSDN developer relations > Here's your chance to show off your extensive product knowledge > We want to know what you know. Tell us and you have a chance to win $100 > http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 > _______________________________________________ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users -- |\ /-------\ | ____ | -/ o \ \\/ ______/ | -\ \__-/ _ _|__/ |/ \-------/ _/_\______/ |_ |_ ___________/ ~~~~~~~ Gordon Wells Department of Biochemistry University of Pretoria