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 -r $report
|
|
16 -d $report.files_path
|
|
17 -s $sink_message
|
|
18 -t '${__tool_directory__}/tool_template.Rmd'
|
7
|
19
|
|
20 -A $input_field_numbers
|
|
21 -B $input_file
|
|
22 -O $output_txt
|
0
|
23 ]]></command>
|
|
24 <inputs>
|
|
25 <param type="boolean" name="echo" label="Display analysis code in report?" optional="False" checked="False" truevalue="TRUE" falsevalue="FALSE"/>
|
7
|
26 <param type="data" name="input_file" label="Input file" optional="False"/>
|
|
27 <param type="text" name="input_field_numbers" label="Field numbers" optional="False"/>
|
0
|
28 </inputs>
|
|
29 <outputs>
|
|
30 <data name="report" format="html" label="tool name report" hidden="false"/>
|
|
31 <data name="sink_message" format="txt" label="Warnings and Errors" from_work_dir="warnings_and_errors.txt" hidden="false"/>
|
5
|
32 <data name="output_txt" format="txt" hidden="false"/>
|
0
|
33 </outputs>
|
|
34 <help><![CDATA[some help text]]></help>
|
|
35 <citations>
|
1
|
36 <citation type="bibtex"><![CDATA[
|
0
|
37 @article{allaire2016rmarkdown,
|
|
38 title={rmarkdown: Dynamic Documents for R, 2016},
|
|
39 author={Allaire, J and Cheng, Joe and Xie, Yihui and McPherson, Jonathan and Chang, Winston and Allen, Jeff
|
|
40 and Wickham, Hadley and Atkins, Aron and Hyndman, Rob},
|
|
41 journal={R package version 0.9},
|
|
42 volume={6},
|
|
43 year={2016}
|
|
44 ]]></citation>
|
|
45 </citations>
|
|
46 </tool>
|