Debian Codegraph @

whelp/Giface.html

raw
1 <!-- $Id: Giface.html,v 1.13 1999/06/25 14:51:06 fw Exp $ -->
2 <HEAD>
3 <TITLE> ACEDB user guide: giface </TITLE>
4 </HEAD>
5
6 <BODY BGCOLOR=#ffffff>
7
8 <H1> Acedb user guide: giface </H1>
9
10 From the user's point of view, giface is a version of tace with
11 extensions to generate gif and map files corresponding for acedb
12 displays.
13 <P>
14 (From the programmer's point of view, it is more like xace, but with gif-images
15 as its graphics output mode instead of interactive X11-windows.)<P>
16
17 A lot of improvements have been made to the general user-friendliness
18 of giface since version 4.8. Since this version is still in development
19 and may not be officially released. Comments are included about the restrictions
20 of giface version 4.7 and earlier.<P>
21
22 You run giface just like tace, with the database directory as a
23 command line argument, or set as the ACEDB environment variable.
24 There is a new single new command added to the standard tace menu,
25 "gif". This opens up a separate menu, with prompt "acedb-gif> ". In
26 this menu you can issue the following commands:<P>
27 (command options inside [brackets] are optional, the vertical bar '|' indicates a choice of possible options, words in <I>italics</I> are values specified by the user.)
28
29 <H2>Commands</H2>
30
31
32 <DL>
33 <DT><B>dimensions [-D <I>displaytype</I>] <I>x y</I></B></DT>
34 <DD>This sets the dimensions in pixels of the image that subsequent
35 command will create. The default sizes for all or only a
36 specified displaytype will be reset.
37 <BR>
38 Note on version 4.7 and earlier : no -D option available - only the sizes for
39 displays of type GMAP, FMAP and PMAP will be affected. For multiple
40 dimension changes to take effect you had to quit and re-enter the gif sub-menu.
41 </DD>
42
43 <DT><B>display [-D <I>displaytype</I>] [-view <I>view</I>] [<I>class key</I>]</B></DT>
44 <DD>Graphic display of the current (or the specified object). An object
45 is defined by its class and its key (the object's name).<BR>
46 This is the same action that xace would perform when
47 double-clicking on the object when its listed in the
48 <A HREF=KeySet.html>KeySet window</A>.<BR>
49 The default display mode is the standard <A HREF=Tree.html>Tree
50 Display</A> (e.g. for Author objects) or a graphical map display
51 (e.g. for sequence objects). The -D option can be used to
52 change the default display type. The argument <I>displaytype</I>
53 can be one of display types listed in
54 <CODE><A HREF="Class_Configuration.html">wspec/options.wrm</A></CODE>,
55 where the default type for each class is defined.
56 Typically you would use
57 <CODE>-D TREE</CODE> to force the textual display or
58 <CODE>-D GMAP</CODE> for Map objects, <CODE>-D FMAP</CODE>
59 for Sequence objects or <CODE>-D PMAP</CODE> for Clone objects.<BR>
60 The -view options works for map displays of type GMAP and allows
61 the user to specify the view object to be used to configure the
62 GMAP display. The argument <I>view</I> is a valid name of a View
63 object, which contain column definitions.
64 </DD>
65 <P>
66
67
68 <DT><B>gifdump <I>filename</I></B></DT>
69 <DD>Saves the active graph as a gif-image. The extension ".gif"
70 is added if <I>filename</I>, doesn't already have that suffix.
71 Other information about clickable objects on the graph
72 is written to <I>filename</I>.boxes (if filename has no
73 ".gif" suffix) or <I>basename</I>.boxes (where basename
74 is the <I>filename</I> argument with the ".gif" suffix).
75 The format of the .boxes file is explained below.<BR>
76 This command is typically used after the <B>display</B> or
77 <B>map</B> command.<BR>
78 If <I>filename</I> is not an absolute pathname (starting with '/')
79 the file will be created in current working directory.
80 <BR>
81 Note on version 4.7 and earlier : You should always specify an
82 absolute pathname, and the extensions .gif and .boxes are always
83 added to the filename.
84 <DD>
85 <P>
86
87 <DT><B>psdump <I>filename</I></B></DT>
88 <DD>Saves the active graph as postscript. The extension ".ps"
89 is added if <I>filename</I>, doesn't already have that suffix.
90 This command is typically used after the <B>display</B> or
91 <B>map</B> command.<BR>
92 If <I>filename</I> is not an absolute pathname (starting with '/')
93 the file will be created in current working directory.
94 <BR>
95 Note on version 4.7 and earlier : You should always specify an
96 absolute pathname, and the extensions .ps is not added and should
97 be provided in the <I>filename</I> argument by hand.
98 <DD>
99 <P>
100
101 <DT><B>map <I>map</I> [-view <I>view</I>] [-coords <I>x1</I> <I>x2</I>] [-hideheader] [-whole]</B></DT>
102 <DD>Set up a map display of the object <I>map</I>. The optional -view
103 options has the function as for the <CODE>display</CODE> command.
104 To zoom to a specific section of the map use the -coords option
105 with the coordinate arguments <I>x1</I> and <I>x2</I> or the
106 -whole option to show the entire map in one image.<BR>
107 If the image is used for a Web display, it may be useful
108 to use <CODE>-hideheader</CODE> to blank out the buttons in the top
109 row that you would usually see in this display in xace.<BR>
110 This command doesn't create an image file straight away, use
111 the command <B>gifdump</B> to write out the result image.
112 </DD>
113 <P>
114
115 <DT><B>pmap [-clone <I>name</I>] | [-contig <I>name</I> <I>coord</I>]</B></DT>
116 <DD>Create a physical map display for clones and contigs.
117 Use the command <B>gifdump</B> or <B>psdump</B> to write
118 out the result image.
119 </DD>
120 <P>
121
122 <DT><B>seqget [<I>sequence</I> [-coords <I>x1 x2</I>]]</B></DT>
123 <DD>Sets active sequence for further seq- operations.
124 The following seq- commands are issued in the same command line, e.g.<BR>
125 <CODE>seqget bK714B7 ; seqactions -hide_header ; seqdisplay -visible_coords 10000 40000</CODE>
126
127 </DD>
128 <P>
129
130 <DT><B>seqactions [-dna] [-gf_features] [-hide_header] [-rev_comp]</B></DT>
131 <DD>Change parameters on the active sequence display.</DD>
132 <P>
133
134 <DT><B>seqcolumns {-on <I>name</I>} {-off <I>name</I>} [-list]</B></DT>
135 <DD>Changes column settings on active sequence display.
136 Multiple <CODE>-on ...</CODE> or <CODE>-off ...</CODE>
137 options can be specified. The column names are not case-sensitive,
138 and names containing spaces have to be &quot;quoted&quot;.<BR>
139 The names of available columns can be listed with the <CODE>-list</CODE>
140 option. The columns are listed left to right with a '+' or '-'
141 sign denoting whether they're switched on or off.
142 <BR>
143 Note on version 4.7 and earlier : column names are case-sensitive
144 and the -list option isn't available.
145 </DD>
146 <P>
147
148 <DT><B>seqdisplay [-visible_coords <I>v1 v2</I>]</B></DT>
149 <DD>Creates the actual display for the active sequence.
150 This is typically the last command in a sequence of commands starting
151 with <B>seqget</B>. The image of the active graph can be written
152 out using the gifdump or psdump function (see there).
153 </DD>
154 <P>
155
156 <DT><B>seqfeatures [-file <I>fname</I>] [-version 1|2] [-list] [-source <I>source(s)</I>] [-feature <I>feature(s)</I>]</B></DT>
157 <DD>Writes out sequence features from the current sequence.
158 The arguments for <CODE>-source</CODE> and
159 <CODE>-feature</CODE> are '|' separated lists.
160 It operates over the region specified by the -coords in the previous
161 seqget command.
162 </DD>
163 <P>
164
165 <DT><B>seqdna [-file <I>fname</I>]</B></DT>
166 <DD>Writes out the DNA sequence of the current sequence.
167 It operates over the region specified by the -coords in the previous
168 seqget command.
169 </DD>
170 <P>
171
172 <DT><B>pepget <I>protein | peptide</I> [-coords <I>x1 x2</I>]</B></DT>
173 <DD>Sets current protein for further pep- operations on the same line.</DD>
174 <P>
175
176 <DT><B>pepseq [-file <I>fname</I>]</B></DT>
177 <DD>Exports current peptide sequence.</DD>
178 <P>
179
180 <DT><B>pepalign [-file <I>fname</I>]</B></DT>
181 <DD>Exports homols of current peptide sequence.</DD>
182 <P>
183
184 <DT><B>makemaps -gmap | -pmap | -cmap | -alpha | -all | -seqmap <I>file</I> | -seqclonemap <I>file</I></B></DT>
185 <DD>makes cached maps and sorted class keysets</DD>
186
187 <DT><B>quit</B></DT>
188 <DD>This returns to the standard tace menu.</DD>
189 </DL>
190
191 You can issue any series of commands, creating many
192 gifs from one session of giface.
193
194 <H2>.boxes file format</H2>
195
196 This file can be used in creating WWW displays, where the gif-image
197 is used as a clickable map. The hot-spots on the image can be extracted
198 from the .boxes file.<P>
199 The file is a set of lines :</P>
200
201 <PRE>
202 boxnum x1 y1 x2 y2 <I>class</I>:<I>name</I> <I>extra_text</I>
203 </PRE>
204
205 <P>The boxnum is probably irrelevant to external people. x1,y1,x2,y2 are
206 the bounding box coordinates. The first 'class:name' specifies the
207 object in the box. The extra text is variable information that can be
208 added by the specific display. Often it contains information that can
209 be used for mouseover type behavior. There may be no extra text.</P>
210
211 <H2>Example</H2>
212
213 Here is a sample session:<P>
214
215 <PRE>
216 Unix-prompt: giface ~wormpub/acedb/ace4/cam
217 acedb&gt; gif
218 acedb-gif&gt; dim 600 480
219 acedb-gif&gt; map Sequence-III -view MAP-sequence
220 acedb-gif&gt; gifdump /tmp/seqIII
221 ...
222 acedb-gif&gt; quit
223 // 0 Active Objects
224 acedb&gt; quit
225
226 // A bientot
227
228 Unix-prompt:
229 </PRE>
230
231
232 <P>
233
234 to <a href="TOC.html">Table of Contents</a><p>
235
236 last edited: May 1999<p>
237
238 </BODY>
239