source: tags/ms_r16q4/HELP_SOURCE/oldhelp/gde_menus.hlp

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