comparison funannotate_compare.xml @ 0:857f7ac611e1 draft

"planemo upload commit 87560553f1dbbd3e0ab7d7157fa5a7f32f61dca1"
author iuc
date Mon, 04 Oct 2021 19:38:37 +0000
parents
children 3187e8a44739
comparison
equal deleted inserted replaced
-1:000000000000 0:857f7ac611e1
1 <tool id="funannotate_compare" name="Funannotate compare" profile="20.01" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
2 <description>annotations</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <requirements>
7 <expand macro="requirements" />
8 </requirements>
9 <version_command>funannotate check --show-versions</version_command>
10 <command><![CDATA[
11 #set $inputs = ""
12 #for i, f in enumerate($input):
13 #set $inputs = $inputs + " input" + str($i) + ".gbk"
14 ln -s '$f' input${i}.gbk &&
15 #end for
16
17 funannotate compare
18 --input
19
20 $inputs
21
22 --out output
23
24 --database '$database.fields.path'
25
26 #if $run_dnds in ['estimate', 'full']:
27 --run_dnds ${run_dnds}
28 #end if
29
30 ## TODO add --outgroup option some day (hard to get an up to date/customizable list)
31
32 --go_fdr ${go_fdr}
33
34 --heatmap_stdev ${heatmap_stdev}
35
36 --num_orthos ${num_orthos}
37
38 #if $proteinortho:
39 --proteinortho '${proteinortho}'
40 #end if
41
42 --ml_method ${ml.ml_method}
43
44 #if $ml.ml_method == 'raxml':
45 --bootstrap '${ml.bootstrap}'
46 #end if
47
48 --cpus \${GALAXY_SLOTS:-2}
49
50 &&
51
52 mkdir -p '$output.files_path' &&
53 cp -R output/* '$output.files_path' &&
54 cp output/index.html '$output'
55 ]]></command>
56 <inputs>
57 <param argument="--input" type="data" format="genbank" multiple="true" label="Genome annotations in genbank format" help="Outputs from 'Funannotate predict annotation' tool" />
58
59 <param name="database" label="Funannotate database" type="select">
60 <options from_data_table="funannotate">
61 <column name="value" index="0" />
62 <column name="name" index="1" />
63 <column name="path" index="3" />
64 <filter type="sort_by" column="0" />
65 <filter type="static_value" column="2" value="1.0" />
66 </options>
67 </param>
68
69 <param argument="--run_dnds" type="select" label="Calculate dN/dS ratio on all orthologs">
70 <option value="no" selected="True">No</option>
71 <option value="estimate">estimate</option>
72 <option value="full">full</option>
73 </param>
74
75 <param argument="--go_fdr" type="float" value="0.05" label="P-value for FDR GO-enrichment" />
76 <param argument="--heatmap_stdev" type="float" value="1.0" label="Cut-off for heatmap" />
77 <param argument="--num_orthos" type="integer" value="500" label="Number of Single-copy orthologs to use for ML" />
78 <param argument="--proteinortho" type="data" format="tabular" optional="true" label="Proteinortho POFF results" help="TSV format, if available"/>
79
80 <conditional name="ml">
81 <param argument="--ml_method" type="select" label="Maximum Likelihood method">
82 <option value="iqtree" selected="True">iqtree</option>
83 <option value="raxml">raxml</option>
84 </param>
85 <when value="iqtree" />
86 <when value="raxml">
87 <param argument="--bootstrap" type="integer" value="100" label="Number of boostrap replicates to run with RAxML" />
88 </when>
89 </conditional>
90
91 <!-- Need this to change path in the test funannotate_db -->
92 <param type="hidden" name="uglyTestingHack" value="" />
93 </inputs>
94 <outputs>
95 <data name='output' format='html' label="${tool.name} on ${on_string}: report" />
96 </outputs>
97 <tests>
98 <test>
99 <param name="input" value="compare/Genus_species.gbk,compare/Other_species.gbk,compare/Other_beast.gbk,compare/Yet_another.gbk" />
100 <param name="database" value="2021-07-20-120000" />
101 <param name="outputs" value="gbk" />
102 <conditional name="ml">
103 <param name="ml_method" value="raxml" />
104 </conditional>
105 <output name="output">
106 <assert_contents>
107 <has_text text="Report generated on:" />
108 </assert_contents>
109 </output>
110 </test>
111 </tests>
112 <help><![CDATA[
113 Funannotate_ compare
114 --------------------
115
116 Funannotate_ is a pipeline for genome annotation (built specifically for fungi, but will also work with higher eukaryotes).
117
118 This script does light-weight comparative genomics between funannotated genomes. Output
119 is graphs, phylogeny, CSV files, etc --> visualized in web-browser.
120
121 .. _Funannotate: http://funannotate.readthedocs.io
122 ]]></help>
123 <expand macro="citations" />
124 </tool>