comparison multiqc.xml @ 0:8f25feb85166 draft

planemo upload for repository https://github.com/EnginesOn/galaxy_tools/tree/master/tools/multiqc commit 1110117e9b07da7913ea4480566a00d1bb373531-dirty
author engineson
date Fri, 27 May 2016 06:22:43 -0400
parents
children ff22ea7aa6bb
comparison
equal deleted inserted replaced
-1:000000000000 0:8f25feb85166
1 <tool id="multiqc" name="multiqc" version="0.6">
2 <description>aggregate results from bioinformatics analyses across many samples into a single report</description>
3 <requirements>
4 <requirement type="package" version="0.6">multiqc</requirement>
5 </requirements>
6 <stdio>
7 <exit_code range="1:" />
8 </stdio>
9 <command>
10 mkdir multiqc_WDir;
11
12 #for $i, $repeat in enumerate( $results )
13
14 mkdir multiqc_WDir/${repeat.software}_${i};
15
16 #if $repeat.software == "fastqc"
17
18 #for $k, $file in enumerate ( $repeat.input_file )
19 ## create a directory for each file because of the unqiue name file parsing
20 mkdir multiqc_WDir/${repeat.software}_${i}/file_${k};
21 ##cat ${file} > multiqc_WDir/${repeat.software}_${i}/file_$k/fastqc_data.txt;
22 ln -s ${file} multiqc_WDir/${repeat.software}_${i}/file_$k/fastqc_data.txt;
23 #end for
24
25 #else if $repeat.software == "tophat"
26
27 #for $file in $repeat.input_file
28 ## test if input file name contains align_summary
29 if [[ '${file.display_name}' =~ align_summary$ ]]; then
30 ##cat ${file} > multiqc_WDir/${repeat.software}_${i}/'${file.display_name}'.txt; else
31 ln -s ${file} multiqc_WDir/${repeat.software}_${i}/'${file.display_name}'.txt; else
32 ##cat ${file} > multiqc_WDir/${repeat.software}_${i}/'${file.display_name}'_align_summary.txt;
33 ln -s ${file} multiqc_WDir/${repeat.software}_${i}/'${file.display_name}'_align_summary.txt;
34 fi;
35 #end for
36
37 #else if $repeat.software == "cutadapt"
38
39 #for $file in $repeat.input_file
40 cat ${file} > multiqc_WDir/${repeat.software}_${i}/'${file.display_name}'.txt;
41 ## replace header for old cutadapt release
42 sed -i 's/You are running/This is/' multiqc_WDir/${repeat.software}_${i}/'${file.display_name}'.txt;
43 #end for
44
45 #else if $repeat.software == "featurecounts"
46
47 #for $file in $repeat.input_file
48 ## remove spaces and colon to skip multiqc crash
49 cat ${file} > multiqc_WDir/${repeat.software}_${i}/featurecounts_result.summary;
50 ## remove spaces and colon to skip multiqc crash
51 sed -i 's/:/_/g' multiqc_WDir/${repeat.software}_${i}/featurecounts_result.summary;
52 sed -i 's/ /_/g' multiqc_WDir/${repeat.software}_${i}/featurecounts_result.summary;
53 #end for
54
55 #else if $repeat.software == "bismark"
56
57 #for $file in $repeat.input_file
58 ##cat ${file} > multiqc_WDir/${repeat.software}_${i}/'${file.display_name}'_SE_report.txt;
59 ln -s ${file} multiqc_WDir/${repeat.software}_${i}/'${file.display_name}'_SE_report.txt;
60 #end for
61
62 #else
63
64 #for $file in $repeat.input_file
65 cat ${file} > multiqc_WDir/${repeat.software}_${i}/'${file.display_name}';
66 #if $repeat.software == "picard"
67 sed -i 's/picard.sam.markduplicates.MarkDuplicates/picard.sam.MarkDuplicates/' multiqc_WDir/${repeat.software}_${i}/'${file.display_name}';
68 #end if
69 #end for
70
71 #end if
72 #end for
73
74 multiqc multiqc_WDir;
75
76 </command>
77 <inputs>
78 <!--param name="inputs" type="data" format="txt" multiple="true" label="Tools logs-outputs" /-->
79 <repeat name="results" title="Results" min="1">
80 <param name="software" type="select" label="Software name">
81 <option value="fastqc">FastQC (RawData file)</option>
82 <option value="cutadapt">Cutadapt (Report file)</option>
83 <option value="tophat">Tophat2 (align_summary file)</option>
84 <option value="featurecounts">FeatureCounts (Summary file)</option>
85 <option value="samtools_stats">Samtools Stats (Stats file)</option>
86 <option value="picard">Picard (MarkDuplicates metrics file, CollectGTBiasMetrics Summary data file, CollectInsertSizeMetrics file)</option>
87 <option value="bismark">Bismark (Report file)</option>
88 <!--option value="bowtie2">Bowtie2</option>
89 <option value="snpeff">SnpEff</option-->
90 </param>
91 <param name="input_file" type="data" format="txt, tabular" multiple="true" label="Result file" />
92 </repeat>
93 </inputs>
94 <outputs>
95 <data format="html" from_work_dir="multiqc_report.html" name="html_file" label="${tool.name} on ${on_string}: Webpage" />
96 <data format="txt" name="text_file" from_work_dir="multiqc_data/.multiqc.log" label="${tool.name} on ${on_string}: Log"/>
97 </outputs>
98 <tests>
99 <test>
100 <repeat name="results">
101 <param name="software" value="fastqc" />
102 <param name="input_file" value="fastqc_data.txt" />
103 </repeat>
104 <output name="html_file" file="report_fastqc.html" compare="sim_size" delta="1000"/>
105 <output name="text_file" file="log_fastqc.txt" compare="sim_size" delta="1000"/>
106 </test>
107 <test>
108 <repeat name="results">
109 <param name="software" value="fastqc" />
110 <param name="input_file" value="fastqc_data.txt,fastqc_data_2.txt" />
111 </repeat>
112 <output name="html_file" file="report_fastqc_2.html" compare="sim_size" delta="1000"/>
113 <output name="text_file" file="log_fastqc_2.txt" compare="sim_size" delta="1000"/>
114 </test>
115 <test>
116 <repeat name="results">
117 <param name="software" value="cutadapt" />
118 <param name="input_file" value="cutadapt.txt" />
119 </repeat>
120 <output name="html_file" file="report_cutadapt.html" compare="sim_size" delta="1000"/>
121 <output name="text_file" file="log_cutadapt.txt" compare="sim_size" delta="1000"/>
122 </test>
123 <test>
124 <repeat name="results">
125 <param name="software" value="tophat" />
126 <param name="input_file" value="tophat_data.txt" />
127 </repeat>
128 <output name="html_file" file="report_tophat.html" compare="sim_size" delta="1000"/>
129 <output name="text_file" file="log_tophat.txt" compare="sim_size" delta="1000"/>
130 </test>
131 <test>
132 <repeat name="results">
133 <param name="software" value="featurecounts" />
134 <param name="input_file" value="featurecounts_data.txt" />
135 </repeat>
136 <output name="html_file" file="report_featurecounts.html" compare="sim_size" delta="1000"/>
137 <output name="text_file" file="log_featurecounts.txt" compare="sim_size" delta="1000"/>
138 </test>
139 <test>
140 <repeat name="results">
141 <param name="software" value="picard" />
142 <param name="input_file" value="collectGcBias_data.txt,CollectInsertSizeMetrics.txt,MarkDuplicates_data.txt" />
143 </repeat>
144 <output name="html_file" file="report_picard.html" compare="sim_size" delta="1000"/>
145 <output name="text_file" file="log_picard.txt" compare="sim_size" delta="1000"/>
146 </test>
147 <test>
148 <repeat name="results">
149 <param name="software" value="bismark" />
150 <param name="input_file" value="bismark_data.txt" />
151 </repeat>
152 <output name="html_file" file="report_bismark.html" compare="sim_size" delta="1000"/>
153 <output name="text_file" file="log_bismark.txt" compare="sim_size" delta="1000"/>
154 </test>
155 <test>
156 <repeat name="results">
157 <param name="software" value="samtools_stats" />
158 <param name="input_file" value="samtools_data.txt" />
159 </repeat>
160 <output name="html_file" file="report_samtools.html" compare="sim_size" delta="1000"/>
161 <output name="text_file" file="log_samtools.txt" compare="sim_size" delta="1000"/>
162 </test>
163 <test>
164 <repeat name="results">
165 <param name="software" value="fastqc" />
166 <param name="input_file" value="fastqc_data.txt,fastqc_data_2.txt" />
167 </repeat>
168 <repeat name="results">
169 <param name="software" value="cutadapt" />
170 <param name="input_file" value="cutadapt.txt" />
171 </repeat>
172 <repeat name="results">
173 <param name="software" value="tophat" />
174 <param name="input_file" value="tophat_data.txt" />
175 </repeat>
176 <repeat name="results">
177 <param name="software" value="featurecounts" />
178 <param name="input_file" value="featurecounts_data.txt" />
179 </repeat>
180 <repeat name="results">
181 <param name="software" value="picard" />
182 <param name="input_file" value="collectGcBias_data.txt,CollectInsertSizeMetrics.txt,MarkDuplicates_data.txt" />
183 </repeat>
184 <repeat name="results">
185 <param name="software" value="bismark" />
186 <param name="input_file" value="bismark_data.txt" />
187 </repeat>
188 <repeat name="results">
189 <param name="software" value="samtools_stats" />
190 <param name="input_file" value="samtools_data.txt" />
191 </repeat>
192
193 <output name="html_file" file="report_all.html" compare="sim_size" delta="3000"/>
194 <output name="text_file" file="log_all.txt" compare="sim_size" delta="3000"/>
195 </test>
196 </tests>
197
198
199 <help>
200 **What it does**
201
202 MultiQC aggregates results from bioinformatics analyses across many samples into a single report
203
204 ----
205
206 **Description**
207
208 MultiQC searches a given directory for analysis logs and compiles a HTML report. It's a general use tool, perfect for summarising the output from numerous bioinformatics tools.
209
210 ----
211
212 **Inputs**
213
214 MultiQC takes software outputs summary in order to create a single report. Below a list of compatible Galaxy tools :
215
216 - Fastqc
217 - Cutadapt
218 - Tophat2
219 - FeatureCounts
220 - Samtools stats
221 - Picard MarkDuplicates metrics
222 - Picard CollectGTBiasMetrics
223 - Picard CollectInsertSizeMetrics
224 - Bismark
225
226 ----
227
228 **Integrated by:**
229
230 Cyril Monjeaud and Yvan Le Bras
231
232 `EnginesOn &lt;http://engineson.fr/&gt;`_ and Rennes GenOuest Bio-informatics Core Facility
233
234 </help>
235
236 <citations>
237 <citation type="bibtex">@proceedings{proceedings,
238 author = {Phil Ewels, Måns Magnusson, Max Käller},
239 title = {Quality control at scale: MultiQC - Intelligent analysis reporting},
240 journal = {Epigenomics of Common Disease},
241 year = {2015},
242 }
243 </citation>
244 </citations>
245 </tool>
246