comparison qcreport.xml @ 0:607c5e7e0a64 draft

planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/mycrobiota commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
author erasmus-medical-center
date Wed, 13 Dec 2017 10:09:50 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:607c5e7e0a64
1 <tool id="mycrobiota-qc-report" name="QC report" version="1">
2 <description>from count tables</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <command detect_errors="aggressive"><![CDATA[
7 python '$__tool_directory__/mycrobiota.py'
8 --command qc_report
9 #if $input.filetype == 'summarylog':
10 #for $i, $c in enumerate($input.summaryfiles):
11 --summary_log '${c.summary}'
12 --label '${c.label}'
13 #end for
14 #elif $input.filetype == 'counttable':
15 #for $i, $c in enumerate($input.counttables):
16 --count_table '${c.count_table}'
17 --label '${c.label}'
18 #end for
19 #end if
20 ]]></command>
21 <inputs>
22 <conditional name="input">
23 <param name="filetype" type="select" label="Generate QC table from" help="">
24 <option value="counttable">count tables</option>
25 <option value="summarylog">summary.seqs log outputs</option>
26 </param>
27 <when value="counttable">
28 <repeat name="counttables" title="Count Table" default="1" >
29 <param argument="--count_table" type="data" format="mothur.count_table" label="Coumt Table" help=""/>
30 <param argument="--label" type="text" size="100" value="" label="Enter a label for this step" help="e.g. trimmed by length"/>
31 </repeat>
32 </when>
33 <when value="summarylog">
34 <repeat name="summaryfiles" title="Summary.seqs output log" default="1" >
35 <param argument="--summary" type="data" format="text" label="Summary File" help="logfile output of summary.seqs command"/>
36 <param argument="--label" type="text" size="100" value="" label="Enter a label for this step" help="e.g. trimmed by length"/>
37 </repeat>
38 </when>
39 </conditional>
40 </inputs>
41 <outputs>
42 <data name="allsamples" format="tabular" from_work_dir="all_qctable.tsv" label="${tool.name} on ${on_string}: QC table total counts"/>
43 <collection name="persample" type="list" label="${tool.name} on ${on_string}: per-sample QC tables">
44 <discover_datasets pattern=".*?persample_qctable_(?P&lt;designation&gt;.*)\.tsv" format="tabular"/>
45 <filter> input['filetype'] == 'counttable' </filter>
46 </collection>
47 </outputs>
48 <tests>
49 <test><!-- test with count tables -->
50 <param name="filetype" value="counttable"/>
51 <repeat name="counttables">
52 <param name="count_table" value="test2.count_table"/>
53 <param name="label" value="step1"/>
54 </repeat>
55 <repeat name="counttables">
56 <param name="count_table" value="test.count_table"/>
57 <param name="label" value="step2"/>
58 </repeat>
59 <output name="allsamples" md5="97725d04b9927724729f6cd902e10317" ftype="tabular"/>
60 <output_collection name="persample" count="9">
61 <element name="F3D144" md5="d86e633358e8f1518a4a8c2782a358ec"/>
62 </output_collection>
63 </test>
64 <test><!-- test with summary logfiles -->
65 <param name="filetype" value="summarylog"/>
66 <repeat name="summaryfiles">
67 <param name="summary" value="summarylog1.txt"/>
68 <param name="label" value="step1"/>
69 </repeat>
70 <repeat name="summaryfiles">
71 <param name="summary" value="summarylog2.txt"/>
72 <param name="label" value="step2"/>
73 </repeat>
74 <repeat name="summaryfiles">
75 <param name="summary" value="summarylog3.txt"/>
76 <param name="label" value="step 3"/>
77 </repeat>
78 <output name="allsamples" md5="7e092deb126c537247e63a36def1d8fb" ftype="tabular"/>
79 </test>
80 </tests>
81 <help>
82 <![CDATA[
83 **What it does**
84
85 Given a set of count tables, make a summary table describing the differences in number of sequences.
86 ]]>
87 </help>
88 <expand macro="citations"/>
89 </tool>