next up previous contents index
Next: The O_heap_2 commands Up: The O_heap_1 commands Previous: Db_set_atom

A smart-ass example

Question: suppose you have a completely unknown protein, that you don't know anything about. How do you colour all non-amino-acid atoms salmon-pink?? In O, this is easy! First you create a residue property table, giving all amino acids a character property, for example AA. Then you read the residue table into the database using the Db_table_residue command. Finally, you go

obj salmon
paint_property residue_amino_acid != AA salmon
paint_property residue_amino_acid = AA green 
zone ;
end

Easy, huh?