Re: [PyMOL] How to export secondary structure information from a PDB using PyMol?

2016-05-17 Thread Julian Heinrich
Hi, in case you haven't solved this yet, the following command prints the residue number and secondary structure: iterate n. CA, print resi + ':' + ss Cheers, Julian On Fri, May 13, 2016 at 10:40 PM ZHANG Cheng <272699...@qq.com> wrote: > Dear PyMol friends, > I would like to export the

Re: [PyMOL] How to export secondary structure information from a PDB using PyMol?

2016-05-13 Thread Tsjerk Wassenaar
Hi Zhang Cheng, If you replace SELECTION with a proper selection statement (with quotes), then something like: open("ss.dat","w").writelines( ["Residue %d: %s\n"%(a.resi,a.ss) for a in cmd.get_model(SELECTION+" and n. ca").atom] ) It will write the results to a file called ss.dat. Do mind all

[PyMOL] How to export secondary structure information from a PDB using PyMol?

2016-05-13 Thread ZHANG Cheng
Dear PyMol friends, I would like to export the secondary structure of individual residues from a PDB. Can I ask if I can use PyMol to do that? I would like something like this: Residue 1: alpha-helix Residue 2: beta-sheet .. I think