| 
16
 | 
     1 <tool id="tool_template" name="tool name" version="1.1.6">
 | 
| 
0
 | 
     2   <requirements>
 | 
| 
 | 
     3     <requirement type="package" version="1.15.0.6-0">pandoc</requirement>
 | 
| 
 | 
     4     <requirement type="package" version="1.20.0">r-getopt</requirement>
 | 
| 
 | 
     5     <requirement type="package" version="1.3">r-rmarkdown</requirement>
 | 
| 
 | 
     6     <requirement type="package" version="0.3.5">r-htmltools</requirement>
 | 
| 
 | 
     7     <requirement type="package" version="0.5.0">r-dplyr</requirement>
 | 
| 
16
 | 
     8     <requirement type="package" version="0.9.10">xorg-libxrender</requirement>
 | 
| 
 | 
     9     <requirement type="package" version="1.2.2">xorg-libsm</requirement>
 | 
| 
0
 | 
    10   </requirements>
 | 
| 
 | 
    11   <description>some descriptions about the tool.</description>
 | 
| 
 | 
    12   <stdio>
 | 
| 
 | 
    13     <regex source="stderr" match="XXX" level="warning" description="Check the warnings_and_errors.txt file for more details."/>
 | 
| 
 | 
    14   </stdio>
 | 
| 
12
 | 
    15   <command><![CDATA[                    Rscript '${__tool_directory__}/tool_template_render.R'
 | 
| 
 | 
    16                         -e $echo
 | 
| 
 | 
    17                         -r $report
 | 
| 
 | 
    18                         -d $report.files_path
 | 
| 
 | 
    19                         -s $sink_message
 | 
| 
 | 
    20                         -t '${__tool_directory__}/tool_template.Rmd'
 | 
| 
 | 
    21 
 | 
| 
 | 
    22                         -A $input_field_numbers
 | 
| 
 | 
    23                         -B $input_file
 | 
| 
 | 
    24                         -O $output_txt
 | 
| 
0
 | 
    25                     ]]></command>
 | 
| 
 | 
    26   <inputs>
 | 
| 
 | 
    27     <param type="boolean" name="echo" label="Display analysis code in report?" optional="False" checked="False" truevalue="TRUE" falsevalue="FALSE"/>
 | 
| 
8
 | 
    28     <param type="text" name="input_field_numbers" optional="False"/>
 | 
| 
 | 
    29     <param type="data" name="input_file" optional="False"/>
 | 
| 
0
 | 
    30   </inputs>
 | 
| 
 | 
    31   <outputs>
 | 
| 
 | 
    32     <data name="report" format="html" label="tool name report" hidden="false"/>
 | 
| 
 | 
    33     <data name="sink_message" format="txt" label="Warnings and Errors" from_work_dir="warnings_and_errors.txt" hidden="false"/>
 | 
| 
5
 | 
    34     <data name="output_txt" format="txt" hidden="false"/>
 | 
| 
0
 | 
    35   </outputs>
 | 
| 
 | 
    36   <help><![CDATA[some help text]]></help>
 | 
| 
 | 
    37   <citations>
 | 
| 
1
 | 
    38     <citation type="bibtex"><![CDATA[
 | 
| 
0
 | 
    39                     @article{allaire2016rmarkdown,
 | 
| 
 | 
    40                         title={rmarkdown: Dynamic Documents for R, 2016},
 | 
| 
 | 
    41                         author={Allaire, J and Cheng, Joe and Xie, Yihui and McPherson, Jonathan and Chang, Winston and Allen, Jeff
 | 
| 
 | 
    42                         and Wickham, Hadley and Atkins, Aron and Hyndman, Rob},
 | 
| 
 | 
    43                         journal={R package version 0.9},
 | 
| 
 | 
    44                         volume={6},
 | 
| 
 | 
    45                         year={2016}
 | 
| 
 | 
    46                     ]]></citation>
 | 
| 
 | 
    47   </citations>
 | 
| 
 | 
    48 </tool>
 |