view eal_templates.xml @ 1:3b0fa963ae3e 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:41:26 +0000
parents d4f168043757
children 67b2cd9c2954
line wrap: on
line source

<tool id="eal_templates" name="Make templates" version="0.1.1+galaxy0" profile="22.05">
    <description>for core features of a data package for EML metadata creation</description>
    <requirements>
        <container type="docker">outils-patrinat.mnhn.fr/metashark:latest</container>
    </requirements>
    <command detect_errors="exit_code"><![CDATA[
    
        Rscript 
         '$__tool_directory__/eal_templates.R'
         '$license'
         '$file_type'
         
    ]]></command>
    <inputs>
        <param name="license" type="select" label="Under what license are your data?">
              <option value="CC0">CC0</option>
              <option value="CCBY">CCBY</option>
        </param>
        <param name="file_type" type="select" label="What type of file do you want for templates?">
              <option value=".txt">Text</option>
              <option value=".docx">MS Word</option>
              <option value=".md">Markdown</option>
        </param>
        
    </inputs>
    <outputs>
          <collection name="output" type="list" label="Core features templates">
              <discover_datasets pattern="(?P&lt;designation&gt;.+\.txt)" format="txt"/>
              <discover_datasets pattern="(?P&lt;designation&gt;.+\.docx)" format="docx"/>
              <discover_datasets pattern="(?P&lt;designation&gt;.+\.md)" format="markdown"/>
          </collection>
    </outputs>
    <tests>
        <test>
           <param name="license" value="CCBY"/>
           <param name="file_type" value=".txt"/>
           <output_collection name='output' type = "list" count="6"/>
        </test>
    </tests>
    <help><![CDATA[

**What it does?**
--------------------
This tool produce templates for core features of a data package used to build EML metadata. It produces the following eal files: 

- abstract.txt
- keywords.txt
- methods.txt
- personnel.txt
- intellectual_rights.txt
- additional_info.txt

After that, these files can be edited to add informations about your data and then be used in the make EML tool to produce EML metadata.

**How to use it?**
--------------------
To use this tool, you need to select what type of license are your data under. Then you need to select the type of file you want for your templates.

    ]]></help>
</tool>