Skip to content

Commit

Permalink
FIX: nicer 3pqr example
Browse files Browse the repository at this point in the history
  • Loading branch information
arose committed Apr 30, 2015
1 parent d933f53 commit b90a601
Showing 1 changed file with 29 additions and 13 deletions.
42 changes: 29 additions & 13 deletions js/ngl/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,20 +142,36 @@ NGL.Examples = {

stage.loadFile( "data://3pqr.pdb", function( o ){

o.addRepresentation( "cartoon", { sele: "1-320", wireframe: false } );
o.addRepresentation( "tube", { sele: "*", scale: 0.4 } );
o.addRepresentation( "rope", { sele: "*", subdiv: 2 } );
o.addRepresentation( "licorice", { sele: ".C or .CA or .O" } );

// o.addRepresentation( "tube", {
// sele: "*", color: "atomindex", radius: "bfactor", scale: 0.01,
// subdiv: 50, radialSegments: 50, visible: true
// } );
// o.addRepresentation( "ball+stick", { sele: "135:A or 347:B or 223:A" } );
// o.addRepresentation( "licorice", { sele: "hetero" } );
// o.addRepresentation( "rope", { smooth: 2 } );
o.addRepresentation( "cartoon", {
color: "residueindex", aspectRatio: 4, scale: 0.5
} );
o.addRepresentation( "rope", {
color: "residueindex", visible: false
} );
o.addRepresentation( "ball+stick", {
sele: "296 or RET", scale: 3, aspectRatio: 1.5
} );
o.addRepresentation( "surface", {
sele: "RET", transparent: true, opacity: 0.4
} );
o.addRepresentation( "licorice", {
sele: "( ( 135 or 223 ) and sidechainAttached ) or ( 347 )",
scale: 3, aspectRatio: 1.5
} );
o.addRepresentation( "contact", {
sele: "135 or 223 or 347",
scale: 0.7
} );
o.addRepresentation( "label", {
sele: "( 135 or 223 or 347 or 296 ) and .CB",
scale: 1.7
} );
o.addRepresentation( "label", {
sele: "RET and .C19",
scale: 1.7, labelType: "resname"
} );

o.centerView( "320" );
o.centerView();

} );

Expand Down

0 comments on commit b90a601

Please sign in to comment.