From: Jerome P. <j.p...@pa...> - 2006-03-01 10:47:57
|
Le Mardi 28 F=E9vrier 2006 21:10, Joel Tyndall a =E9crit=A0: > Hi all, > > I'm not sure if this has been asked before and I'm not sure if its > possible...but here goes anyway. Is there a way to print/export the > sequences in the viewer window? It would be an easy way to translate > actual secondary structure to a sequence alignment In the control window, you can get a subsequence corresponding to a seconda= ry=20 structure with : stored.list =3D [] for i in range(a,b): cmd.iterate( "name ca and resi "+str(i),=20 "stored.list.append(resn)") where a is the id number from the first amino acid in the secondary structu= re=20 and b is (the id from the last amino acid +1) in the secondary structure. The stored.list variable contains now all the amino acids in the secondary= =20 structure. Then, you can use all the power of python to process this list a= s=20 you want. Don't hesitate to ask for more features, Cheers, Jerome Pansanel > Thanks > > J |