Jul 1 2004
|
[ table | tableexpression | tablesubset | tableplot | tether | tif | transformationvector ] !- table an ICM object which unite several other ICM-objects. It consists of two parts:
group table obj1 obj2 ... command and returned by some functions such as:
One can inserted to empty rows, or duplicate rows or , insert rows from a different table with the add table command. Tables can be merged with the append column command. !- Pairwise table expressions:
The Index( tableExpression ) function will return integer array of selected row-numbers. Example: group table t {"a","b","c"} "s" {1 2 3} "i" # arrays t.s, t.i show t show t.s == {"c","a"} # shows the 1st and the 3rd lines show t.s ~ "a*" | t.i < 3 # shows the 1st and the 2nd lines Index( t.s ~ "a*" | t.i < 3 ) # returns {1,2} !- Table operations
!- table subsets: Table subsets can also be defined explicitly through the three types of index expressions:
Look at this example of operations with tables. We read a database of secondary structures foldbank.db dump arrays into a table, add sequence length to a table, extract entries of interest, sort them and save the result. read database "foldbank.db" # load information into arrays LE=Length(SS ) # create iarray with sequence lengths group table t $s_out LE # create table t with all info + lengths show t # press 'q' otherwise computer will explode show t.NA == {"1gec.i","5pad*"} # find these entries a=t.RZ < 2.2 & t.ER < 1. & t.LE > 35 # select entries with resolution < 2.5, # converted with ER < 1. and longer # than 35 residues sort a.LE a.RZ # resort entries according to # lengths/resolution write database a "SUBSET" !- Plotting table data The ICM tables can have built-in plots. To add an automatically generated plot to a table, follow these steps:
The element section descrives additional sub-plots which can be added to the main plot. The element specifications are similar to the main plot specifications, but the fields for each element are separated by commas, rather than by semicolons. element={rectangle|RECTANGLE},x=,y=,{x2=,y2=|w=,h=},color=,fillPattern=PATTERN,label=,labelPos={top|bottom|left|right|center}The following shape types are possible: None (i.e. dot), Ellipse , Rect , Diamond , Triangle , DTriangle , UTriangle , LTriangle , RTriangle The following fillPattern styles are available:
Example: S_plots = Sarray(1) S_plots[1] = "x=i;y=MaxDev;color=Entropy;size=8;title=Quick plot" # t has the following columns: i, MaxDev, Entropy, group table append t header S_plots "plot" !- tether a harmonic restraint pulling an atom in the current object to a static point in space. This point is represented by an atom in another object. Typically, it is used to relate the geometry of an ICM molecular object with that of, say, an X-ray structure whose geometry is considered as a target (see also delete tether, minimize tether, show tether, set tether ). The restraint can also pull an atom to a z-plane (rather than to a point), if you specify tzMethod="z_only" Atom specific weights can be imposed with tzMethod="weighted" via bfactors. tzMethod="function" is the most flexible. It allows you to specify different strength, upper and lower boundaries for each tether, establish a flat area in which no penalty is imposed, and even exert constant force. In this case one needs to set atom properties of the "dummy" object to which the "active" atoms are tethered. Two other types of restraints are drestraint (distance restraints), and vrestraint (multidimensional variable restraints). !- tif files Tag(ged) Image File Format, used by default in the ICM commands write image and display movie. See also: rgb, png, targa. !- transformation vector an elementary space transformation is defined by a rarray where values {a1,a2,...,a12} define 3x3 rotation matrix and translation vector {a4,a8,a12}. The complete augmented affine 4x4 transformation matrix in direct space can be presented as: a1 a2 a3 | a4 a5 a6 a7 | a8 a9 a10 a11 | a12 ------------+---- 0. 0. 0. | 1.The commands and functions related to transformation vector (referred to as R_tv):
|
Copyright© 1989-2004, Molsoft,LLC - All Rights Reserved. |
This document contains proprietary and confidential information of
Molsoft, LLC. The content of this document may not be disclosed to third parties, copied or duplicated in any form, in whole or in part, without the prior written permission from Molsoft, LLC. |