Get fastastr: Difference between revisions
Jump to navigation
Jump to search
m (print syntax for python 2+3) |
(per chain) |
||
Line 1: | Line 1: | ||
[[get_fastastr]] is an API-only function which returns the one-letter amino acid sequence in FASTA format. | [[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'' | |||
== PyMOL API == | == PyMOL API == | ||
Line 17: | Line 19: | ||
MQIFVKTLTGKTITLEVEPSDTIENVKAKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLV | MQIFVKTLTGKTITLEVEPSDTIENVKAKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLV | ||
LRLRGG | LRLRGG | ||
== See Also == | == See Also == | ||
* [[Aa codes]] | * [[Aa codes]] |
Revision as of 12:47, 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
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