RE: [PyMOL] Swissprot

2004-10-20 Thread Warren DeLano
Jules, Right now (and for the foreseeable future) PyMOL's sequence viewer shows actual atoms in an object (whether or not they have coordinates). There isn't currently any way to retrieve that information other than by looking at atoms... model=cmd.get_model(object-name) for atom in model.atom:

Re: [PyMOL] Swissprot

2004-10-18 Thread Filipe Maia
Is there a PDB parser class somewhere for reading in the PDB files? layer2/ObjectMolecule2.c:ObjectMoleculePDBStr2CoordSet() is probably a good place to start. -- All generalizations are false, including this one. -- Mark Twain

Re: [PyMOL] Swissprot

2004-10-18 Thread Charles Moad
I think you want to avoid the c files. Look at the pdb loader plugin I wrote: http://euclid.uits.iupui.edu/~cmoad/pymolPlugins/remote_pdb_load.py Specifically, one clean way to load a pdb is: cmd.read_pdbstr(pdbString, label) There is also a command for loading from a file. - Charlie On