User:Karsten Theis/AI tutorial: Difference between revisions

From Proteopedia
Jump to navigationJump to search
Karsten Theis (talk | contribs)
No edit summary
Karsten Theis (talk | contribs)
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
This is a tutorial for AI how to help with making 3D figures in Jmol. If it helps humans too, so much the better.
This is a tutorial for AI how to help with making 3D figures in Jmol (see all materials [https://github.com/ktheis/Jmol-Jane here]). If it helps humans too, so much the better.


<Structure load='' size='350' frame='true' align='right' caption='' scene='85/857774/Chymotrypsin/4' />
<Structure load='' size='350' frame='true' align='right' caption='' scene='85/857774/Chymotrypsin/4' />
Line 201: Line 201:
</nowiki>
</nowiki>


<scene name='10/100139/Spacefill/1'>Green fluorescent protein</scene>
<nowiki>
load =1ema
# define the central helix in GFP and the hydrophobic residues lining it
define ~helix 57-71
define ~hydrophobic_liner 12, 14, 16, 18, 22, 27, 29, 42, 44, 46, 48, 98, 100, 110, 112, 114, 119, 123, 125, 150, 152, 161, 163, 165, 167, 179, 201, 207, 220, 224, 226
# Show a translucent ribbon for context (some of the colors are overridden later)
select all
Ribbon on;
color atoms translucent 128 [xf0f8ff]; # aliceblue
# The helix is shown as solid red spacefill
select ~helix
Spacefill 100%
color atoms opaque [xdc143c]; # crimson
# The side chains lining it are shown as solid whitish spacefill
select sidechain and ~hydrophobic_liner
color atoms opaque [xf0f8ff]; # aliceblue
Spacefill 100%
</nowiki>




===Overall views===
===Overall views===
These don't have a focal point. They should be centered on everything displayed. If using a representation you can look through (e.g. backbone or cartoon rather than surface or spacefill), fading/fogging "zshade" may be helpful to distinguish front and back.
These don't have a focal point. They should be centered on everything displayed. If using a representation you can look through (e.g. backbone or cartoon rather than surface or spacefill), fading/fogging "zshade" may be helpful to distinguish front and back.
<scene name='78/780454/Domains/7'>Domains</scene>
<nowiki>
load =1d9z                                        # UvrB, a helicase-like protein bound to ATP
restrict none
select protein; color gold; cartoon on            # The gold domain has most segments, so make everything gold
select not helix and not sheet; cartoon 0.3      # Make coils a bit thicker than default for balance and visibility
select 415-595; color red         
select 157-244; color blue
select 91-116; color aqua                        # beta hairpin, unique to UvrB
select 245-324, 349-378; color lime              # UvrA interaction domain
select MG, ATP, ZN; color silver; spacefill 100%  # Ligands in spacefill (Zn is crystallization artifact)
</nowiki>
<scene name='10/1071246/Trypsin_5mop/5'>Rainbow plus surface</scene>
<nowiki>
load =5mop                                                                                # trypsin
restrict none
select protein; cartoon on; color group                                                  # rainbow cartoon
select protein and (57,195) and sidechain and not hydrogen; color cpk; spacefill 25%      # ball ...
select protein and (57,195) and (sidechain or alpha) and not hydrogen; wireframe 0.36    # ...and stick
select protein; isosurface ID "1" SASURFACE                                              # solvent-accessible surface
color isosurface translucent 0.875 white                                                  # white and translucent
isosurface ID "1" fill noMesh noDots notFrontOnly frontlit                                # these settings help to see the cartoon
select all; set hoverLabel "%n %R";                                                      # residue numbers and name
select [CA]; set hoverLabel "Calcium";                                                    # spell out "calcium" to distinguish from alpha-carbon
</nowiki>