Skip to content
Draft
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions tools/multiqc/mosdepth_plugin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<macros>
<token name="@MOSDEPTH_COMMAND@"><![CDATA[
#set $pattern = "coverage depth assessment"
@LN_FILES@
]]></token>

<xml name="mosdepth_form">
<repeat name="mosdepth_output" title="Mosdepth output" min="1">
<conditional name="type">
<param name="type" type="select" label="Type of Mosdepth output?">
<option value="dist">Global or Region Coverage Distribution</option>
<option value="summary">Coverage Summary</option>
</param>
<when value="dist">
<param name="input" type="data" format="tabular" label="global or region coverage output of mosdepth" multiple="true"/>
</when>
<when value="summary">
<param name="input" type="data" format="tabular" label="summary coverage output of mosdepth" multiple="true"/>
</when>
</conditional>
</repeat>
</xml>
<!-- add here your test files and tests, the more stringent the better -->
<xml name="mosdepth_test">
<test expect_num_outputs="2">
<repeat name="results">
<conditional name="software_cond">
<param name="software" value="mosdepth"/>
<repeat name="mosdepth_output">
<conditional name="type">
<param name="type" value="dist"/>
<param name="input" value="test.mosdepth.summary.txt"/>
</conditional>
</repeat>
<repeat name="mosdepth_output">
<conditional name="type">
<param name="type" value="summary"/>
<param name="input" value="test.mosdepth.global.dist.txt"/>
</conditional>
</repeat>
</conditional>
</repeat>
<param name="title" value="Title of the report"/>
<param name="comment" value="Commment for the report"/>
<output name="html_report">
<assert_contents>
<has_text text="Title of the report"/>
<has_text text="Commment for the report"/>
<has_text text="Cumulative coverage distribution"/>
<has_text text="Average coverage per contig"/>
</assert_contents>
</output>
<output name="stats">
<assert_contents>
<has_text text="mosdepth-1_x_pc"/>
<has_text text="mosdepth-length"/>
</assert_contents>
</output>
</test>
</xml>
</macros>
8 changes: 7 additions & 1 deletion tools/multiqc/multiqc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<import>featurecounts_plugin.xml</import>
<import>flexbar_plugin.xml</import>
<import>gatk_plugin.xml</import>
<import>mosdepth_plugin.xml</import>
<import>picard_plugin.xml</import>
<import>pycoqc_plugin.xml</import>
<import>qualimap_plugin.xml</import>
Expand Down Expand Up @@ -106,6 +107,8 @@ mkdir multiqc_WDir &&
grep -q "$pattern" $file || die "'$pattern' not found in the file" &&
ln -s '$file' '$file_path' &&
#end for
#elif str($repeat.software_cond.software) == "mosdepth"
@MOSDEPTH_COMMAND@
#elif str($repeat.software_cond.software) == "picard"
@PICARD_COMMAND@
#elif str($repeat.software_cond.software) == "prokka"
Expand Down Expand Up @@ -267,7 +270,7 @@ cp ./report_data/*plot*.txt ./plots/ | true ## don't fail if no plot files are g
<!--<option value="leehom">leeHom</option>-->
<option value="macs2">MACS2</option>
<!--<option value="methylQA">methylQA</option>-->
<!--<option value="mosdepth">mostdepth</option>-->
<option value="mosdepth">mosdepth</option>
<!--<option value="mtnucratio">mtnucratio</option>-->
<!--<option value="peddy">Peddy</option>-->
<option value="picard">Picard</option>
Expand Down Expand Up @@ -365,6 +368,9 @@ cp ./report_data/*plot*.txt ./plots/ | true ## don't fail if no plot files are g
<when value="macs2">
<param name="input" type="data" format="txt,tabular,tsv" multiple="true" label="Output of MACS2" help="It should be a tabular file containing '# This file is generated by MACS'"/>
</when>
<when value="mosdepth">
<expand macro="mosdepth_form"/>
</when>
<when value="picard">
<expand macro="picard_form"/>
</when>
Expand Down
Loading
Loading