Talk:Aa codes: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
(one_letter alternatives)
 
(three letter code alternative)
 
Line 4: Line 4:


  from pymol.exporting import _resn_to_aa as one_letter
  from pymol.exporting import _resn_to_aa as one_letter
Alternative to get three letter code:
print cmd.get_model('myselection').atom[0].resn


--[[User:Speleo3|Speleo3]] 07:52, 13 September 2010 (UTC)
--[[User:Speleo3|Speleo3]] 07:52, 13 September 2010 (UTC)

Latest revision as of 03:03, 13 September 2010

Alternatives to get one_letter dictionary:

from Bio.PDB import to_one_letter_code as one_letter
from pymol.exporting import _resn_to_aa as one_letter

Alternative to get three letter code:

print cmd.get_model('myselection').atom[0].resn

--Speleo3 07:52, 13 September 2010 (UTC)