comparison entities_template.xml @ 0:5bfceb4ef59b 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:51 +0000
parents
children 1b11e38718af
comparison
equal deleted inserted replaced
-1:000000000000 0:5bfceb4ef59b
1 <tool id="entities_template" name="Make entities templates for raster, vector and other entities files" version="0.1.1+galaxy0" profile="22.05">
2 <description>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 mkdir output_template &&
9 #for $input in $templates
10 ln -s '$input' 'output_template/${input.element_identifier}';
11 #end for
12
13 #set $table = ""
14 mkdir data_files &&
15 #for $indata in $inputdata
16 ln -s '$indata' 'data_files/${indata.element_identifier}';
17 #set $table += $indata.element_identifier + " ";
18 #end for
19
20 Rscript
21 '$__tool_directory__/entities_templates.R'
22 '$table'
23
24 ]]></command>
25 <inputs>
26 <param name="templates" type="data_collection" collection_type="list" label="Upload EAL attributes templates (with if exist catvars and custom units files)" help= "Input a data collection" />
27 <param name="inputdata" type="data_collection" collection_type="list" label="Upload all data files wich are raster and/or vector and/or other entities files" help= "Input a data collection."/>
28 </inputs>
29 <outputs>
30 <data name="output" from_work_dir="output_template/entities.txt" format="txt" label="entities.txt"/>
31 </outputs>
32 <tests>
33 <test>
34 <param name="templates">
35 <collection type="list">
36 <element name="attributes_data_7.txt" value="attributes_data_7.txt" />
37 <element name="catvars_data_7.txt" value="catvars_data_7.txt" />
38 <element name="custom_units.txt" value="custom_units.txt" />
39 </collection>
40 </param>
41 <param name="inputdata">
42 <collection type="list">
43 <element name="data_7.GeoJSON" value="data_7.GeoJSON" />
44 </collection>
45 </param>
46 <output name="output" value="entities.txt"/>
47 </test>
48 </tests>
49 <help><![CDATA[
50
51 **What it does?**
52 --------------------
53
54 This tool is used to produce EAL templates call entities for raster, vector and other entities files used to build EML metadata. It produces the following eal files:
55
56 - entities.txt (it describe some variables)
57
58 After that, this file can be edited to add information about your data and then be used in the make eml tool to produce EML metadata.
59
60 **How to use it?**
61 --------------------
62 To use this tool, you need to select, in your history a data collection with all your EAL attributes templates (with if exist catvars and custom units files). 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. 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*.
63 You need also to input all your data files Upload all data files wich are raster and/or vector and/or other entities files.
64 ]]></help>
65 </tool>
66