Peptide Sequence: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 1: Line 1:
=Buildin a Peptide Sequence From Hand=
=Building a Peptide Sequence From Hand=
There are two methods in PyMol for building a peptide sequence from hand.  First, you may simply hold down the '''alt''' ('''option''' on Mac) key and type in the one-letter code for the sequence.  Secondly, you can write a script like the following
There are two methods in PyMol for building a peptide sequence from hand.  First, you may simply hold down the '''alt''' ('''option''' on Mac) key and type in the one-letter code for the sequence.  Secondly, you can write a script like the following
<source lang="python">
<source lang="python">

Revision as of 19:49, 11 August 2005

Building a Peptide Sequence From Hand

There are two methods in PyMol for building a peptide sequence from hand. First, you may simply hold down the alt (option on Mac) key and type in the one-letter code for the sequence. Secondly, you can write a script like the following

for aa in "DCAHWLGELVWCT": cmd._alt(string.lower(aa))

which will build the amino acid sequence "DCAHWLGELVWCT".