Get fastastr

From PyMOLWiki
Jump to: navigation, search

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

Contents

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

Known Issues

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox