User:Karsten Theis/Reviewing tools: Difference between revisions

From Proteopedia
Jump to navigationJump to search
Karsten Theis (talk | contribs)
No edit summary
Karsten Theis (talk | contribs)
Line 16: Line 16:
To quickly see which PDB files are shown on a page, and have quick access to all the scripts (for example, if you want to find out how a 3D scene was made), I wrote a python script that scans a page, extracts the green links, gathers information from the Jmol state files (which are Jmol scripts), and outputs it as a summary. One such summary is [[Talk:Hen Egg-White (HEW) Lysozyme|here]]. The script is pasted below, and you can run it :
To quickly see which PDB files are shown on a page, and have quick access to all the scripts (for example, if you want to find out how a 3D scene was made), I wrote a python script that scans a page, extracts the green links, gathers information from the Jmol state files (which are Jmol scripts), and outputs it as a summary. One such summary is [[Talk:Hen Egg-White (HEW) Lysozyme|here]]. The script is pasted below, and you can run it :


<syntaxhighlight lang="Python" line='line'>site = 'CRISPR-Cas9'
<pre>site = 'CRISPR-Cas9'
site = 'CRISPR-Cas9_Part_II'
site = 'CRISPR-Cas9_Part_II'
site = 'User:Karsten_Theis/scene_transitions'
site = 'User:Karsten_Theis/scene_transitions'
Line 186: Line 186:
     print(f'*{descr}: https://proteopedia.org{pdb}')
     print(f'*{descr}: https://proteopedia.org{pdb}')
# https://proteopedia.org/cgi-bin/getfrozenstructure?abb78d56d3e07a4e0290a8783dcb8b58
# https://proteopedia.org/cgi-bin/getfrozenstructure?abb78d56d3e07a4e0290a8783dcb8b58
</syntaxhighlight>
</pre>