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