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