comparison run_idw_interpolation.xml @ 0:d07fcc660f3c draft

planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/interpolation commit 450e4496f243d6e94d5238358873bbc014fe2f08
author ecology
date Mon, 08 Jan 2024 10:32:25 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:d07fcc660f3c
1 <tool id="interpolation_run_idw_interpolation" name="Run interpolation" version="1.0" profile="22.05">
2 <description>based on Inverse Distance Weighting (IDW)</description>
3 <requirements>
4 <requirement type="package" version="1.20.4">r-getopt</requirement>
5 <requirement type="package" version="3.3_4">r-tmap</requirement>
6 <requirement type="package" version="3.6_26">r-raster</requirement>
7 <requirement type="package" version="2.1_1">r-gstat</requirement>
8 </requirements>
9 <command detect_errors='exit_code'><![CDATA[
10 Rscript '$__tool_directory__/run_idw_interpolation.R'
11 --observationsCsv '$observations_csv'
12 --latitudeColumn '$latitude_column'
13 --longitudeColumn '$longitude_column'
14 --observationsColumn '$observations_column'
15 --studyArea '$study_area'
16 --idwPower '$idw_power'
17 --samplePoints '$sample_points'
18 --sampleType '$sample_type'
19 --legendLabel '$legend_label'
20 --legendPosition '$legend_position'
21 --numberClasses '$number_classes'
22 --dotSize '$dot_size'
23 --colorType '$color_type'
24 --testCase '$test_case'
25 --outputData '$output'
26 ]]></command>
27 <inputs>
28 <param type="data" format="csv" name="observations_csv" label="Select the .csv file including the observations"/>
29 <param type="data" format="geojson" name="study_area" label="Select the .geojson containing the study area"/>
30 <param name="latitude_column" type="data_column" data_ref="observations_csv" label="In which column are the latitude coordinates?"/>
31 <param name="longitude_column" type="data_column" data_ref="observations_csv" label="In which column are the longitude coordinates?"/>
32 <param name="observations_column" type="data_column" data_ref="observations_csv" label="In which column are the observation values?"/>
33 <param value="2" min="0.1" max="5" type="float" name="idw_power" label="Select the interpolation power of the IDW method"/>
34 <param value="50000" min="1000" max="100000" type="integer" name="sample_points" label="Select the number of sample points"/>
35 <param type="select" name="sample_type" label="Select a sample type">
36 <option value="regular">Regular</option>
37 <option value="random">Random</option>
38 <option value="stratified">Stratified</option>
39 <option value="nonaligned">Nonaligned</option>
40 </param>
41 <param type="text" name="legend_label" label="Enter a label for the legend"/>
42 <param type="select" name="legend_position" label="Should the legend be displayed inside or outside the frame?">
43 <option value="false">Inside</option>
44 <option value="true">Outside</option>
45 </param>
46 <param value="0.2" min="0.1" max="2" type="float" name="dot_size" label="Select the dot size of the points shown on the map"/>
47 <param value="10" min="1" max="100" type="integer" name="number_classes" label="Number of classes" help="Note: Not all values are possible. tmap tries to generate a number of classes which are as close to the indicated value as possible"/>
48 <param type="select" name="color_type" label="Select a color palette">
49 <option value="RdBu">RdBu</option>
50 <option value="Blues">Blues</option>
51 <option value="BuGn">BuGn</option>
52 <option value="BuPu">BuPu</option>
53 <option value="GnBu">GnBu</option>
54 <option value="Greens">Greens</option>
55 <option value="Greys">Greys</option>
56 <option value="Oranges">Oranges</option>
57 <option value="OrRd">OrRd</option>
58 <option value="PuBu">PuBu</option>
59 <option value="PuBuGn ">PuBuGn</option>
60 <option value="PuRd">PuRd</option>
61 <option value="Purples">Purples</option>
62 <option value="RdPu">RdPu</option>
63 <option value="Reds">Reds</option>
64 <option value="YlGn">YlGn</option>
65 <option value="YlGnBu">YlGnBu</option>
66 <option value="YlOrBr">YlOrBr</option>
67 <option value="YlOrRd">YlOrRd</option>
68 </param>
69 <param type="boolean" name="test_case" label="Should a seed be set?" truevalue="true" falsevalue="false" />
70 </inputs>
71 <outputs>
72 <data name="output" format="png" />
73 </outputs>
74 <tests>
75 <!-- Run test with: planemo test - -biocontainers plotInterpolationMap.xml - -test_output=plotInterpolationMap.html -->
76 <test>
77 <param name="observations_csv" value="run_idw_interpolation_test_input1.csv"/>
78 <param name="latitude_column" value="3"/>
79 <param name="longitude_column" value="4"/>
80 <param name="observations_column" value="5"/>
81 <param name="study_area" value="run_idw_interpolation_test_input2.geojson"/>
82 <param name="idw_power" value="2"/>
83 <param name="sample_points" value="50000"/>
84 <param name="sample_type" value="regular"/>
85 <param name="legend_label" value="Legend"/>
86 <param name="legend_position" value="false"/>
87 <param name="number_classes" value="10"/>
88 <param name="dot_size" value="1"/>
89 <param name="color_type" value="RdBu"/>
90 <param name="test_case" value="true"/>
91 <output name="output" file="run_idw_interpolation_test_output.png" compare="sim_size" delta_frac="0.1"/>
92 </test>
93 </tests>
94 <help><![CDATA[
95 IDW stands for Inverse Distance Weighting. The .csv file contains the observations and the .geojson file the study area. The plot is stored as a .png file.
96 ]]></help>
97 <citations>
98 <citation type="doi">10.32614/RJ-2018-009</citation>
99 <citation type="doi">10.18637/jss.v084.i06</citation>
100 <citation type="doi">10.32614/RJ-2016-014</citation>
101 </citations>
102 </tool>