annotate make_eml.xml @ 0:9cbac7a9b1a3 draft

planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
author ecology
date Wed, 13 Sep 2023 19:56:16 +0000
parents
children 9d56f6480194
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
1 <tool id="makeeml" name="Make EML" version="0.1.0+galaxy0">
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
2 <description> Create EML from EAL templates</description>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
3 <requirements>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
4 <requirement type="package" version="4.3.1">r-base</requirement>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
5 <requirement type="package" version="3.5.5">r-emlassemblyline</requirement>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
6 </requirements>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
8 mkdir output_template &&
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
9 #for $input in $templates
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
10 ln -s '$input' 'output_template/${input.element_identifier}.txt';
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
11 #end for
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
12 Rscript
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
13 '$__tool_directory__/make_eml.R' 2> err.txt
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
14 'title'
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
15 ]]></command>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
16 <inputs>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
17 <param name="templates" type="data_collection" collection_type="list" format="tabular" label="Upload all EAL templates" help= "Input a data collection." />
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
18 <param name="title" type="text" label="Title for your dataset." />
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
19 </inputs>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
20 <outputs>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
21 <data name="metadataout" from_work_dir="eml.xml" format="xml" label="EML"/>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
22 <data name="error" from_work_dir="err.txt" format="txt" label="Warning message"/>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
23 </outputs>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
24 <tests>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
25 <test expect_num_outputs="2">
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
26 <param name="templates">
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
27 <collection type="list">
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
28 <element name="annotations" value="annotations.txt"/>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
29 <element name="keywords" value="keywords.txt" />
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
30 <element name="attributes_data_blary_al" value="attributes_data_blary_al.txt"/>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
31 <element name="catvars_data_blary_al" value="catvars_data_blary_al.txt"/>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
32 <element name="geographic_coverage" value="geographic_coverage.txt" />
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
33 <element name="personnel" value="personnel.txt" />
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
34 </collection>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
35 </param>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
36 <output name="metadataout" >
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
37 <assert_contents>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
38 <is_valid_xml />
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
39 <xml_element path="./dataset"/>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
40 </assert_contents>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
41 </output>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
42 </test>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
43 </tests>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
44 <help><![CDATA[
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
45 .. class:: warningmark
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
46
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
47 '''TIP''' This tool accept as inputs only Galaxy collections containing EAL templates.
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
48
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
49 **What it does?**
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
50 --------------------
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
51
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
52 This tool produce EML metadata from EAL templates.
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
53 This tool can be used in the continuation of the eml2eal tool.
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
54
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
55 **How to use it?**
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
56 --------------------
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
57 To use this tool, you can select, in your history a data collection with EAL templates made by the eml2eal tool.
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
58 You can also select your own templates that you have to integrate into a Galaxy collection.
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
59
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
60 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
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
61 on *Build*. You will need to choose a name and select *Create collection* to build a collection with your templates.
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
62 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*.
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
63
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
64 .. class:: infomark
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
65
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
66 Templates can be directly edited in Galaxy (view **eml2eal** tool for more information.)
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
67
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
68
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
69 You then have to select your collection in the upload box of the tool and click **Execute** to get your EML metadata.
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
70 ]]></help>
9cbac7a9b1a3 planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d139641e5afb8c75b8aded37bdbd7aecae0fb83
ecology
parents:
diff changeset
71 </tool>