Skip to content

Commit

Permalink
Merge pull request #6353 from bernt-matthias/lint-structureharvester
Browse files Browse the repository at this point in the history
fix linter errors for structure harvester
  • Loading branch information
mvdbeek authored Sep 25, 2024
2 parents 26aa67f + b6d2930 commit f1cac0a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 0 additions & 2 deletions tools/structureharvester/.lint_skip

This file was deleted.

20 changes: 12 additions & 8 deletions tools/structureharvester/structureharvester.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<tool id="structureharvester" name="structureHarvester" version="0.6.94">
<tool id="structureharvester" name="structureHarvester" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
<description>for parsing STRUCTURE outputs and for performing the Evanno method</description>
<macros>
<token name="@TOOL_VERSION@">0.6.94</token>
<token name="@VERSION_SUFFIX@">1</token>
</macros>
<requirements>
<requirement type="package" version="0.6.94">structureharvester</requirement>
<requirement type="package" version="@TOOL_VERSION@">structureharvester</requirement>
</requirements>
<version_command><![CDATA[
structureHarvester.py --version
Expand All @@ -14,7 +18,7 @@
structureHarvester.py --dir inputs/ --out . $evanno $clumpp &&
mv summary.txt '$summary'
#if $evanno
&& mv evanno.txt $evanno
&& mv evanno.txt '$evanno_out'
#end if
#if $clumpp
&& mkdir clumpp_indfile clumpp_popfile
Expand All @@ -28,21 +32,21 @@
<param argument="--clumpp" type="boolean" checked="false" truevalue="--clumpp" falsevalue="" label="Generates one K*.indfile for each value of K run, for use with CLUMPP." />
</inputs>
<outputs>
<data name="summary" format="txt" label="Structure Harvester summary"/>
<data name="evanno" format="txt" label="Evann method output">
<data name="summary" format="txt" label="${tool.name} on ${on_string}: Summary"/>
<data name="evanno_out" format="txt" label="${tool.name} on ${on_string}: Evann output">
<filter>evanno</filter>
</data>
<collection name="clumpp_indfile" type="list" label="Clumpp K*.indfile">
<collection name="clumpp_indfile" type="list" label="${tool.name} on ${on_string}: Clumpp K*.indfile">
<filter>clumpp</filter>
<discover_datasets pattern="__name__" format="txt" directory="clumpp_indfile" />
</collection>
<collection name="clumpp_popfile" type="list" label="Clumpp K*.popfile">
<collection name="clumpp_popfile" type="list" label="${tool.name} on ${on_string}: Clumpp K*.popfile">
<filter>clumpp</filter>
<discover_datasets pattern="__name__" format="txt" directory="clumpp_popfile" />
</collection>
</outputs>
<tests>
<test>
<test expect_num_outputs="3">
<param name="inputs" value="example_harvester_archive/Admix_run_001_f,example_harvester_archive/Admix_run_002_f,example_harvester_archive/Admix_run_004_f,example_harvester_archive/Admix_run_005_f,example_harvester_archive/Admix_run_007_f,example_harvester_archive/Admix_run_008_f,example_harvester_archive/K1ReRun_run_1_f,example_harvester_archive/K1ReRun_run_2_f" />
<param name="evanno" value="false" />
<param name="clumpp" value="true" />
Expand Down

0 comments on commit f1cac0a

Please sign in to comment.