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