next up previous contents index
Next: The Manip menu Up: The Select commands Previous: Select_invert

Examples

  Select_property can be used to create more complicated molecular objects for display. The following commands will create a CA-trace showing all the tyrosine sidechains. The final Zone command specifies the whole molecule since no input is given but only the `visible' atoms are drawn. It is wise to reset both the selection and visible datablocks after making the object:      

obj ca_tyr
conn o.dat
sel_off ;;
sel_prop atom_name = ca on
sel_prop residue_type = tyr on
sel_vis
z ; end
sel_on ;; sel_vis

Note that the connectivity file is o.dat and not all.dat.     Using the latter would cause small crosses to be drawn at non-tyrosine residues.

In the next example, we display the poly-Gly backbone:

obj poly_g
conn all.dat
sel_off ;;
sel_prop atom_name = n on
sel_prop atom_name = ca on
sel_prop atom_name = c on
sel_prop atom_name = o on
sel_vis
z ; end

Now, display all residues with bad rms pep-flip values:

obj flip
sel_prop residue_pepflip > 2.5 on
sel_vis
z ; end

In this last example, the residue property called _residue_pepflip must have been calculated in advance by the Pep_flip option.    

Paint acidic residues red, basic residues blue, all other residues white:

sel_on ;; 
paint_sel white
sel_off ;;
sel_prop residue_type = asp on
sel_prop residue_type = glu on
paint_sel red
sel_off ;;
sel_prop residue_type = lys on
sel_prop residue_type = arg on
sel_prop residue_type = his on
paint_sel blue
obj chrg z ; end