source: branches/profile/HELP_SOURCE/oldhelp/gde_menus.hlp

Last change on this file was 12834, checked in by westram, 10 years ago
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 12.8 KB
Line 
1UP      arb.hlp
2UP      agde.hlp
3UP      glossary.hlp
4UP      save.hlp
5
6TITLE           Customizing GDE menus
7
8DESCRIPTION     ARB uses the GDE menus to plugin external tools
9
10                This helpfile contains parts of the original GDE helpfile
11                and has been modified to fit to the way
12                GDE menus are used inside ARB.
13
14SECTION Description of GDE menus as used in ARB
15
16        The GDE uses a menu description language to
17        define what external programs it can call, and what
18        parameters and data to pass to each function. This
19        language allows users to customize their own
20        environment to suite individual needs.
21
22        The following is how the GDE handles external
23        programs when selected from a menu:
24
25        Each step in this process is described in the file
26
27                $ARBHOME/lib/gde/arb.menu
28
29        You may modify that file to include other external
30        tools into the ARB interface.
31
32        Alternatively you can add files with suffix '.menu' either into
33        the global directory '$ARBHOME/lib/gde/' (menus defined there will
34        be available to all users) or into '~/.arb_prop/gde/' (menus defined
35        there will not be available to other users).
36
37SECTION GDE menus language
38
39        The language used in this file describes three phases
40        to an external function call. The first phase
41        describes the menu item as it will appear, and the
42        Unix command line that is actually run when it is
43        selected. The second phase describes how to prompt
44        for the parameters needed by the function. The third
45        phase describes what data needs to be passed as
46        input to the external function, and what data (if any)
47        needs to be read back from its output.
48
49        The form of the language is a simple keyword/value
50        list delimited by the colon (:) character. The
51        language retains old values until new ones are set.
52        For example, setting the menu name is done once for
53        all items in that menu, and is only reset when the
54        next menu is reached.
55
56        The keywords for phase one are:
57
58                menu:menu name      Name of current menu
59                menumeta:meta_key   Meta key equivalence (quick keys)
60                menumask:expert     Whole menu will be inaccessible in ARBs novice mode
61
62                item:item name      Name of current menu item
63                itemmeta:meta_key   Meta key equivalence (quick keys)
64                itemhelp:help_file  Help file (either full path, or in $ARBHOME/lib/help)
65                itemmethod:         Unix command
66                itemmask:expert     Whole menu will be inaccessible in ARBs novice mode
67
68                seqtype:TYPE
69                        Known TYPEs:
70                              'A' -> select amino acid sequences
71                              'N' -> select nucleotide sequences
72                              '*' -> select ANY sequences
73                              '-' (or whole entry missing) -> do not select sequences
74
75        The itemmethod command is a bit more involved, it
76        is the Unix command that will actually run the
77        external program intended.
78
79        It is one line long, and can be up to 4096 characters in
80        length. It can have embedded variable names (starting
81        with a '$') that will be replaced with appropriate values
82        later on.
83
84        It can consist of multiple Unix commands separated by
85        semi-colons (;) and may contain shell scripts and
86        background processes as well as simple command names. If
87        one of the commands needs access to the running ARB, the
88        whole command should be run asynchronously, i.e. be run
89        using '( command ) &'. Otherwise the command may lock.
90
91
92        The keywords for phase two are:
93
94            arg:argument_variable_name
95
96                        Name of this variable. It will appear
97                        in the itemmethod: line with a dollar
98                        sign ($) in front of it.
99
100            argtype:TYPE
101                        The type of graphic object
102                        representing this argument.
103
104                        Known types are
105
106                              choice_list
107                              choice_menu
108                              chooser
109                              filename
110                              sai
111                              slider
112                              text
113                              tree
114                              weights
115
116            arglabel:descriptive label
117
118                        A short description of what this
119                        argument represents
120
121            argmin:minimum_value (integer)
122
123                        Used for sliders.
124
125            argmax:maximum_value (integer)
126
127                        Used for sliders.
128
129            argvalue:default_value
130
131                        It is the numeric value associated with
132                        sliders or the default choice in
133                        choosers, choice_menus, and choice_lists
134                        (the first choice is 0, the second is 1 etc.)
135
136            argtext:default value
137
138                        text: Default value
139                        filename: default extension
140                       
141
142            argchoice:displayed value:passed value
143
144                        Used for choosers and
145                        choice_menus. The first value is
146                        displayed on screen, and the second
147                        value is passed to the itemmethod
148                        line.
149
150            argmask:expert
151
152                        Whole arg will be inaccessible in ARBs novice mode
153
154
155        The keywords for phase three are as follows:
156
157            in:input_file
158
159                        GDE will replace this name with a randomly generated temporary file
160                        name. It will then write the selected data out to this file.
161
162                        Convention: always use TmpInputFile as placeholder
163
164            informat:file_format
165
166                        Write data to this file for input to
167                        this function. Currently support
168                        values are Genbank, and flat.
169
170            intyped:DETAILS
171
172                        Whether to save sequence type information.
173
174                        Known DETAILS:
175
176                              basic        default; plain sequences exported
177                              detailed     -> prefix sequence name by IDCHAR
178
179                        Known IDCHARs:
180
181                              '#'       RNA / DNA
182                              '%'       PROTEIN
183                              '@'       MASK (obsolete)
184                              '"'       TEXT or unknown
185
186            insave:
187
188                        Do not remove this file after running
189                        the external function. This is useful
190                        for functions put in the background.
191
192            out:output_file
193
194                        GDE will replace this name with a randomly generated temporary file
195                        name. It is up to the external function to fill this file with any results that
196                        might be read back into the GDE.
197
198                        Convention: always use TmpOutputFile as placeholder
199
200            outformat:file_format
201
202                        The data in the output file will be in
203                        this format. Currently support
204                        values are colormask, Genbank, and
205                        flat.
206
207            outaligned:yes
208
209                        GDE assumes external tool is an aligner or similar
210                        which only changes the alignment of bases.
211                        Sequence data will be re-imported w/o asking questions.
212
213                        Several minor changes in sequence data (by external tool)
214                        will be accepted and silently reverted. This includes
215                             - changing 'U' into 'T' (or vv)
216                             - case changes
217                             - gap changes ('.' to '-' or vv)
218
219            outsave:
220
221                        Do not remove this file after reading.
222                        This is useful for background tasks.
223
224
225        Here is a sample dialog box, and it's entry in the
226        .GDEmenus file:
227
228        Using the default parameters given in the dialog
229        box, the executed Unix command line would be:
230
231             (tr '[a-z]' '[A-Z]' < .gde_001 >.gde_001.tmp ; mv .gde_001.tmp CAPS ; gde CAPS -Wx medium ; rm .gde_001 ) &
232
233        where .gde_001 is the name of the temporary file
234        generated by the GDE which contains the selected
235        sequences in flat file format. Since the GDE runs
236        this command in the background ('&' at the end) it
237        is necessary to specify the insave: line, and to
238        remove all temporary files manually. There is no
239        output file specific because the data is not loaded
240        back into the current GDE window, but rather a new
241        GDE window is opened on the file. A simpler
242        command that reloads the data after conversion
243        might be:
244
245              item:          All caps
246              itemmethod:    tr '[a-z]' '[A-Z]' <INPUT > OUTPUT
247              in:            INPUT
248              informat:      flat
249              out:           OUTPUT
250              outformat:     flat
251
252        In this example, no arguments are specified, and so
253        no dialog box will appear. The command is not run
254        in the background, so the GDE can clean up after
255        itself automatically. The converted sequence is
256        automatically loaded back into the current GDE
257        window.
258
259        In general, the easiest type of program to integrate
260        into the GDE is a program completely driven from a
261        Unix command line. Interactive programs can be
262        tied in (MFOLD for example), however shell scripts
263        must be used to drive the parameter entry for these
264        programs. Programs of the form:
265
266                program_name -a1 argument1 -a2 argument2 -f inputfile -er errorfile > outputfile
267
268        can be specified in the .GDEmenus file directly. As
269        this is the general form of most one Unix commands,
270        these tend to be simpler to implement under the
271        GDE.
272
273        As functions grow in complexity, they may begin to
274        need a user interface of their own. In these cases, the
275        command line calling arguments are still necessary
276        in order to allow the GDE to hand them the
277        appropriate data, and possible retrieve results after
278        some external manipulation.
279
280
281
282SECTION Copyright Notice
283
284        The Genetic Data Environment (GDE) software and
285        documentation are not in the public domain.
286        Portions of this code are owned and copyrighted by
287        the The Board of Trustees of the University of
288        Illinois and by Steven Smith. External functions
289        used by GDE are the proporty of, their respective
290        authors. This release of the GDE program and
291        documentation may not be sold, or incorporated into
292        a commercial product, in whole or in part without
293        the expressed written consent of the University of
294        Illinois and of its author, Steven Smith.
295
296        All interested parties may redistribute the GDE as
297        long as all copies are accompanied by this
298        documentation, and all copyright notices remain
299        intact. Parties interested in redistribution must do
300        so on a non-profit basis, charging only for cost of
301        media. Modifications to the GDE core editor should
302        be forwarded to the author Steven Smith. External
303        programs used by the GDE are copyright by, and are
304        the property of their respective authors unless
305        otherwise stated.
306
307
308        While all attempts have been made to insure the
309        integrity of these programs:
310
311SECTION Disclaimer
312
313        THE UNIVERSITY OF ILLINOIS, HARVARD
314        UNIVERSITY AND THE AUTHOR, STEVEN
315        SMITH GIVE NO WARRANTIES, EXPRESSED
316        OR IMPLIED FOR THE SOFTWARE AND
317        DOCUMENTATION PROVIDED, INCLUDING,
318        BUT NOT LIMITED TO WARRANTY OF
319        MERCHANTABILITY AND WARRANTY OF
320        FITNESS FOR A PARTICULAR PURPOSE.
321        User understands the software is a research tool for
322        which no warranties as to capabilities or accuracy are
323        made, and user accepts the software "as is." User
324        assumes the entire risk as to the results and
325        performance of the software and documentation. The
326        above parties cannot be held liable for any direct,
327        indirect, consequential or incidental damages with
328        respect to any claim by user or any third party on
329        account of, or arising from the use of software and
330        associated materials. This disclaimer covers both the
331        GDE core editor and all external programs used by
332        the GDE.
333
334
Note: See TracBrowser for help on using the repository browser.