Mercurial > repos > sanbi-uwc > fasttree
comparison fasttree.xml @ 0:614a12d56e58 draft default tip
planemo upload for repository https://github.com/sanbi-sa/tools-sanbi-uwc/tree/master/tools/fasttree commit 4db125fcd73327813d7bd511852bbe9ffc68a25c
author | sanbi-uwc |
---|---|
date | Mon, 09 Jan 2017 08:07:45 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:614a12d56e58 |
---|---|
1 <tool id="fasttree" name="FastTree" version="0.1"> | |
2 <description>infers approximately-maximum-likelihood phylogenetic trees from alignments of nucleotide or protein sequences.</description> | |
3 | |
4 <requirements> | |
5 <requirement type="package" version="2.1.9">fasttree</requirement> | |
6 </requirements> | |
7 | |
8 <command detect_errors="aggressive"> | |
9 <![CDATA[ | |
10 OMP_NUM_THREADS=\${GALAXY_SLOTS:-1} && | |
11 export OMP_NUM_THREADS && | |
12 FastTreeMP | |
13 #if ( ( str( $advanced_options.advanced_options_selector ) == 'false' | |
14 and str( $advanced_options.alignment_type1 ) == 'nucl' ) or | |
15 ( str( $advanced_options.advanced_options_selector ) == 'true' | |
16 and str( $advanced_options.alignment_type_selection.alignment_type2 ) == 'nucl' ) ): | |
17 -nt | |
18 #end if | |
19 #if str( $advanced_options.advanced_options_selector ) == 'true': | |
20 $advanced_options.fastest | |
21 $advanced_options.gamma | |
22 $advanced_options.noml | |
23 $advanced_options.nosupport | |
24 $advanced_options.log | |
25 #if str( $advanced_options.alignment_type_selection.alignment_type2 ) == 'nucl': | |
26 $advanced_options.alignment_type_selection.nucl_alignment_model | |
27 #else | |
28 $advanced_options.alignment_type_selection.prot_alignment_model | |
29 #end if | |
30 #end if | |
31 '${input_alignment}' > '${output_tree}' | |
32 ]]> | |
33 </command> | |
34 | |
35 <inputs> | |
36 <param name="input_alignment" type="data" format="fasta,phylip" | |
37 label="Multiple sequence alignment"/> | |
38 <conditional name="advanced_options"> | |
39 <param name="advanced_options_selector" type="select" label="Advanced options"> | |
40 <option value="true">Yes</option> | |
41 <option value="false" selected="True">No</option> | |
42 </param> | |
43 <when value="true"> | |
44 <param argument="-fastest" type="boolean" truevalue="-fastest" falsevalue="" | |
45 label="Fastest mode (recommended for > 50,000 sequences)"/> | |
46 <param argument="-gamma" type="boolean" truevalue="-gamma" falsevalue="" | |
47 label="Rescale likelihoods using Gamma20 model" /> | |
48 <param argument="-noml" type="boolean" truevalue="-noml" falsevalue="" | |
49 label="Disable Maximum-Likelihood topology refinement step" /> | |
50 <param argument="-nosupport" type="boolean" truevalue="-nosupport" falsevalue="" | |
51 label="Disable computation of support values for tree splits" /> | |
52 <param argument="-log" type="boolean" truevalue="-log output_log.txt" falsevalue="" | |
53 label="Save log file" /> | |
54 <conditional name="alignment_type_selection"> | |
55 <param name="alignment_type2" type="select" label="Alignment type"> | |
56 <option value="nucl">Nucleotide</option> | |
57 <option value="prot" selected="True">Protein</option> | |
58 </param> | |
59 <when value="nucl"> | |
60 <param name="nucl_alignment_model" label="Alignment model" type="select"> | |
61 <option value="" selected="True">Jukes-Cantor+CAT</option> | |
62 <option value="-gtr">GTR+CAT</option> | |
63 </param> | |
64 </when> | |
65 <when value="prot"> | |
66 <param name="prot_alignment_model" label="Alignment model" type="select"> | |
67 <option value="">JTT+CAT</option> | |
68 <option value="-wag">WAG+CAT</option> | |
69 <option value="-lg">LG+CAT</option> | |
70 </param> | |
71 </when> | |
72 </conditional> | |
73 </when> | |
74 <when value="false"> | |
75 <param name="alignment_type1" type="select" label="Alignment type"> | |
76 <option value="nucl">Nucleotide</option> | |
77 <option value="prot" selected="True">Protein</option> | |
78 </param> | |
79 </when> | |
80 </conditional> | |
81 | |
82 </inputs> | |
83 | |
84 <outputs> | |
85 <data name="output_tree" format="nhx" /> | |
86 <data name="output_log" format="txt" label="Log from ${tool.name} on ${on_string}" from_work_dir="output_log.txt"> | |
87 <filter>advanced_options['advanced_options_selector'] == 'true' and advanced_options['log'] is True</filter> | |
88 </data> | |
89 </outputs> | |
90 | |
91 <tests> | |
92 <test> | |
93 <param name="input_alignment" value="sample_aln1.fasta" ftype="fasta" /> | |
94 <param name="advanced_options_selector" value="false" /> | |
95 <param name="alignment_type1" value="nucl" /> | |
96 <output name="output_tree"> | |
97 <assert_contents> | |
98 <has_text_matching expression="^^\(\(\(471528:[^,]+,\(\(484305:[^,]+,\(471785:[^,]+,\(484347:[^,]+,484343:" /> | |
99 </assert_contents> | |
100 </output> | |
101 </test> | |
102 <test> | |
103 <param name="input_alignment" value="sample_aln2.fasta" ftype="fasta" /> | |
104 <param name="advanced_options_selector" value="false" /> | |
105 <output name="output_tree"> | |
106 <assert_contents> | |
107 <has_text_matching expression="^\(\(N3970:\d\.\d+,N3339:\d\.\d+\)\d+\.\d+:\d\.\d+,\(\(\(\(N3243:\d\.\d+,\(\(N3234:\d\.\d+,\(N500:" /> | |
108 </assert_contents> | |
109 </output> | |
110 </test> | |
111 <test> | |
112 <param name="input_alignment" value="sample_aln2.fasta" ftype="fasta" /> | |
113 <param name="advanced_options_selector" value="true" /> | |
114 <param name="log" value="True" /> | |
115 <output name="output_log"> | |
116 <assert_contents> | |
117 <has_text text="Amino acid distances: BLOSUM45 Joins: balanced Support: SH-like 1000" /> | |
118 </assert_contents> | |
119 </output> | |
120 </test> | |
121 </tests> | |
122 | |
123 <help> | |
124 <![CDATA[ | |
125 FastTree infers approximately-maximum-likelihood phylogenetic trees from | |
126 alignments of nucleotide or protein sequences. For more information see | |
127 the `FastTree`_ website. | |
128 | |
129 .. _FastTree: http://www.microbesonline.org/fasttree | |
130 ]]> | |
131 </help> | |
132 | |
133 <citations> | |
134 <citation type="doi">10.1093/molbev/msp077</citation> | |
135 <citation type="doi">10.1371/journal.pone.0009490</citation> | |
136 </citations> | |
137 </tool> |