view eal_templates.xml @ 2:debfa8a223c0 draft

planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 43f3c45c97ba7d09ad1ea19df9e953cfe917dde8
author ecology
date Mon, 22 Jan 2024 14:56:25 +0000
parents 3b0fa963ae3e
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>