comparison i-adhore.xml @ 0:9755ce6ac4d5 draft

planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_i_adhore commit b6ef011f29d6c75775be9cc0e0abe53e19981d1d-dirty
author mingchen0919
date Tue, 08 Aug 2017 12:53:57 -0400
parents
children fd719a0a6b26
comparison
equal deleted inserted replaced
-1:000000000000 0:9755ce6ac4d5
1 <tool id="i_adhore" name="i-adhore" version="0.1">
2 <requirement type="package" version="1.20.0">r-getopt</requirement>
3 <requirement type="package" version="1.2">r-rmarkdown</requirement>
4 <description>Generate i-adhore configure file</description>
5 <stdio>
6 <exit_code range="1:" />
7 <exit_code range=":-1" />
8 <regex match="Error:" />
9 <regex match="Exception:" />
10 </stdio>
11 <command><![CDATA[
12
13 Rscript '${__tool_directory__}/i_adhore_configure_render.R'
14
15 ## 1. input data
16 -e $echo
17
18 #set $g_analysis_files = ''
19 #for $g in $genomes
20 #if str($g.genome_name)
21 #set $analysis_files = []
22 #for $file in $g.analysis_files.to_dataset_instances($g.analysis_files)
23 #set $analysis_files += [$file.__str__]
24 #end for
25 #set g_analysis_files += str($g.genome_name) + ':' + ','.join($analysis_files) + ';'
26 #end if
27 #end for
28 -G '$g_analysis_files'
29
30 -b $blast_table
31 -g $gap_size
32 -c $cluster_gap
33 -q $q_value
34 -p $prob_cutoff
35 -a $anchor_points
36 -m $alignment_method
37 -l $level2only
38 -T $table_type
39 -h $multi_hypothesis_correction
40
41 ## 2. output report and file directory
42 -x $i_adhore_configure_txt
43 -o $i_adhore_configure
44 -d $i_adhore_configure.files_path
45
46 ## 3. Rmd templates in the tool directory
47 -t '${__tool_directory__}/i_adhore_configure.Rmd'
48
49
50 ]]></command>
51 <inputs>
52 <repeat name="genomes" title="genome" min="1">
53 <param name="genome_name" type="text" value="" label="Specify genome name" />
54 <param name="analysis_files" type="data" format="txt" multiple="true" label="analysis files (.lst or .txt files)" />
55 </repeat>
56 <param name="blast_table" type="data" format="csv" multiple="false" label="blast table (.csv file)" />
57 <param name="gap_size" type="text" value="30" label="gap size" />
58 <param name="cluster_gap" type="text" value="35" label="cluster gap" />
59 <param name="q_value" type="text" value="0.75" label="q value" />
60 <param name="prob_cutoff" type="text" value="0.01" label="probability cutoff" />
61 <param name="anchor_points" type="text" value="3" label="anchor_points" />
62 <param name="alignment_method" type="text" value="gg4" label="alignment method" />
63 <param name="level2only" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="false" label="level 2 only" />
64 <param name="table_type" type="text" value="family" label="table type" />
65 <param name="multi_hypothesis_correction" type="text" value="FDR" label="multiple hypothesis correction" />
66
67 <param type="boolean" name="echo" truevalue="TRUE" falsevalue="FALSE" checked="false" label="Display analysis code in report?" />
68 </inputs>
69 <outputs>
70 <data name="i_adhore_configure" format="html" label="i-adhore configure report" />
71 <data name="i_adhore_configure_txt" format="txt" label="i-adhore configure file" />
72 </outputs>
73 <citations>
74 <citation type="bibtex">
75 @article{allaire2016rmarkdown,
76 title={rmarkdown: Dynamic Documents for R, 2016},
77 author={Allaire, J and Cheng, Joe and Xie, Yihui and McPherson, Jonathan and Chang, Winston and Allen, Jeff and Wickham, Hadley and Atkins, Aron and Hyndman, Rob},
78 journal={R package version 0.9},
79 volume={6},
80 year={2016}
81 }
82 </citation>
83 <citation type="bibtex">
84 @book{xie2015dynamic,
85 title={Dynamic Documents with R and knitr},
86 author={Xie, Yihui},
87 volume={29},
88 year={2015},
89 publisher={CRC Press}
90 }
91 </citation>
92 </citations>
93 </tool>