diff eal_table_template.xml @ 0:8631291a1527 draft

planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 5c327a780dc58fb954e7b65db6fd413ee3909c84
author ecology
date Mon, 04 Dec 2023 21:49:15 +0000
parents
children 6de4b4f70b7b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eal_table_template.xml	Mon Dec 04 21:49:15 2023 +0000
@@ -0,0 +1,45 @@
+<tool id="eal_table_template" name="Make templates for data tables" version="0.1.0+galaxy0" profile="22.05">
+    <description>attributes and categorical variables for EML metadata creation</description>
+    <requirements>
+        <requirement type="package" version="4.3.1">r-base</requirement>
+        <requirement type="package" version="3.5.5">r-emlassemblyline</requirement>
+    </requirements>
+    <command detect_errors="exit_code"><![CDATA[
+    
+    #set $table = ""
+    mkdir data_files && 
+    #for $indata in $inputdata
+        ln -s '$indata' 'data_files/${indata.element_identifier}' &&
+        #set $table += $indata.element_identifier + " "
+    #end for
+    
+    Rscript 
+         '$__tool_directory__/eal_table_templates.R'
+         '$table'
+    
+    ]]></command>
+    <inputs>
+         <param name="inputdata" type="data_collection"  collection_type="list"  label="Upload all data files wich are data table" help= "Input a data collection."/>
+    </inputs>
+    <outputs>
+       <collection name="templates" type="list" label="Templates for data table">
+             <discover_datasets pattern="__designation_and_ext__"/>
+       </collection>
+    </outputs>
+    <tests>
+        <test>
+           <param name="inputdata">
+              <collection type="list">
+                 <element name="datafile_1.tsv" value="datafile_1.tsv" />
+              </collection>
+           </param>          
+           <output_collection name='templates' type = "list" count="2"/>
+        </test>
+    </tests>
+    <help><![CDATA[
+
+To use this tool, you need to select, in your history a data collection with your data table (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.
+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*.
+
+    ]]></help>
+</tool>