Mercurial > repos > ecology > map_shp
comparison Map_shp.xml @ 0:ce9979488ebb draft default tip
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/Geom_mean_workflow commit 3f11e193fd9ba5bf0c706cd5d65d6398166776cb
| author | ecology |
|---|---|
| date | Sat, 25 Nov 2023 15:18:33 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:ce9979488ebb |
|---|---|
| 1 <tool id="Map_shp" name="Make a map with a shapefile" version="0.1.0+galaxy0"> | |
| 2 <requirements> | |
| 3 <requirement type="package" version="4.3.2">r-base</requirement> | |
| 4 <requirement type="package" version="3.4.4">r-ggplot2</requirement> | |
| 5 <requirement type="package" version="1.0_14">r-sf</requirement> | |
| 6 <requirement type="package" version="1.1.9">r-ggspatial</requirement> | |
| 7 <requirement type="package" version="1.1.3">r-dplyr</requirement> | |
| 8 <requirement type="package" version="1.1_3">r-rcolorbrewer</requirement> | |
| 9 </requirements> | |
| 10 <command detect_errors="exit_code"><![CDATA[ | |
| 11 Rscript | |
| 12 "$__tool_directory__/Map_shp.R" | |
| 13 #if $input1.is_of_type("shp") | |
| 14 ${os.path.join( $input1.extra_files_path, "shapefile.shp" )} | |
| 15 #else | |
| 16 "$input1" | |
| 17 #end if | |
| 18 "$input2" | |
| 19 "$input3" | |
| 20 "$input4" | |
| 21 "$input5" | |
| 22 "$output" | |
| 23 | |
| 24 ]]></command> | |
| 25 <inputs> | |
| 26 <param name="input1" type="data" format="shp" label="Shapefile"/> | |
| 27 <param name="input2" type="data" format="tabular" label="Data to represent"/> | |
| 28 <param name="input3" type="text" label="What is the title of your map ?"> | |
| 29 <sanitizer invalid_char=""> | |
| 30 <valid initial="string.printable"> | |
| 31 <add value="é"/> | |
| 32 <add value="è"/> | |
| 33 </valid> | |
| 34 </sanitizer> | |
| 35 </param> | |
| 36 <param name="input4" type="text" label="What is the legend of your map ?"> | |
| 37 <sanitizer invalid_char=""> | |
| 38 <valid initial="string.printable"> | |
| 39 <add value="é"/> | |
| 40 <add value="è"/> | |
| 41 </valid> | |
| 42 </sanitizer> | |
| 43 </param> | |
| 44 <param name="input5" type="boolean" label="Display the geographical coordinates ?"/> | |
| 45 </inputs> | |
| 46 <outputs> | |
| 47 <data name="output" from_work_dir="map.pdf" format="pdf" label="map.pdf"/> | |
| 48 </outputs> | |
| 49 <tests> | |
| 50 <test> | |
| 51 <param name="input1" value="GRECO/GRECO_l93.html" ftype="shp"> | |
| 52 <composite_data value="GRECO/GRECO_l93.shp"/> | |
| 53 <composite_data value="GRECO/GRECO_l93.shx"/> | |
| 54 <composite_data value="GRECO/GRECO_l93.dbf"/> | |
| 55 <composite_data value="GRECO/GRECO_l93.prj"/> | |
| 56 </param> | |
| 57 <param name='input2' value="evolution_rate.tsv"/> | |
| 58 <param name='input3' value="Taux d'évolution du volume des bois favorables à la biodiversité par GRECO"/> | |
| 59 <param name='input4' value="Taux d'évolution (%) \nentre les périodes \n2008-2012 et 2013-2017"/> | |
| 60 <param name='input5' value="true"/> | |
| 61 <output name='output' value="map.pdf"/> | |
| 62 </test> | |
| 63 </tests> | |
| 64 <help><![CDATA[ | |
| 65 ================== | |
| 66 **What it does ?** | |
| 67 ================== | |
| 68 | |
| 69 This tool allows to build a map from a shapefile and color the areas according to a percentage (case study dead wood evolution rate). | |
| 70 | |
| 71 ]]></help> | |
| 72 </tool> |
