Le Mardi 28 Février 2006 21:10, Joel Tyndall a écrit :
> 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 secondary 
structure with :

stored.list = []
for i in range(a,b): cmd.iterate( "name ca and resi "+str(i), 
"stored.list.append(resn)")

where a is the id number from the first amino acid in the secondary structure 
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 
structure. Then, you can use all the power of python to process this list as 
you want.

Don't hesitate to ask for more features,

Cheers,

Jerome Pansanel

> Thanks
>
> J


Reply via email to