Mercurial > repos > bgruening > tiara
comparison tiara.xml @ 1:66058890173e draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/tiara commit eb21d389502b053adf569eb53a0b4cc9e0864fbe
author | bgruening |
---|---|
date | Fri, 18 Oct 2024 11:50:31 +0000 |
parents | 3f33a8ac8891 |
children |
comparison
equal
deleted
inserted
replaced
0:3f33a8ac8891 | 1:66058890173e |
---|---|
1 <tool id="tiara" name="tiara" version="@TOOL_VERSION@+galaxy0" profile="21.05"> | 1 <tool id="tiara" name="tiara" version="@TOOL_VERSION@+galaxy1" profile="21.05"> |
2 <description>Deep-learning-based approach for identification of eukaryotic sequences in the metagenomic data </description> | 2 <description>Deep-learning-based approach for identification of eukaryotic sequences in the metagenomic data </description> |
3 <macros> | 3 <macros> |
4 <import>macros.xml</import> | 4 <import>macros.xml</import> |
5 </macros> | 5 </macros> |
6 <expand macro="biotools"/> | 6 <expand macro="biotools"/> |
7 <expand macro="requirements"/> | 7 <expand macro="requirements"/> |
8 <command detect_errors="exit_code"><![CDATA[ | 8 <command detect_errors="exit_code"><![CDATA[ |
9 | 9 mkdir ./results/ && |
10 tiara | 10 tiara |
11 -t \${GALAXY_SLOTS:-4} | 11 -t \${GALAXY_SLOTS:-4} |
12 -i '$input' | 12 -i '$input' |
13 -o '$output' | 13 -o ./results/main_result.txt |
14 | 14 |
15 #if $taxonomy_filter | |
16 --tf #for $tf in $taxonomy_filter | |
17 $tf | |
18 #end for | |
19 #end if | |
20 #if $probabilities | 15 #if $probabilities |
21 --pr '$probabilities' | 16 --pr '$probabilities' |
22 #end if | 17 #end if |
23 #if $min_len | 18 #if $min_len |
24 -m '$min_len' | 19 -m '$min_len' |
31 #end if | 26 #end if |
32 #if $advanced_options.advance.customize_kmer_length == 'customize' | 27 #if $advanced_options.advance.customize_kmer_length == 'customize' |
33 --k1 $advanced_options.advance.first_stage_kmer | 28 --k1 $advanced_options.advance.first_stage_kmer |
34 --k2 $advanced_options.advance.second_stage_kmer | 29 --k2 $advanced_options.advance.second_stage_kmer |
35 #end if | 30 #end if |
31 #if $taxonomy_filter | |
32 --tf #for $tf in $taxonomy_filter | |
33 $tf | |
34 #end for | |
35 #for $tf in $taxonomy_filter | |
36 && ls -l ./results/ | |
37 && mv ./results/${tf}*.dat ./results/${tf}.fasta | |
38 #end for | |
39 #end if | |
36 | 40 |
37 ]]></command> | 41 ]]></command> |
38 <inputs> | 42 <inputs> |
39 <param name="input" type="data" format="fasta" label="input fasta,fasta.gz file"/> | 43 <param name="input" type="data" format="fasta" label="input fasta,fasta.gz file"/> |
40 <param name="taxonomy_filter" type="select" multiple="true" optional="true" label="Write sequences to fasta,fasta.gz files specified in the arguments to this option." help="all refers to all classes present in input fasta (to separate fasta files)."> | 44 <param name="taxonomy_filter" type="select" multiple="true" optional="true" label="Write sequences to fasta,fasta.gz files specified in the arguments to this option." help="all refers to all classes present in input fasta (to separate fasta files)."> |
41 <option value="mit">mitochondria</option> | 45 <option value="mit">mitochondria</option> |
42 <option value="pla">plastid</option> | 46 <option value="pla">plastid</option> |
43 <option value="bac">bacteria</option> | 47 <option value="bac">bacteria</option> |
44 <option value="arc">archea</option> | 48 <option value="arc">archea</option> |
45 <option value="euk">eukarya</option> | 49 <option value="euk">eukarya</option> |
46 <option value="unk">unknown</option> | |
47 <option value="pro">prokarya</option> | |
48 <option value="all">all</option> | |
49 </param> | 50 </param> |
50 <param argument="probabilities" type="boolean" truevalue="--pr" falsevalue="" checked="false" label="Add probabilities of individual classes for each sequence."/> | 51 <param argument="probabilities" type="boolean" truevalue="--pr" falsevalue="" checked="false" label="Add probabilities of individual classes for each sequence."/> |
51 <param argument="min_len" type="integer" value="3000" min="1000" optional="true" label="Minimum length of a sequence. Default: 3000 bp." help="Specify the desired minimum length in base pairs.Default value is 3000 bp and we do not recommend classifying sequences shorter than 1000 bp. "/> | 52 <param argument="min_len" type="integer" value="3000" min="1000" optional="true" label="Minimum length of a sequence. Default: 3000 bp." help="Specify the desired minimum length in base pairs.Default value is 3000 bp and we do not recommend classifying sequences shorter than 1000 bp. "/> |
52 <param argument="cutoff_stage1" type="float" value="0.65" min="0.5" max="1" optional="true" label="Probability threshold for the first stage." help="Probability threshold needed for classification in the first stage. Default: 0.65." /> | 53 <param argument="cutoff_stage1" type="float" value="0.65" min="0.5" max="1" optional="true" label="Probability threshold for the first stage." help="Probability threshold needed for classification in the first stage. Default: 0.65." /> |
53 <param argument="cutoff_stage2" type="float" value="0.65" min="0.5" max="1" optional="true" label="Probability threshold for the second stage." help="Probability threshold needed for classification in the second stage. Default: 0.65." /> | 54 <param argument="cutoff_stage2" type="float" value="0.65" min="0.5" max="1" optional="true" label="Probability threshold for the second stage." help="Probability threshold needed for classification in the second stage. Default: 0.65." /> |
75 </when> | 76 </when> |
76 </conditional> | 77 </conditional> |
77 </section> | 78 </section> |
78 </inputs> | 79 </inputs> |
79 <outputs> | 80 <outputs> |
80 <data name="output" format="txt" label="${tool.name} on ${on_string}: sequence ID, classification results"/> | 81 <collection name="output" type="list" label="${tool.name} on ${on_string}: classified sequences in txt and Fasta Output"> |
82 <discover_datasets pattern="__name_and_ext__" ext="fasta,txt" directory="results" /> | |
83 </collection> | |
81 </outputs> | 84 </outputs> |
82 <tests> | 85 <tests> |
83 <test expect_num_outputs="1"> | 86 <test expect_num_outputs="1"> |
84 <param name="input" value="plast_fr.fasta.gz"/> | 87 <param name="input" value="plast_fr.fasta.gz"/> |
85 <param name="taxonomy_filter" value="pla"/> | 88 <param name="taxonomy_filter" value="pla"/> |
86 <output name="output" ftype="txt"> | 89 <output_collection name="output" type="list"> |
87 <assert_contents> | 90 <element name="main_result" file="main_result01.txt" ftype="txt"/> |
88 <has_text_matching expression=".*sequence_id*"/> | 91 <element name="pla" file="pla" ftype="fasta" /> |
89 <has_n_lines n="11" delta="5"/> | 92 </output_collection> |
90 </assert_contents> | |
91 </output> | |
92 </test> | |
93 <test expect_num_outputs="1"> | |
94 <param name="input" value="mitplas1.fasta"/> | |
95 <param name="taxonomy_filter" value="pla,mit"/> | |
96 <output name="output" ftype="txt"> | |
97 <assert_contents> | |
98 <has_text_matching expression=".*sequence_id*"/> | |
99 <has_n_lines n="30" delta="5"/> | |
100 </assert_contents> | |
101 </output> | |
102 </test> | 93 </test> |
103 <test expect_num_outputs="1"> | 94 <test expect_num_outputs="1"> |
104 <param name="input" value="sample_all.fasta"/> | 95 <param name="input" value="sample_all.fasta"/> |
105 <param name="taxonomy_filter" value="all"/> | 96 <param name="taxonomy_filter" value="euk,bac,arc"/> |
106 <output name="output" ftype="txt"> | 97 <output_collection name="output" type="list"> |
107 <assert_contents> | 98 <element name="arc" file="arc" ftype="fasta" /> |
108 <has_text_matching expression=".*sequence_id*"/> | 99 <element name="bac" file="bac" ftype="fasta" /> |
109 <has_n_lines n="51" delta="5"/> | 100 <element name="euk" file="euk" ftype="fasta" /> |
110 </assert_contents> | 101 <element name="main_result" file="main_result02.txt" ftype="txt" /> |
111 </output> | 102 </output_collection> |
112 </test> | |
113 <test expect_num_outputs="1"> | |
114 <param name="input" value="sample_all.fasta"/> | |
115 <param name="taxonomy_filter" value="euk,bac,arc,unk"/> | |
116 <output name="output" ftype="txt"> | |
117 <assert_contents> | |
118 <has_text_matching expression=".*sequence_id*"/> | |
119 <has_n_lines n="51" delta="5"/> | |
120 </assert_contents> | |
121 </output> | |
122 </test> | 103 </test> |
123 <test expect_num_outputs="1"> | 104 <test expect_num_outputs="1"> |
124 <param name="input" value="eukarya_fr.fasta"/> | 105 <param name="input" value="eukarya_fr.fasta"/> |
125 <param name="taxonomy_filter" value="euk"/> | 106 <param name="taxonomy_filter" value="euk"/> |
126 <param name="min_len" value="5000"/> | 107 <param name="min_len" value="5000"/> |
127 <param name="cutoff_stage1" value="0.65"/> | 108 <param name="cutoff_stage1" value="0.65"/> |
128 <param name="cutoff_stage2" value="0.60"/> | 109 <param name="cutoff_stage2" value="0.60"/> |
129 <output name="output" ftype="txt"> | |
130 <assert_contents> | |
131 <has_text_matching expression=".*sequence_id*"/> | |
132 <has_n_lines n="11" delta="5"/> | |
133 </assert_contents> | |
134 </output> | |
135 </test> | |
136 <test expect_num_outputs="1"> | |
137 <param name="input" value="bacteria_fr.fasta"/> | |
138 <param name="taxonomy_filter" value="bac"/> | |
139 <param name="min_len" value="5000"/> | |
140 <param name="cutoff_stage1" value="0.65"/> | |
141 <param name="cutoff_stage2" value="0.60"/> | |
142 <param name="probabilities" value="true"/> | 110 <param name="probabilities" value="true"/> |
143 <output name="output" ftype="txt"> | 111 <output_collection name="output" type="list"> |
144 <assert_contents> | 112 <element name="euk" file="euk" ftype="fasta" /> |
145 <has_text_matching expression=".*bac*"/> | 113 <element name="main_result" file="main_result03.txt" ftype="txt" /> |
146 <has_n_lines n="11" delta="5"/> | 114 </output_collection> |
147 </assert_contents> | |
148 </output> | |
149 </test> | 115 </test> |
150 </tests> | 116 </tests> |
151 <help><![CDATA[ | 117 <help><![CDATA[ |
152 What it does | 118 What it does |
153 ============ | 119 ============ |