Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linter fixes for poretools #6362

Merged
merged 8 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 0 additions & 6 deletions tools/poretools/.lint_skip
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
InputsNameDuplicate
InputsNameRedundantArgument
InputsSelectOptionDuplicateText
InputsSelectOptionDuplicateValue
TestsParamInInputs
ToolVersionPEP404
XMLOrder
10 changes: 5 additions & 5 deletions tools/poretools/macros.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
</xrefs>
</xml>
<token name="@VERSION@">0.6.1a1</token>
<token name="@PROFILE@">23.1</token>
<xml name="citations">
<citations>
<citation type="doi">10.1093/bioinformatics/btu555</citation>
Expand All @@ -24,7 +25,7 @@
<option value="svg">SVG</option>
<yield />
</param>
<param name="theme_bw" argument="--theme-bw" type="boolean" truevalue="--theme-bw" falsevalue="" label="Use a monochrome color scheme" />
<param argument="--theme-bw" type="boolean" truevalue="--theme-bw" falsevalue="" label="Use a monochrome color scheme" />
</xml>
<xml name="image_output">
<data name="output" format="png">
Expand All @@ -36,7 +37,7 @@
</data>
</xml>
<xml name="stat_options">
<param name="type" argument="--type" type="select" label="Filter by type of read">
<param argument="--type" type="select" label="Filter by type of read">
<option value="all" selected="true">All</option>
<option value="fwd">Forward reads</option>
<option value="rev">Reverse reads</option>
Expand All @@ -49,9 +50,8 @@
<param name="input" ftype="fast5.tar" value="poretools-in1.tar.bz2" />
</xml>
<xml name="length_options">
<param name="min_length" argument="--min-length" type="integer" value="0" label="Minimum read length" />
<param name="max_length" argument="--max-length" type="integer" value="1000000000" label="Maximum read length" />
<param argument="--min-length" type="integer" value="0" label="Minimum read length" />
<param argument="--max-length" type="integer" value="1000000000" label="Maximum read length" />
</xml>
<token name="@MPLBACKEND@"><![CDATA[export MPLBACKEND="agg" &&]]></token>
<token name="@profile@">18.09</token>
</macros>
5 changes: 2 additions & 3 deletions tools/poretools/poretools_events.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0"?>
<tool id="poretools_events" name="Extract nanopore events" version="@[email protected]">
<tool id="poretools_events" name="Extract nanopore events" version="@[email protected]" profile="@PROFILE@">
<description>from a set of sequencing reads</description>
<expand macro="bio_tools"/>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<command detect_errors="aggressive">
<![CDATA[
Expand Down
5 changes: 2 additions & 3 deletions tools/poretools/poretools_extract.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0"?>
<tool id="poretools_extract" name="Extract reads" version="@[email protected]">
<tool id="poretools_extract" name="Extract reads" version="@[email protected]" profile="@PROFILE@">
<description>in FASTA or FASTQ format from nanopore files</description>
<expand macro="bio_tools"/>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<command detect_errors="aggressive">
<![CDATA[
Expand Down
7 changes: 3 additions & 4 deletions tools/poretools/poretools_hist.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0"?>
<tool id="poretools_hist" name="Generate histogram" version="@[email protected]">
<tool id="poretools_hist" name="Generate histogram" version="@[email protected]" profile="@PROFILE@">
<description>of nanopore read lengths</description>
<expand macro="bio_tools"/>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<command detect_errors="aggressive">
<![CDATA[
Expand All @@ -16,7 +15,7 @@ poretools hist '$input' --saveas histogram.$extension --min-length $min_length -
<param name="input" type="data" format="h5,fast5.tar,fast5.tar.gz,fast5.tar.bz2" label="Input fast5 or archive of fast5 files" />
<expand macro="plot_options" />
<expand macro="length_options" />
<param name="num_bins" argument="--num-bins" type="integer" value="50" label="Number of bins in the histogram" />
<param argument="--num-bins" type="integer" value="50" label="Number of bins in the histogram" />
</inputs>
<outputs>
<expand macro="image_output" />
Expand Down
5 changes: 2 additions & 3 deletions tools/poretools/poretools_nucdist.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0"?>
<tool id="poretools_nucdist" name="Show nucleotide" version="@[email protected]">
<tool id="poretools_nucdist" name="Show nucleotide" version="@[email protected]" profile="@PROFILE@">
<description>distribution in nanopore sequencing reads</description>
<expand macro="bio_tools"/>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<command detect_errors="aggressive">
<![CDATA[
Expand Down
7 changes: 3 additions & 4 deletions tools/poretools/poretools_occupancy.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0"?>
<tool id="poretools_occupancy" name="Plot performance" version="@[email protected]">
<tool id="poretools_occupancy" name="Plot performance" version="@[email protected]" profile="@PROFILE@">
<description>per cell in nanopore reads</description>
<expand macro="bio_tools"/>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<command detect_errors="aggressive">
<![CDATA[
Expand All @@ -24,7 +23,7 @@ mv occupancy.$extension '$output'
<option value="pdf">PDF</option>
<option value="svg">SVG</option>
</param>
<param name="plot_type" argument="--plot-type" type="select" label="Plot type to generate">
<param argument="--plot-type" type="select" label="Plot type to generate">
<option value="read_count">Read count</option>
<option value="total_bp">Total base pairs</option>
</param>
Expand Down
5 changes: 2 additions & 3 deletions tools/poretools/poretools_qualdist.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0"?>
<tool id="poretools_qualdist" name="Show quality" version="@[email protected]">
<tool id="poretools_qualdist" name="Show quality" version="@[email protected]" profile="@PROFILE@">
<description>score distribution in nanopore sequencing reads</description>
<expand macro="bio_tools"/>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<command detect_errors="aggressive">
<![CDATA[
Expand Down
13 changes: 4 additions & 9 deletions tools/poretools/poretools_qualpos.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0"?>
<tool id="poretools_qualpos" name="Generate box-whisker" version="@[email protected]">
<tool id="poretools_qualpos" name="Generate box-whisker" version="@[email protected]" profile="@PROFILE@">
<description>plot of quality score distribution over positions in nanopore reads</description>
<expand macro="bio_tools"/>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<command detect_errors="aggressive">
<![CDATA[
Expand All @@ -14,13 +13,9 @@ poretools qualpos '$input' --saveas qualpos.$extension --min-length $min_length
</command>
<inputs>
<param name="input" type="data" format="h5,fast5.tar,fast5.tar.gz,fast5.tar.bz2" label="Input fast5 or archive of fast5 files" />
<expand macro="plot_options">
<option value="pdf">PDF</option>
<option value="svg">SVG</option>
</expand>
<param name="theme_bw" argument="--theme-bw" type="boolean" truevalue="--theme-bw" falsevalue="" label="Use a monochrome color " />
<expand macro="plot_options"/>
<expand macro="length_options" />
<param name="bin_width" argument="--bin-width" type="integer" value="1000" label="The width of bins" />
<param argument="--bin-width" type="integer" value="1000" label="The width of bins" />
</inputs>
<outputs>
<expand macro="image_output">
Expand Down
7 changes: 3 additions & 4 deletions tools/poretools/poretools_squiggle.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0"?>
<tool id="poretools_squiggle" name="Plot signals" version="@[email protected]" profile="@profile@">
<tool id="poretools_squiggle" name="Plot signals" version="@[email protected]" profile="@PROFILE@">
<description>for nanopore reads</description>
<expand macro="bio_tools"/>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<command detect_errors="aggressive">
<![CDATA[
Expand All @@ -15,7 +14,7 @@ poretools squiggle '$input' --saveas $extension --num-facets $num_facets $theme_
<inputs>
<param name="input" type="data" format="h5,fast5.tar,fast5.tar.gz,fast5.tar.bz2" label="Input fast5 or archive of fast5 files" />
<expand macro="plot_options" />
<param name="num_facets" argument="--num-facets" type="integer" value="6" label="Number of plot facets" />
<param argument="--num-facets" type="integer" value="6" label="Number of plot facets" />
</inputs>
<outputs>
<data format="txt" name="output">
Expand Down
5 changes: 2 additions & 3 deletions tools/poretools/poretools_stats.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0"?>
<tool id="poretools_stats" name="Read length statistics" version="@[email protected]">
<tool id="poretools_stats" name="Read length statistics" version="@[email protected]" profile="@PROFILE@">
<description>from a set of FAST5 files</description>
<expand macro="bio_tools"/>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<command detect_errors="aggressive">
<![CDATA[
Expand Down
20 changes: 7 additions & 13 deletions tools/poretools/poretools_tabular.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0"?>
<tool id="poretools_tabular" name="Extract FASTQ" version="@[email protected]">
<tool id="poretools_tabular" name="Extract FASTQ" version="@[email protected]" profile="@PROFILE@">
<description>in tabular format from a set of FAST5 files</description>
<expand macro="bio_tools"/>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<command detect_errors="aggressive">
<![CDATA[
Expand All @@ -21,32 +20,27 @@
<tests>
<test>
<expand macro="test_input" />
<param name="types" value="fwd" />
<param name="detailed" value="true" />
<param name="type" value="fwd" />
<output name="output" file="poretools-tabular-out1.tabular" ftype="tabular" />
</test>
<test>
<expand macro="test_input" />
<param name="types" value="rev" />
<param name="detailed" value="false" />
<param name="type" value="rev" />
<output name="output" file="poretools-tabular-out2.tabular" ftype="tabular" />
</test>
<test>
<expand macro="test_input" />
<param name="types" value="2D" />
<param name="detailed" value="true" />
<param name="type" value="2D" />
<output name="output" file="poretools-tabular-out3.tabular" ftype="tabular" />
</test>
<test>
<expand macro="test_input" />
<param name="types" value="best" />
<param name="detailed" value="false" />
<param name="type" value="best" />
<output name="output" file="poretools-tabular-out4.tabular" ftype="tabular" />
</test>
<test>
<expand macro="test_input" />
<param name="types" value="all" />
<param name="detailed" value="true" />
<param name="type" value="all" />
<output name="output" file="poretools-tabular-out5.tabular" ftype="tabular" />
</test>
</tests>
Expand Down
31 changes: 2 additions & 29 deletions tools/poretools/poretools_times.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0"?>
<tool id="poretools_times" name="Extract time" version="@[email protected]">
<tool id="poretools_times" name="Extract time" version="@[email protected]" profile="@PROFILE@">
<description>and channel information from a set of FAST5 files</description>
<expand macro="bio_tools"/>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<command detect_errors="aggressive">
<![CDATA[
Expand All @@ -20,34 +19,8 @@
<tests>
<test>
<expand macro="test_input" />
<param name="types" value="fwd" />
<param name="detailed" value="true" />
<output name="output" file="poretools-times-out1.tabular" ftype="tabular" />
</test>
<test>
<expand macro="test_input" />
<param name="types" value="rev" />
<param name="detailed" value="false" />
<output name="output" file="poretools-times-out2.tabular" ftype="tabular" />
</test>
<test>
<expand macro="test_input" />
<param name="types" value="2D" />
<param name="detailed" value="true" />
<output name="output" file="poretools-times-out3.tabular" ftype="tabular" />
</test>
<test>
<expand macro="test_input" />
<param name="types" value="best" />
<param name="detailed" value="false" />
<output name="output" file="poretools-times-out4.tabular" ftype="tabular" />
</test>
<test>
<expand macro="test_input" />
<param name="types" value="all" />
<param name="detailed" value="true" />
<output name="output" file="poretools-times-out5.tabular" ftype="tabular" />
</test>
</tests>
<help>
Collect read size statistics from a set of FAST5 files.
Expand Down
13 changes: 6 additions & 7 deletions tools/poretools/poretools_winner.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0"?>
<tool id="poretools_winner" name="Get longest read" version="@[email protected]">
<tool id="poretools_winner" name="Get longest read" version="@[email protected]" profile="@PROFILE@">
<description>from a set of FAST5 files.</description>
<expand macro="bio_tools"/>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<command detect_errors="aggressive">
<![CDATA[
Expand All @@ -21,22 +20,22 @@
<tests>
<test>
<expand macro="test_input" />
<param name="types" value="fwd" />
<param name="type" value="fwd" />
<output name="output" file="poretools-winner-out1.tabular" ftype="tabular" />
</test>
<test>
<expand macro="test_input" />
<param name="types" value="rev" />
<param name="type" value="rev" />
<output name="output" file="poretools-winner-out2.tabular" ftype="tabular" />
</test>
<test>
<expand macro="test_input" />
<param name="types" value="2D" />
<param name="type" value="2D" />
<output name="output" file="poretools-winner-out3.tabular" ftype="tabular" />
</test>
<test>
<expand macro="test_input" />
<param name="types" value="best" />
<param name="type" value="best" />
<output name="output" file="poretools-winner-out4.tabular" ftype="tabular" />
</test>
</tests>
Expand Down
7 changes: 3 additions & 4 deletions tools/poretools/poretools_yield_plot.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0"?>
<tool id="poretools_yield_plot" name="Collector’s curve" version="@[email protected]">
<tool id="poretools_yield_plot" name="Collector’s curve" version="@[email protected]" profile="@PROFILE@">
<description>of sequencing yield over time</description>
<expand macro="bio_tools"/>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements"/>
<command detect_errors="aggressive">
<![CDATA[
Expand All @@ -19,7 +18,7 @@ poretools yield_plot '$input' --saveas plot.$extension --plot-type $plot_type
</command>
<inputs>
<param name="input" type="data" format="h5,fast5.tar,fast5.tar.gz,fast5.tar.bz2" label="Input fast5 or archive of fast5 files" />
<param name="plot_type" argument="--plot-type" type="select" label="Plot reads or base pairs">
<param argument="--plot-type" type="select" label="Plot reads or base pairs">
<option value="reads">Reads</option>
<option value="basepairs">Base pairs</option>
</param>
Expand Down
Loading