https://pymolwiki.org/index.php?title=Cif_keepinmemory&feed=atom&action=history
Cif keepinmemory - Revision history
2024-03-29T08:25:55Z
Revision history for this page on the wiki
MediaWiki 1.35.7
https://pymolwiki.org/index.php?title=Cif_keepinmemory&diff=12900&oldid=prev
Speleo3: fetch type=cif
2019-03-15T14:01:31Z
<p>fetch type=cif</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 14:01, 15 March 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l9" >Line 9:</td>
<td colspan="2" class="diff-lineno">Line 9:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>pymol.cmd.set("cif_keepinmemory")</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>pymol.cmd.set("cif_keepinmemory")</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>pymol.cmd.fetch("1ubq")</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>pymol.cmd.fetch("1ubq<ins class="diffchange diffchange-inline">", type="cif</ins>")</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>citation_titles = pymol.querying.cif_get_array("1ubq", "_citation.title")</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>citation_titles = pymol.querying.cif_get_array("1ubq", "_citation.title")</div></td></tr>
</table>
Speleo3
https://pymolwiki.org/index.php?title=Cif_keepinmemory&diff=12148&oldid=prev
Speleo3: created
2015-09-28T22:40:04Z
<p>created</p>
<p><b>New page</b></p><div>The [[cif_keepinmemory]] setting is an experimental feature. When loading a CIF file with '''cif_keepinmemory'''=on, then the parsed file is kept in memory and made accessible like a dictionary from the Python API.<br />
<br />
''New in PyMOL 1.7.8''<br />
<br />
== Examples ==<br />
<br />
<syntaxhighlight lang="python"><br />
import pymol<br />
<br />
pymol.cmd.set("cif_keepinmemory")<br />
pymol.cmd.fetch("1ubq")<br />
<br />
citation_titles = pymol.querying.cif_get_array("1ubq", "_citation.title")<br />
<br />
import pprint<br />
pprint.pprint(citation_titles)<br />
</syntaxhighlight><br />
<br />
Output:<br />
<br />
['Structure of ubiquitin refined at 1.8 A resolution.',<br />
'Comparison of the Three-Dimensional Structures of Human, Yeast, and Oat Ubiquitin',<br />
'Three-Dimensional Structure of Ubiquitin at 2.8 Angstroms Resolution',<br />
'Crystallization and Preliminary X-Ray Investigation of Ubiquitin, a Non-Histone Chromosomal Protein',<br />
'Molecular Conservation of 74 Amino Acid Sequence of Ubiquitin between Cattle and Man']<br />
<br />
[[Category:Settings]]</div>
Speleo3