Skip to content
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
2 changes: 1 addition & 1 deletion tools/motus/.shed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ long_description:
mOTUs is a tool designed for profiling the abundance of microbial taxa in metagenomic datasets.
It can identify and quantify microbial taxa in samples, providing valuable insights into microbial community composition.
The tool works by analyzing metagenomic reads, offering high-resolution taxonomic profiling, and is particularly useful for microbial ecology studies and microbiome research.
remote_repository_url: https://github.com/bgruening/galaxytools/tree/master/tools/mOTUs
remote_repository_url: https://github.com/bgruening/galaxytools/tree/master/tools/motus
categories:
- Metagenomics
3 changes: 2 additions & 1 deletion tools/motus/macros.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
</xrefs>
</xml>
<token name="@TOOL_VERSION@">3.1.0</token>
<token name="@VERSION_SUFFIX@">galaxy0</token>
<token name="@PROFILE@">21.05</token>
<token name="@VERSION_SUFFIX@">0</token>
<token name="@COMPATIBLE_MOTUSDB_VERSION@">3.1.0</token>
<xml name="citations">
<citations>
Expand Down
116 changes: 116 additions & 0 deletions tools/motus/motus_map_snv.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<tool id="motus_map_snv" name="Map SNV" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
<description>Map reads to the marker gene database for SNV calling</description>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="biotools"/>
<expand macro="requirements"/>
<command detect_errors="exit_code"><![CDATA[

#if $db.db_source == 'cached'
#set $DATABASE_DIR=$db.db_cached.fields.path
#else
#set $database_path = $db.database
mkdir database_dir &&
tar -xvf '$database_path' -C database_dir/ &&
#set $DATABASE_DIR = 'database_dir/db_mOTU' ##the actual DB folder in the archive called db_mOTU
#end if
echo "Database Directory:" $DATABASE_DIR &&


motus map_snv

#if $inputs.reads_type.selector == 'paired'
-f '${inputs.reads_type.forward_reads}'
-r '${inputs.reads_type.reverse_reads}'
#elif $inputs.reads_type.selector == 'single'
-s '${inputs.reads_type.unpaired_reads}'
#end if
-db '$DATABASE_DIR'
-l $algorithm_advanced_options.minimum_alignment_len
-v $algorithm_advanced_options.verbosity_level_selection
-o '$bam_output'

]]></command>
<inputs>

<section name="inputs" title="Inputs" expanded="true">
<conditional name="reads_type">
<param name="selector" type="select" format="fastq,fastq.gz" label="Choose input file(s)">
<option value="paired">Paired-end</option>
<option value="single" selected="true">Single</option>
</param>
<when value="paired">
<param name="forward_reads" type="data" format="fastq,fastq.gz" label="Forward reads" help="-f Input file(s) for reads in forward orientation, fastq(.gz)-formatted"/>
<param name="reverse_reads" type="data" format="fastq,fastq.gz" label="Reverse reads" help="-r Input file(s) for reads in reverse orientation, fastq(.gz)-formatted"/>
</when>
<when value="single">
<param name="unpaired_reads" type="data" format="fastq,fastq.gz" label="Single reads" help="-s input file(s) for single reads, fastq(.gz)-formatted"/>
</when>
</conditional>

<conditional name="db">
<param name="db_source" type="select" label="mOTUs Database">
<option value="cached" selected="True">Use a pre-installed database</option>
<option value="history">Use a database from history</option>
</param>
<when value="cached">
<param name="db_cached" type="select" label="A pre-installed mOTUs databese" help="no pre-installed mOTUs databases are avalable yet">
<options from_data_table="motus_db_versioned">
<filter type="sort_by" column="1"/>
<validator type="no_options" message="No compatible motus database is available"/>
</options>
</param>
</when>
<when value="history">
<param name="database" type="data" format="tar" label="Database from history" help="Custom database or other version of mOTUs database from link: https://zenodo.org/records/5140350"/>
</when>
</conditional>
</section>
<section name="algorithm_advanced_options" title="Advanced Options" expanded="true">
<param argument="-v" name="verbosity_level_selection" type="select" label="verbosity level" help="-v verbosity level">
<option value="1">error</option>
<option value="2">warning</option>
<option value="3" selected="True">message default</option>
<option value="4">debugging</option>
</param>

<param argument="-l" name="minimum_alignment_len" type="integer" value="75" optional="true" label="Minimum Alignment Length (bp)" help="Specify the desired minimum alignment length in base pairs. Default value is 75bp."/>
</section>

</inputs>
<outputs>
<data name="bam_output" format="bam" label="${tool.name} on ${on_string}: mapped reads"/>
</outputs>
<tests>
<test expect_num_outputs="1">

<section name="inputs">

<conditional name="reads_type">
<param name="selector" value="single"/>
<param name="unpaired_reads" ftype="fastq.gz" value="test1_single.fastq"/>
</conditional>

<conditional name="db">
<param name="db_source" value="history"/>
<param name="database" location="https://zenodo.org/record/7778108/files/db_mOTU_v3.1.0.tar.gz"/>
</conditional>
</section>
<output name="bam_output" ftype="bam">
<assert_contents>
<has_size value="7133479" delta="1000"/>
</assert_contents>
</output>
</test>

</tests>
<help><![CDATA[
What it does
============

The mOTUs Map SNV tool maps metagenomic reads to the marker gene database for single nucleotide variant (SNV) calling.
This is the first step in the mOTUs SNV analysis pipeline, preparing read alignments for subsequent variant detection with 'snv_call'.
]]></help>
<expand macro="citations"/>
</tool>
2 changes: 1 addition & 1 deletion tools/motus/motus_merge.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<tool id="mereg_mOTUs_tables" name="Merge" version="@TOOL_VERSION@+galaxy0" profile="21.05">
<tool id="mereg_mOTUs_tables" name="Merge" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
<description>Merge mOTUs aboundance or count tables</description>
<macros>
<import>macros.xml</import>
Expand Down
2 changes: 1 addition & 1 deletion tools/motus/motus_profiler.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<tool id="motus_profiler" name="mOTUs_profiler" version="@TOOL_VERSION@+galaxy0" profile="21.05">
<tool id="motus_profiler" name="mOTUs_profiler" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
<description>performs taxonomic profiling of metagenomics and metatrancriptomics samples</description>
<macros>
<import>macros.xml</import>
Expand Down
Loading