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" <tlin...@gmail.com>
> To: "pymol-users@lists.sourceforge.net" <PyMOL-users@lists.sourceforge.net
> >
> Cc:
> Date: Wed, 8 Feb 2012 15:24:37 +0100
> Subject: [PyMOL] One liner for getting amino acid sequence from pdb file
> 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 extract the sequence
> in one-letter code?
>
> best
> Troels
>
>
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net