source: branches/nameserver/GDEHELP/MENUS/puzzle.menu

Last change on this file was 17595, checked in by westram, 6 years ago
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.5 KB
Line 
1item:FastTree2 (nucleotide)
2itemmeta:F
3seqtype:N
4itemmethod:(GOTO_LOCAL_DIR; \
5            arb_sed 's/#/>/' <TmpInputFile | \
6            arb_sed 's/%/>/' | \
7            arb_sed 's/"/>/'| \
8            arb_sed 's/@/>/' | \
9            arb_sed '/^[^>]/ y/./-/' > fasttree_in; \
10            RUN_IN_WINDOW(( ($ARBHOME/bin/FastTree $FAST $MLMODEL -nt fasttree_in > fasttree_out || STOP_ON_FAILURE(FastTree)) && \
11                           $DISPLAY_FUNC));)&
12
13
14arg:DISPLAY_FUNC
15argtype:choice_menu
16arglabel:What to do with the tree?
17argchoice:Load into ARB ('tree_fasttree_//'):$ARBHOME/bin/arb_read_tree tree_fasttree_$$ fasttree_out "PRG=FastTree$FAST FILTER=$FILTER MODEL=!$MLMODEL"
18argchoice:Treetool:treetool fasttree_out
19
20
21arg:FAST
22argtype:choice_menu
23arglabel:speed up the neighbor joining phase\n(recommended for >50,000 sequences)
24argchoice:No:
25argchoice:Yes:-fastest
26
27arg:MLMODEL
28argtype:choice_menu
29arglabel:ML Model
30argchoice:Jukes-Cantor:
31argchoice:GTR:-gtr
32
33
34in:TmpInputFile
35informat:flat
36insave:
37
38//----------------------
39
40#define PREPARE_MRBAYES_INFILE(INFILE) \
41        ( \
42                arb_sed -i '/LABELPOS/d' INFILE     `#MrBayes does not understand the LABELPOS command, therefore it is removed.` && \
43                arb_sed -i '/EQUATE/d' INFILE       `#MrBayes does not support EQUATE macros, remove them.` && \
44                arb_sed -i '/OPTIONS/,/;/d' INFILE  `#MrBayes does not support the OPTIONS block, remove it. (delete everything between OPTIONS and ';')` \
45        )
46
47#define NEXUS2NEWICK(FROM,APPENDTO) ($ARBHOME/bin/arb_nexus2newick.awk FROM >> APPENDTO || STOP_ON_FAILURE(arb_nexus2newick))
48
49item:MrBayes
50itemmeta:B
51seqtype:*
52itemmethod:(GOTO_LOCAL_DIR; \
53            GEN_NEXUS(mrbayes_in) && \
54            PREPARE_MRBAYES_INFILE(mrbayes_in) && \
55            ( \
56                `# append the mrbayes command block to the nexus file`; \
57                COMMAND="begin mrbayes; \
58                         set autoclose=yes nowarn=yes; \
59                         lset nst=$NST rates=$RATES ngammacat=$NGAMMACAT; \
60                         mcmc ngen=$NGEN nchains=$NCHAINS temp=$TEMP samplefreq=$SAMPLEFREQ burninfrac=$BURNINFRAC; \
61                         sump; \
62                         sumt Outputname=mrbayes_out Conformat=simple; \
63                     end;" \
64                && echo $COMMAND >> mrbayes_in; \
65            ) && \
66            RUN_IN_WINDOW(( ($ARBHOME/bin/mb mrbayes_in || STOP_ON_FAILURE(MrBayes)) && \
67                            NEXUS2NEWICK(mrbayes_out.con.tre,mr_bayes_out.newick) && \
68                            $DISPLAY_FUNC));)&
69
70itemhelp:MrBayes.help
71
72arg:DISPLAY_FUNC
73argtype:choice_menu
74arglabel:What to do with the tree?
75argchoice:Load into ARB ('tree_mrBayes_//'):$ARBHOME/bin/arb_read_tree tree_mrbayes_$$ mr_bayes_out.newick "PRG=MrBayes FILTER=$FILTER RATE=$RATES"
76argchoice:Treetool:treetool mr_bayes_out.newick
77
78arg:NST
79argtype:choice_menu
80arglabel:Number of substitution types
81argchoice:6:6
82argchoice:mixed:mixed
83argchoice:1:1
84argchoice:2:2
85
86arg:RATES
87argtype:choice_menu
88arglabel:Model for among-site rate variation
89argchoice:A proportion of the sites are invariable:propinv
90argchoice:No rate variation across sites:equal
91argchoice:Gamma-distributed rates across sites:gamma
92argchoice:Autocorrelated rates across sites:adgamma
93argchoice:Mixed invariable/gamma:invgamma
94
95
96arg:NGAMMACAT
97argtype:text
98arglabel:Number of rate categories for the gamma distribution\n(Range [0 .. n])
99argtext:4
100
101arg:NGEN
102argtype:text
103arglabel:Number of cycles for the MCMC algorithm
104argtext:100000
105
106arg:NCHAINS
107argtype:text
108arglabel:Number of chains
109argtext:4
110
111arg:TEMP
112argtype:text
113arglabel:Temperature parameter for heating the chains
114argtext:0.5
115
116arg:SAMPLEFREQ
117argtype:text
118arglabel:Markov chain sample frequency
119argtext:500
120
121arg:BURNINFRAC
122argtype:text
123arglabel:Fraction of samples that will be discarded\nwhen convergence diagnostics are calculated [0..1]
124argtext:0.25
125
126
127in:TmpInputFile
128informat:genbank
129insave:
130
131//------------------------------------------------------------------------------------------
132
133
134item:MrBayes (custom)
135itemmeta:c
136seqtype:*
137itemmethod:(GOTO_LOCAL_DIR; \
138            GEN_NEXUS(mrbayes_in) && \
139            PREPARE_MRBAYES_INFILE(mrbayes_in) && \
140            ( \
141                `# append the mrbayes command block to the nexus file`; \
142                cat $COMMAND_FILE >> mrbayes_in; \
143            ) && \
144            RUN_IN_WINDOW(( ($ARBHOME/bin/mb mrbayes_in || STOP_ON_FAILURE(MrBayes)) && \
145                            NEXUS2NEWICK(mrbayes_out.con.tre,mr_bayes_out.newick) && \
146                            $DISPLAY_FUNC)))&
147
148itemhelp:MrBayesCustom.help
149
150arg:DISPLAY_FUNC
151argtype:choice_menu
152arglabel:What to do with the tree?
153argchoice:Load into ARB ('tree_mrBayes_//'):$ARBHOME/bin/arb_read_tree tree_mrbayes_$$ mr_bayes_out.newick "PRG=MrBayes(custom) FILTER=$FILTER RATE=$RATES"
154argchoice:Treetool:treetool mr_bayes_out.newick
155
156arg:COMMAND_FILE
157argtype:filename
158arglabel:MrBayes command file
159
160in:TmpInputFile
161informat:genbank
162insave:
163
164//------------------------------------------------------------------------------------------
165
166item:TREEPUZZLE ...
167itemmeta: T
168seqtype:*
169itemmethod:(GOTO_LOCAL_DIR; GEN_PHYLIP(infile) && \
170            RUN_IN_WINDOW(((puzzle || STOP_ON_FAILURE(puzzle)) && $DISPLAY_FUNC));\
171            RM_LOCAL_FILES(TmpInputFile outdist) )&
172itemhelp:treepuzzle.help
173
174arg:DISPLAY_FUNC
175argtype:choice_menu
176arglabel:What to do with the tree?
177argchoice:ARB ('tree_puz_//'):arb_read_tree tree_puz_$$ outtree "PRG=PUZZLE FILTER=$FILTER PKG=strimmer/v. haeseler"
178argchoice:Treetool:treetool outtree
179
180in:TmpInputFile
181informat:genbank
182insave:
183
Note: See TracBrowser for help on using the repository browser.