Skip to content

Commit

Permalink
samtools: remove plot_bamstats
Browse files Browse the repository at this point in the history
Sugest to the user to use MultiQC instead.. which is much better.
  • Loading branch information
bernt-matthias committed Sep 4, 2019
1 parent db9738a commit 7cf4774
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Uses ``samtools flagstat`` command to print descriptive information for a BAM da
25 + 0 singletons (12.50%:nan%)
0 + 0 with mate mapped to a different chr
0 + 0 with mate mapped to a different chr (mapQ>=5)
The results of samtools flagstat can be visualized with MultiQC.
]]></help>
<expand macro="citations"/>
</tool>
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ In this example there were 604 contigs, each with one line in the output table,
plus the final row (labelled with an asterisk) representing 50320 unmapped reads.
In this BAM file, the final column was otherwise zero.
The results of samtools ixdstats can be visualized with MultiQC.
------
Peter J.A. Cock (2013), `Galaxy wrapper <https://github.com/peterjc/pico_galaxy/tree/master/tools/samtools_idxstats>`_ for the samtools idxstats command
Expand Down
23 changes: 2 additions & 21 deletions tool_collections/samtools/samtools_stats/samtools_stats.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@
@REGIONS_MANUAL@
> '$output'
#if $cond_plot.select_plot=='yes':
&& plot-bamstats '$output' $cond_plot.log -p '${html_file.files_path}'/
&& mv '${html_file.files_path}'/index.html '${html_file}'
#end if
#if $split_output_cond.split_output_selector == "yes":
#set outputs_to_split = str($split_output_cond.generate_tables).split(',')
&& mkdir split
Expand Down Expand Up @@ -183,16 +178,6 @@
<param name="sparse" argument="-x/--sparse" type="boolean" truevalue="-x" falsevalue="" checked="False" label="Suppress absence of insertions" help="Suppress outputting IS rows where there are no insertions."/>
<param name="remove_overlaps" argument="-p/--remove-overlaps" type="boolean" truevalue="-p" falsevalue="" checked="False" label="Remove overlaps of paired-end reads from coverage and base count computations" />
<param name="cov_threshold" argument="-g/--cov-threshold" optional="true" type="integer" label="Only bases with coverage above this value will be included in the target percentage computation" />
<conditional name="cond_plot">
<param name="select_plot" type="select" label="Generate plots with plot-bamstats">
<option value="no" selected="True">No</option>
<option value="yes">Yes</option>
</param>
<when value="no"/>
<when value="yes">
<param name="log" argument="-l/--log-y" type="boolean" truevalue="-l" falsevalue="" checked="False" label="log scale insert size plot" help="Set the Y axis scale of the Insert Size plot to log 10"/>
</when>
</conditional>
</inputs>

<outputs>
Expand All @@ -204,9 +189,6 @@
<discover_datasets directory="split" pattern="(?P&lt;designation&gt;.+)\.tab" format="tabular" visible="false"/>
<filter>split_output_cond['split_output_selector'] == 'yes'</filter>
</collection>
<data format="html" name="html_file" label="${tool.name} on ${on_string}: plot-bamstats">
<filter>cond_plot['select_plot']=='yes'</filter>
</data>
</outputs>
<tests>
<!-- https://github.com/samtools/samtools/blob/9ce8c64493f7ea3fa69bc5c1ac980b1a8e3dcf1f/test/test.pl#L2402 -->
Expand Down Expand Up @@ -357,9 +339,6 @@
<param name="addref_select" value="history" />
<param name="ref" value="samtools_stats_ref.fa" ftype="fasta" />
</conditional>
<conditional name="cond_plot">
<param name="select_plot" value="yes"/>
</conditional>
<output name="output" file="samtools_stats_out1.tab" ftype="tabular" lines_diff="2" />
</test>
<test>
Expand All @@ -383,6 +362,8 @@
**What it does**
This tool runs the ``samtools stats`` command.
The results of samtools stats can be visualized with MultiQC (for this the default of a single output file needs to be selected).
]]></help>
<expand macro="citations"/>
</tool>
Expand Down

0 comments on commit 7cf4774

Please sign in to comment.