source: trunk/GDEHELP/ARB_GDEmenus.source

Last change on this file was 19234, checked in by westram, 21 months ago
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1// special conventions:
2//
3// * each external command ('itemmethod') runs in its separate directory under ~/.arb_tmp
4// * if sequences are exported ARB writes them in GenBank format into a tmpfile (e.g. sth like '/tmp/gde3170_0')
5//   In 'itemmethod' every occurrence of 'TmpInputFile' (as specified at entry 'in:') is replaced by the name of that tempfile.
6//   Some macros defined below expect that placeholder, i.e. always use 'TmpInputFile' for 'in:'!
7// * if sequences are (re-)imported, ARB prepares a temporary output-file. itemmethod shall use the placeholder 'TmpOutputFile'
8//   to generate its content. Always use 'TmpOutputFile' for 'out:'.
9//   Do not remove TmpOutputFile using RM_LOCAL_FILES. It is expected and will be removed by ARB_GDE (after command termination).
10// * 'arg:DISPLAY_FUNC' shall be a single command (to be chainable with && in itemmethod)
11
12// GOTO_LOCAL_DIR and RM_LOCAL_FILES need to be used on top-script level
13// (opening sub-shells might change value of $$)
14
15#define GOTO_LOCAL_DIR          mkdir -p ~/.arb_tmp/$$; cd ~/.arb_tmp/$$
16#define RM_LOCAL_FILES(FILES)   GOTO_LOCAL_DIR ; cd .. ; rm -rf $$
17
18#define GENERATE(OUTFILE,FORMAT) arb_convert_aln --arb-notify -GenBank TmpInputFile -FORMAT OUTFILE
19
20#define GEN_PHYLIP(OUTFILE)     GENERATE(OUTFILE,phylip)
21#define GEN_FASTDNAML(OUTFILE)  GENERATE(OUTFILE,fastdnaml)
22#define GEN_NEXUS(OUTFILE)      GENERATE(OUTFILE,NEXUS)
23
24#define TEE_TO(cmd,log)            ( cmd 2>&1 ) | tee log
25
26#define RUN_IN_WINDOW_TO_LOG(cmd,log)  ${ARB_XCMD} bash -x -c @@LD_LIBRARY_PATH="${ARB_LIBRARY_PATH:-/usr/arb/lib}";export LD_LIBRARY_PATH; TEE_TO(cmd,log); arb_wait@@
27#define RUN_IN_WINDOW(cmd)             RUN_IN_WINDOW_TO_LOG(cmd,win_$AGDE_JOBID.log); arb_catlog win_$AGDE_JOBID.log
28// Note: @@ will result in a single quote. see ../ARB_GDE/GDE_ParseMenu.cxx@WHY_USE_DOUBLE_AT
29// $AGDE_JOBID differs between calls and gets derived from item-entry
30
31#define STOP_ON_FAILURE(WHAT_FAILED) (arb_message "Error running WHAT_FAILED (inspect console for details)";false)
32// intended use '( command || STOP_ON_FAILURE(command-description)) && ( dependent-command || STOP_ON_FAILURE(dependent-command-description) && ...)'
33
34#include <warning.genmenu>
35
36// ----------------------------------------
37menu:Export
38menumeta: E
39#include <export.genmenu>
40
41// ----------------------------------------
42menu:Print
43menumeta: r
44#include <pretty_print.genmenu>
45
46#include <sativa.genmenu>
47
48// ----------------------------------------
49menu:Import
50menumeta:I
51#include <import.genmenu>
52
53// ----------------------------------------
54menu:Align
55menumeta:A
56#include <align.genmenu>
57
58// ----------------------------------------
59menu:SAI
60menumeta:S
61#include <dnamlrates.genmenu>
62
63// ----------------------------------------
64menu:Incremental phylogeny
65menumeta:c
66#include <inc_fastdnaml.genmenu>
67
68// ----------------------------------------
69menu:Phylogeny Distance Matrix
70menumeta:D
71#include <phylip_dist_org.genmenu>
72#include <phylip_dist.genmenu>
73
74// ----------------------------------------
75menu:Phylogeny max. parsimony
76menumeta:p
77#include <phylip_pars.genmenu>
78
79// ----------------------------------------
80menu:Phylogeny max. Likelihood EXP
81menumeta:X
82#include <fastdnaml.genmenu>
83
84// ----------------------------------------
85menu:Phylogeny max. Likelihood
86menumeta:L
87
88#define RAXML_NUC
89#include <raxml7.genmenu>
90#undef RAXML_NUC
91#include <raxml7.genmenu>
92
93#define PHYML_NUC
94#include <phyml_20130708.genmenu>
95#undef PHYML_NUC
96#include <phyml_20130708.genmenu>
97
98#include <phyml.genmenu>
99#include <phylip_ml.genmenu>
100
101#include <raxml8.genmenu>
102
103// ----------------------------------------
104menu:Phylogeny (Other)
105menumeta:O
106
107#define FASTTREE_NUC
108#include <fasttree.genmenu>
109#undef FASTTREE_NUC
110#include <fasttree.genmenu>
111
112#include <mrbayes.genmenu>
113#include <puzzle.genmenu>
114#include <desoete.genmenu>
115
116// ----------------------------------------
117// custom menu 'User' is loaded into 'Tools'-menu
118// (has no members by default; meant to be used from custom .menu definitions)
119menu:User
120menumeta:U
121
Note: See TracBrowser for help on using the repository browser.