Mercurial > repos > ecology > raster_template
comparison raster_template.xml @ 0:b34c5a70b706 draft
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
author | ecology |
---|---|
date | Sat, 23 Dec 2023 20:40:04 +0000 |
parents | |
children | 9eaf84bf856f |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b34c5a70b706 |
---|---|
1 <tool id="raster_template" name="Make templates for raster files" version="0.1.1+galaxy0" profile="22.05"> | |
2 <description>attributes for EML metadata creation</description> | |
3 <requirements> | |
4 <container type="docker">outils-patrinat.mnhn.fr/metashark:latest</container> | |
5 </requirements> | |
6 <command detect_errors="exit_code"><![CDATA[ | |
7 | |
8 #set $table = "" | |
9 mkdir data_files && | |
10 #for $indata in $inputdata | |
11 ln -s '$indata' 'data_files/${indata.element_identifier}'; | |
12 #set $table += $indata.element_identifier + " "; | |
13 #end for | |
14 | |
15 Rscript | |
16 '$__tool_directory__/raster_templates.R' | |
17 '$table' | |
18 | |
19 ]]></command> | |
20 <inputs> | |
21 <param name="inputdata" type="data_collection" collection_type="list" label="Upload all data files wich are raster files" help= "Input a data collection."/> | |
22 </inputs> | |
23 <outputs> | |
24 <collection name="templates" type="list" label="Raster data templates"> | |
25 <discover_datasets pattern="(?P<designation>.+\.txt)" format="txt"/> | |
26 </collection> | |
27 </outputs> | |
28 <tests> | |
29 <test> | |
30 <param name="inputdata"> | |
31 <collection type="list"> | |
32 <element name="Present_Surface_pH.tif" value="Present_Surface_pH.tif"/> | |
33 </collection> | |
34 </param> | |
35 <output_collection name='templates' type = "list" count="2"/> | |
36 </test> | |
37 </tests> | |
38 <help><![CDATA[ | |
39 | |
40 **What it does?** | |
41 -------------------- | |
42 This tool is used to produce EAL templates for raster data used to build EML metadata. It produces the following eal files: | |
43 | |
44 - attibutes_my_raster.txt (describe the attributes of your data table) | |
45 - catvars_my_raster.txt (only if there are one or more catégorical variable in your data table) | |
46 - custom_units.txt (made to describe custom units if there are any) | |
47 | |
48 After that, these files can be edited to add information about your raster data and then be used in the make eml tool to produce EML metadata. | |
49 | |
50 **How to use it?** | |
51 -------------------- | |
52 | |
53 To use this tool, you need to select, in your history a data collection with your raster data (one or more).To do so, you can select the **Upload file** tool, select the *Collection* tab, upload all your templates, click on the *Start* button to integrate the files to Galaxy and then click on *Build*. You will need to choose a name and select *Create collection* to build a collection with your templates. | |
54 You also can upload your files to Galaxy, select them in the history by clicking the *Select items* button, click on the newly appeared box on the right and select *Build dataset list*. | |
55 ]]></help> | |
56 </tool> |