Jmol/Useful one-liners: Difference between revisions

Karsten Theis (talk | contribs)
Karsten Theis (talk | contribs)
Line 10: Line 10:
<jmol><jmolButton><text>hover</text><script>hover "%n%R_%a"; font hover 30</script></jmolButton></jmol>
<jmol><jmolButton><text>hover</text><script>hover "%n%R_%a"; font hover 30</script></jmolButton></jmol>
When spinning is off and you hover over an atom, you get some information. This one-liner increases the font size and condeses the information displayed, showing the one-letter residue name, the residue number and the atom name.
When spinning is off and you hover over an atom, you get some information. This one-liner increases the font size and condeses the information displayed, showing the one-letter residue name, the residue number and the atom name.
color bonds green
This colors the bonds of the selected atoms, but not the atoms themselves. This is useful to keep the atoms in CPK color scheme (showing which elements we have) while highlighting certain residues or side chains.
center visible
This centers on all atoms that are visible, either explicitly or as part of a cartoon etc.
set fontScaling ON
All labels created after this will scale as you zoom in or out of the structure.
model 0
When multiple models are loaded (e.g. NMR structures), or multiple structures are loaded (e.g. superpositions), this shows all the structures at the same time.
select selected and not *%B
Deselects alternate conformations. Some models contain two conformations (labeled A and B in column 17 of a PDB file, with fractional occupancies adding up to 1, see e.g. [https://pdb101.rcsb.org/learn/guide-to-understanding-pdb-data/dealing-with-coordinates].


</StructureSection>
</StructureSection>

Proteopedia Page Contributors and Editors (what is this?)Proteopedia Page Contributors and Editors (what is this?)

Karsten Theis, Angel Herraez