annotate tools_grum.xml @ 2:21c154989717 draft default tip

"planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit b956f127cf3e2e20dda2bb2b93ce8925eea589ef"
author siwaa
date Wed, 10 Aug 2022 12:30:47 +0000
parents 9c1c1c7f0e48
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
1 <tool id="GRUM" name="GRUM parameters estimation" version="1.3.0">
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
2 <description>Estimate the values of parameters of the GRUM lifetime weight trajectories in livestock female model</description>
0
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
3 <requirements>
1
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
4 <container type="singularity">docker://registry.forgemia.inra.fr/grum/grum:1.3</container>
0
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
5 </requirements>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
6 <command detect_errors="aggressive">
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
7 <![CDATA[
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
8 #if str( $selectAction.action ) == 'getDefaultInitial':
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
9 #if str( $selectAction.mammalParamGet.choose ) == 'defaultGoat':
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
10 cp '$__tool_directory__/default/goat_parameters.json' ${parameter_values_file_only};
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
11 #elif str( $selectAction.mammalParamGet.choose ) == 'defaultCow':
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
12 cp '$__tool_directory__/default/cow_parameters.json' ${parameter_values_file_only};
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
13 #end if
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
14 #elif str( $selectAction.action ) == 'estimateParameters':
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
15 #if str( $selectAction.mammalParamSet.choose ) == 'defaultGoat':
1
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
16 cp '$__tool_directory__/default/goat_parameters.json' mammal_parameters.json;
0
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
17 #if str( $selectAction.do_output_parameterValues ) == 'do_output_parameterValues':
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
18 cp '$__tool_directory__/default/goat_parameters.json' ${parameter_values_file};
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
19 #end if
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
20 #elif str( $selectAction.mammalParamSet.choose ) == 'defaultCow':
1
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
21 cp '$__tool_directory__/default/cow_parameters.json' mammal_parameters.json;
0
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
22 #if str( $selectAction.do_output_parameterValues ) == 'do_output_parameterValues':
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
23 cp '$__tool_directory__/default/cow_parameters.json' ${parameter_values_file};
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
24 #end if
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
25 #elif str( $selectAction.mammalParamSet.choose ) == 'customMammal':
1
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
26 cp ${selectAction.mammalParamSet.parameterValues_input} mammal_parameters.json;
0
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
27 #if str( $selectAction.do_output_parameterValues ) == 'do_output_parameterValues':
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
28 cp ${selectAction.mammalParamSet.parameterValues_input} ${parameter_values_file};
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
29 #end if
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
30 #end if
1
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
31 head -n 1 ${selectAction.litter_input} > litter.csv;
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
32 head -n 1 ${selectAction.bw_input} > bw.csv;
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
33 #for $id in $selectAction.ids
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
34 grep $id ${selectAction.litter_input} >> litter.csv;
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
35 grep $id ${selectAction.bw_input} >> bw.csv;
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
36 #end for
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
37 /bin/bash -c "Rscript --verbose /data/grum/siwaa_recipe/grum_siwaa.R litter.csv bw.csv ${selectAction.do_plot_fitted} mammal_parameters.json";
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
38
0
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
39 #if str( $selectAction.do_plot_fitted ) == 'do_plot_fitted':
1
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
40 pdfunite mammal_*.pdf simulation_plots.pdf;
0
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
41 cp simulation_plots.pdf ${simulation_plots};
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
42 #end if
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
43 cp estimated_parameters.csv ${estimated_parameters};
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
44 #end if
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
45 ]]>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
46 </command>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
47 <inputs>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
48 <conditional name="selectAction">
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
49 <param name="action" type="select" label="Select the action to perform">
1
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
50 <option value="estimateParameters" selected="true">estimate mammal parameters values</option>
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
51 <option value="getDefaultInitial">get default mammal initial parameters initial values</option>
0
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
52 </param>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
53 <when value="estimateParameters">
1
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
54 <param name="litter_input" type="data" format="csv" label="Litter file" optional="false"/>
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
55 <param name="bw_input" type="data" format="csv" label="Body weight file" optional="false"/>
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
56 <param name="ids" type="select" checked="true" optional="false" multiple="true" label="Select a set of mammals">
2
21c154989717 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit b956f127cf3e2e20dda2bb2b93ce8925eea589ef"
siwaa
parents: 1
diff changeset
57 <options from_dataset="litter_input" separator=",">
1
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
58 <column name="name" index="0"/>
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
59 <column name="value" index="0"/>
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
60 <filter type="unique_value" name="unique_param" column="0"/>
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
61 <filter type="remove_value" value='"id"' />
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
62 </options>
9c1c1c7f0e48 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 83cff75a84aef58a825abe715aced1922456b088"
siwaa
parents: 0
diff changeset
63 </param>
0
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
64 <conditional name="mammalParamSet">
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
65 <param name="choose" type="select" label="Select the mammal parameters initial values">
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
66 <option value="defaultGoat" selected="true">default Goat parameters initiale values</option>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
67 <option value="defaultCow">default Cow parameters initial values</option>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
68 <option value="customMammal">custom Mammal parameters initial values</option>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
69 </param>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
70 <when value="customMammal">
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
71 <param name="parameterValues_input" type="data" format="json" label="Select a mammal parameters initial values file(json)"/>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
72 </when>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
73 <when value="defaultGoat">
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
74 </when>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
75 <when value="defaultCow">
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
76 </when>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
77 </conditional>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
78 <param name="do_plot_fitted" type="boolean" checked="true" label="Plot fitted"
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
79 truevalue="do_plot_fitted" falsevalue="do_not_plot_fitted" />
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
80 <param name="do_output_parameterValues" type="boolean" checked="true" label="Output the parameter Values file"
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
81 truevalue="do_output_parameterValues" falsevalue="do_not_outputParametersValues" />
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
82 </when>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
83 <when value="getDefaultInitial">
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
84 <conditional name="mammalParamGet">
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
85 <param name="choose" type="select" label="Select the mammal parameter values">
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
86 <option value="defaultGoat" selected="true">default Goat parameters initial values</option>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
87 <option value="defaultCow">default Cow parameters initial values</option>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
88 </param>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
89 <when value="defaultGoat">
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
90 </when>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
91 <when value="defaultCow">
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
92 </when>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
93 </conditional>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
94 </when>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
95 </conditional>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
96 </inputs>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
97 <outputs>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
98 <data format="csv" name="estimated_parameters" label="GRUM estimated parameters" >
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
99 <filter>selectAction['action'] == 'estimateParameters'</filter>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
100 </data>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
101 <data format="pdf" name="simulation_plots" label="GRUM plots" >
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
102 <filter>selectAction['action'] == 'estimateParameters' and selectAction['do_plot_fitted']</filter>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
103 </data>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
104 <data format="json" name="parameter_values_file_only" label="Parameters initial values" >
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
105 <filter>selectAction['action'] == 'getDefaultInitial'</filter>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
106 </data>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
107 <data format="json" name="parameter_values_file" label="Parameters initial values" >
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
108 <filter>selectAction['action'] == 'estimateParameters' and selectAction['do_output_parameterValues']</filter>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
109 </data>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
110 </outputs>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
111 <tests>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
112 <test>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
113 <conditional name="selectAction">
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
114 <param name="action" value="estimateParameters"/>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
115 </conditional>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
116 <param name="litter_input" value="inputs/Litter_test.csv" ftype="csv" />
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
117 <param name="bw_input" value="inputs/BW_test.csv" ftype="csv" />
2
21c154989717 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit b956f127cf3e2e20dda2bb2b93ce8925eea589ef"
siwaa
parents: 1
diff changeset
118 <param name="ids" value='"2004029","2005115"' />
0
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
119 <conditional name="mammalParam">
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
120 <param name="choose" value="defaultGoat"/>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
121 </conditional>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
122 <param name="do_plot_fitted" value="true" />
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
123 <output name="estimated_parameters" ftype="csv">
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
124 <assert_contents>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
125 <has_line line="&quot;ID&quot;,&quot;W0&quot;,&quot;G0&quot;,&quot;kr_1&quot;,&quot;kUa_1&quot;,&quot;kUf_1&quot;,&quot;kn_1&quot;,&quot;kmd_1&quot;,&quot;kr_2&quot;,&quot;kUa_2&quot;,&quot;kUf_2&quot;,&quot;kn_2&quot;,&quot;kmd_2&quot;" />
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
126 <has_line_matching expression="&quot;X2004029&quot;,.*" />
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
127 <has_line_matching expression="&quot;X2005115&quot;,.*" />
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
128 <has_n_columns n="13" sep=","/>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
129 <has_n_lines n="3" />
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
130 </assert_contents>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
131 </output>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
132 </test>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
133 </tests>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
134 <help>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
135 Inputs:
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
136 =======
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
137
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
138 - Litter for each mammal.
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
139 - Sequence of body weight of mammals.
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
140 - (optional) Initial parameter values for the estimation process, if the defaults available are not revelant.
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
141
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
142 Outputs:
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
143 ========
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
144
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
145 - Estimated parameters for each goat (csv file).
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
146 - (optional) Plots of simulations with estimated parameters for each goat (pdf file).
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
147 - (optional) Initial parameters values used for the estimation process (json file)
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
148
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
149 Example:
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
150 ========
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
151
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
152 - Copy to your history files BW_smalltable.csv and Litter_smalltable.csv from GRUM Datasets.
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
153 - Select default initial parameter values set, or provide one.
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
154 - Fill filenames and choose the adequate number of cores.
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
155 - And then execute (it takes around 20 minutes per goat for estimation)
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
156
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
157 </help>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
158 </tool>
c65c94b47771 "planemo upload for repository https://forgemia.inra.fr/grum/grum/-/tree/master/siwaa_recipe/galaxy_tools commit 5dce511538bebef7453c594f68ea7d13e8fc3ea8"
siwaa
parents:
diff changeset
159