Skip to content

Commit

Permalink
add macros
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHarrop committed Nov 1, 2023
1 parent ad7dac6 commit 10a058a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 18 deletions.
21 changes: 21 additions & 0 deletions tools/repeatexplorer2/macros.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<macros>
<token name="@TOOL_VERSION@">2.3.8</token>
<token name="@VERSION_SUFFIX@">0</token>
<token name="@PROFILE@">23.0</token>
<xml name="requirements">
<requirements>
<container type="docker">kavonrtep/repeatexplorer:@TOOL_VERSION@</container>
</requirements>
</xml>
<xml name="citations">
<citations>
<citation type="bibtex">@software{repeatexplorer2,
author = {kavonrtep},
year = {2023},
title = {repeatexplorer2},
publisher = {GitHub},
url = {https://github.com/kavonrtep/galaxy_packages}
}</citation>
</citations>
</xml>
</macros>
31 changes: 13 additions & 18 deletions tools/repeatexplorer2/repex_full_clustering.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
<tool id="repeatexplorer2" name="RepeatExplorer2 clustering: " version="2.3.8.1" >
<stdio>
<regex match="lastdb: can't open file: NEAR" source="stderr" level="fatal" description="Version of last is too old, use ver 956 or higher\n" />
<regex match="Traceback" source="stderr" level="fatal" description="Unknown error" />
<regex match="error" source="stderr" level="fatal" description="Unknown error" />
<regex match="Warning" source="stderr" level="warning" description="Unknown error" />
<exit_code range="1:" level="fatal" description="Error" />
</stdio>
<description>Improved version or repeat discovery and characterization using graph-based sequence clustering</description>
<requirements>
<container type="singularity">library://repeatexplorer/default/repex_tarean:0.3.8-dbaa07f</container>
</requirements>
<command>
<tool id="repeatexplorer2" name="RepeatExplorer2 clustering: " version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@" >
<description>Improved version or repeat discovery and characterization using graph-based sequence clustering</description>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="requirements"/>
<command><![CDATA[
export PYTHONHASHSEED=0;
seqclust --sample ${read_sampling.sample} --output_dir=tarean_output --logfile=${log} --cleanup $paired --taxon $taxon
Expand Down Expand Up @@ -51,7 +45,7 @@
cp *.css ${ReportFile.extra_files_path}/ &amp;&amp;
cp *.fasta ${ReportFile.extra_files_path}/ 2>>$log &amp;&amp; rm -r ../tarean_output || :
</command>
]]></command>
<inputs>
<param name="FastaFile" label="NGS reads" type="data" format="fasta"
help="Input file must contain FASTA-formatted NGS reads. Illumina paired-end reads are recommended."/>
Expand Down Expand Up @@ -160,7 +154,7 @@
<data name="ReportFile" format="html" label="RepeatExplorer2 - HTML report from data ${FastaFile.hid}"/>
</outputs>

<help>
<help><![CDATA[
**HELP**
RepeatExplorer2 clustering is a computational pipeline for unsupervised
Expand Down Expand Up @@ -298,6 +292,7 @@
downloadable **zip archive**. Additionally a **log file** reporting
the progress of the computational pipeline is provided.
</help>

</tool>
]]></help>
<expand macro="citations"/>
</tool>

0 comments on commit 10a058a

Please sign in to comment.