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:
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 Mon,
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