A
point of emphasis: bioLegato is a program that runs other programs. Put
another way, just about any
program on the system, any program at all, can be launched from
bioLegato.
You can launch a script or a binary. The script could launch other
scripts or binaries. If your output is in the form of a table, you
could launch a spreadsheet. If the output is sequence, you can launch
another bioLegato window! You really have to use bioLegato for awhile
to appreciate
how powerful this capability is. |
bioLegato
instance |
script |
menu
directories |
birch - launcher for BIRCH
programs |
$birch/script/birch |
$birch/dat/birch $birch/local/dat/birch |
bldna - DNA sequence analysis |
$birch/script/bldna | $birch/dat/bldna $birch/local/dat/bldna |
blprotein - protein sequence
analysis |
$birch/script/blprotein | $birch/dat/blprotein $birch/local/dat/blprotein |
blmarker - molecular markers |
$birch/script/blmarker | $birch/dat/blmarker $birch/local/dat/blmarker |
bltree - phylogenetic trees |
$birch/script/bltree | $birch/dat/bltree $birch/local/dat/bltree |
Before
you start - You really need to
have a good idea of how to run your program at the command line
before you try to make a bioLegato menu item to run it. Read the manual
pages
or other documentation. Try it out. It will save you a lot of time and
frustration. |
#--------------- PROT2NUC - Reverse Translation ( 4/10/06) -----------------
item:PROT2NUC - reverse translation
itemmethod: sed "s/[#%]/>/" <in1 | prot2nuc -l$LINLEN -g$GROUP > in1.out; ($GDE_TEXTEDIT in1.out; rm in1*)&
itemhelp: doc/xylem/prot2nuc.txt
itemopen:gde_help_viewer.csh
arg:LINLEN
arglabel:CODONS PER LINE
argtype:slider
argmin:5
argmax:100
argvalue:25
arg:GROUP
arglabel:NUMBERING INTERVAL (amino acids/codons)
argtype:slider
argmin:5
argmax:100
argvalue:5
in:in1
informat:flat
insave:
Note
on bioLegato HELP The example above shows the syntax for specifying a help file to be opened in when the HELP button is pressed in a GDE item menu. The general formula is: itemhelp:filename itemopen:program where filename is the file to open (path is relative to the GDE_HELP_DIR directory) and program is the program to open the file. filename can also be a URL. program is usually gde_help_viewer.csh, which chooses the viewer based on the file extension. There is one exception. Where a URL points to a named anchor in an HTML document (ie. a URL containing a '#' character) use itemopen:browser.csh gde_help_viewer.csh will not properly handle these types of URLs, so browser.csh can be called to force the file to be read in the BIRCH default browser. All help files must be accessed through the $GDE_HELP_DIR. If you need to specify a path to files that are not part of the main BIRCH distribution, you can use the 'root' link, which resides in all GDE help directories. This points to the root of the directory tree, '/'. So, for example, to get your biolegato item to display the help file found in: /export/data/programs/emboss/share/EMBOSS/doc/programs/html/prettyplot.html Add the following lines to the .item file: itemhelp:root/export/data/programs/emboss/share/EMBOSS/doc/programs/html/prettyplot.html itemopen:gde_help_viewer.csh To point to files in your $BIRCH/local directory, the help directories also have a symbolic link called 'local' eg. itemhelp:local/doc/filename |
itemmethod: sed "s/[#%]/>/" <in1 >in1.test; $GDE_TEXTEDIT in1.test; cat in1.test | prot2nuc -l$LINLEN -g$GROUP > in1.out; ($GDE_TEXTEDIT in1.out; rm in1*)&
will let you verify that the sed command worked corrrectly before
prot2nuc is run.