Get fastastr: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
(per chain)
(Nucleic acid support)
 
Line 2: Line 2:


''Changed in PyMOL 2.2: Sequences per chain''
''Changed in PyMOL 2.2: Sequences per chain''
''Changed in PyMOL 2.2: Nucleic acid support''


== PyMOL API ==
== PyMOL API ==

Latest revision as of 13:49, 30 July 2020

get_fastastr is an API-only function which returns the one-letter amino acid sequence in FASTA format.

Changed in PyMOL 2.2: Sequences per chain

Changed in PyMOL 2.2: Nucleic acid support

PyMOL API

cmd.get_fastastr(string selection='all', int state=-1, int quiet=1)

Example

fetch 1ubq, async=0
print(cmd.get_fastastr('all'))
>1ubq
MQIFVKTLTGKTITLEVEPSDTIENVKAKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLV
LRLRGG

See Also