source: trunk/GDEHELP/MENUS/fasttree.menu

Last change on this file was 18969, checked in by westram, 3 years ago
  • fix vertical alignment of inputfield-labels (works for multiline labels).
  • reintroduce a multiline label in fasttree window (had been removed with [18838] due to misalignment)
  • change some debug dumps.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1// this menu defines windows for two FastTree interfaces: nucleotide and protein
2// (depending on whether FASTTREE_NUC is defined or not)
3
4#ifdef FASTTREE_NUC
5# define SEQTYPE_NAME nucleotide
6# define SEQTYPE_SHRT NUC
7# define ST_FLAG -nt
8#else
9# define SEQTYPE_NAME protein
10# define SEQTYPE_SHRT PRO
11# define ST_FLAG
12#endif
13
14#define CLEANUP_INPUT \
15        arb_sed 's/#/>/' | \
16        arb_sed 's/%/>/' | \
17        arb_sed 's/"/>/' | \
18        arb_sed 's/@/>/' | \
19        arb_sed '/^[^>]/ y/./-/'
20
21#ifdef USE_OPENMP
22// depends on GUI
23# define FASTTREE_BINARY $ARBHOME/bin/$FASTTREE
24#else
25# define FASTTREE_BINARY $ARBHOME/bin/FastTree
26#endif
27
28#define FASTTREE_CODE \
29        (GOTO_LOCAL_DIR; \
30         <TmpInputFile CLEANUP_INPUT >fasttree_in; \
31         RUN_IN_WINDOW(( (FASTTREE_BINARY $NJMODE $NJ_OPT $MLMODEL -cat '$CAT' $SUPPORT ST_FLAG fasttree_in > fasttree_out || STOP_ON_FAILURE($FASTTREE)) && \
32                         $DISPLAY_FUNC));)&
33
34item:FastTree2 (SEQTYPE_NAME)
35#ifdef FASTTREE_NUC
36       itemmeta:F
37       seqtype:N
38#else
39       itemmeta:p
40       seqtype:A
41#endif
42itemmethod: FASTTREE_CODE
43itemhelp: fasttree.help
44
45arg:DISPLAY_FUNC
46argtype:choice_menu
47arglabel:What to do with the tree?
48argchoice:Load into ARB ('tree_fasttree_//'):$ARBHOME/bin/arb_read_tree tree_fasttree_$$ fasttree_out "PRG=$FASTTREE$NJMODE FILTER=$FILTER MODEL=!$MLMODEL STYPE=SEQTYPE_SHRT"
49argchoice:Treetool:treetool fasttree_out
50
51#ifdef USE_OPENMP
52       arg:FASTTREE
53       argtype:choice_menu
54       arglabel:Use multiprocessor?
55       argchoice:No:FastTree
56       argchoice:Yes:FastTreeMP
57#endif
58
59arg:NJMODE
60argtype:choice_menu
61arglabel:Neighbor joining phase
62argchoice:default:
63argchoice:fastest (recommended >50k species):-fastest
64argchoice:slow (really):-slow
65
66arg:NJ_OPT
67argtype:choice_menu
68arglabel:Weighted neighbor joining?
69argchoice:No:
70argchoice:Yes, as in BIONJ:-bionj
71
72arg:MLMODEL
73argtype:choice_menu
74arglabel:ML Model
75#ifdef FASTTREE_NUC
76       argchoice:Jukes-Cantor:
77       argchoice:GTR:-gtr
78#else
79       argchoice:JTT:
80       argchoice:WAG:-wag
81       argchoice:LG:-lg
82#endif
83
84arg:CAT
85argtype:text
86arglabel:Number of rate categories\n(Range [1..n]; default: 20)
87argtext:20
88
89arg:SUPPORT
90argtype:choice_menu
91arglabel:Support values
92argchoice:1000xresample + Shimodaira Hasegawa test:
93argchoice:Minimum-evolution bootstrap:-nome
94argchoice:None:-nosupport
95
96in:TmpInputFile
97informat:flat
98insave:
Note: See TracBrowser for help on using the repository browser.