Re: [PyMOL] One liner for getting amino acid sequence from pdb file

2012-02-08 Thread Osvaldo Martin
Hi Troels, cmd.save("filename.fasta") will save the sequence of your PDB file in a file in fasta format. Then you could open the file and put the content in a list. cheers, Osvaldo -- Forwarded message -- > From: "Troels Emtekær Linnet" > To: "pymol-users@lists.sourceforge.net

Re: [PyMOL] One liner for getting amino acid sequence from pdb file

2012-02-08 Thread Troels Emtekær Linnet
Thanks! I put it on the wiki: http://pymolwiki.org/index.php/Get_fastastr Cheers 2012/2/8 Thomas Holder > print cmd.get_fastastr('all') > > Cheers, > Thomas > > > On 02/08/2012 03:24 PM, Troels Emtekær Linnet wrote: > >> Hi. >> >> I have a pdb file, which is a modelled structure from another

Re: [PyMOL] One liner for getting amino acid sequence from pdb file

2012-02-08 Thread Thomas Holder
print cmd.get_fastastr('all') Cheers, Thomas On 02/08/2012 03:24 PM, Troels Emtekær Linnet wrote: > Hi. > > I have a pdb file, which is a modelled structure from another sequence. > > I want to check the amino acid sequence in the structure. > Does anyone know a one-liner in pymol which will e