Mercurial > repos > bgruening > motus
comparison motus_merge.xml @ 0:d20f3b9a59a2 draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/mOTUs commit 36fa40d4507065b7240c0a98815a079aba589e25
author | bgruening |
---|---|
date | Fri, 06 Sep 2024 15:00:49 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d20f3b9a59a2 |
---|---|
1 <tool id="mereg_mOTUs_tables" name="Merge" version="@TOOL_VERSION@+galaxy0" profile="21.05"> | |
2 <description>Merge mOTUs aboundance or count tables</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="biotools"/> | |
7 <expand macro="requirements"/> | |
8 <command detect_errors="exit_code"><![CDATA[ | |
9 #if $db.db_source == 'cached' | |
10 #set $DATABASE_DIR=$db.db_cached.fields.path | |
11 #else | |
12 #set $database_path = $db.database | |
13 mkdir database_dir && | |
14 tar -xvf '$database_path' -C database_dir/ && | |
15 #set $DATABASE_DIR = 'database_dir/db_mOTU' ##the actual DB folder in the archive called db_mOTU | |
16 #end if | |
17 echo "Database Directory:" $DATABASE_DIR && | |
18 | |
19 motus merge | |
20 -db '$DATABASE_DIR' | |
21 -i '${','.join([str($file) for $file in $files])}' | |
22 #if $add_profiles | |
23 -a '$add_profiles' | |
24 #end if | |
25 #if $biom_format | |
26 -o '$output_biom' | |
27 $biom_format | |
28 #else | |
29 -o '$output_txt' | |
30 #end if | |
31 ]]></command> | |
32 <inputs> | |
33 <param name="files" type="data" format="txt" multiple="true" label="mOTU profiles to merge"/> | |
34 <param argument="add_profiles" type="text" label="Add pre-computed profiles" help="Add pre-computed profiles from different environmental samples" optional="true"/> | |
35 <param argument="biom_format" type="boolean" truevalue="-B" falsevalue="" checked="false" label="Output in BIOM format?"/> | |
36 <conditional name="db"> | |
37 <param name="db_source" type="select" label="mOTUs Database"> | |
38 <option value="cached">Use a pre-installed database</option> | |
39 <option value="history">Use a database from history</option> | |
40 </param> | |
41 <when value="cached"> | |
42 <param name="db_cached" type="select" label="A pre-installed mOTUs databese" help="no pre-installed mOTUs databases are avalable yet"> | |
43 <options from_data_table="motus_db_versioned"> | |
44 <filter type="sort_by" column="1"/> | |
45 <validator type="no_options" message="No compatible motus database is available"/> | |
46 </options> | |
47 </param> | |
48 </when> | |
49 <when value="history"> | |
50 <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"/> | |
51 </when> | |
52 </conditional> | |
53 </inputs> | |
54 <outputs> | |
55 <data name="output_txt" format="txt" label="${tool.name} on ${on_string}: Merged taxon tables"> | |
56 <filter>not biom_format</filter> | |
57 </data> | |
58 <data name="output_biom" format="biom1" label="${tool.name} on ${on_string}: BIOM Output"> | |
59 <filter>biom_format</filter> | |
60 </data> | |
61 </outputs> | |
62 <tests> | |
63 <test expect_num_outputs="1"> | |
64 <param name="files" value="SAMEA2466887-default.motus,SAMEA2466889-default.motus"/> | |
65 <param name="biom_format" value="false"/> | |
66 <conditional name="db"> | |
67 <!-- Local db --> | |
68 <param name="db_source" value="history"/> | |
69 <param name="database" location="https://zenodo.org/record/7778108/files/db_mOTU_v3.1.0.tar.gz"/> | |
70 <!-- <param name="database" value="db_mOTU_v3.1.0.tar.gz"/> --> | |
71 </conditional> | |
72 <output name="output_txt" ftype="txt"> | |
73 <assert_contents> | |
74 <has_text_matching expression="Enterobacterales sp.*"/> | |
75 <has_text_matching expression="Klebsiella michiganensis.*"/> | |
76 <has_text_matching expression="Streptococcus sp.*"/> | |
77 <has_text_matching expression="Streptococcus pseudopneumoniae.*"/> | |
78 </assert_contents> | |
79 </output> | |
80 </test> | |
81 </tests> | |
82 <help><![CDATA[ | |
83 | |
84 What it does | |
85 ============ | |
86 | |
87 The mOTUs tool performs taxonomic profiling of metagenomics and metatrancriptomics samples. | |
88 | |
89 mOTUs merge is specifically developed for merging and consolidating taxonomic profiles generated by the mOTU profiler. | |
90 It facilitates the combination of taxon abundance or count data from multiple samples or datasets into a single output. | |
91 | |
92 ]]></help> | |
93 <expand macro="citations"/> | |
94 </tool> |