Mercurial > repos > bgruening > semibin_generate_cannot_links
comparison generate_cannot_links.xml @ 0:dba4c0409de1 draft default tip
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
author | bgruening |
---|---|
date | Fri, 14 Oct 2022 21:32:03 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:dba4c0409de1 |
---|---|
1 <tool id="semibin_generate_cannot_links" name="SemiBin: Contig annotations" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> | |
2 <description> | |
3 | |
4 </description> | |
5 <macros> | |
6 <import>macros.xml</import> | |
7 </macros> | |
8 <expand macro="biotools"/> | |
9 <expand macro="requirements"/> | |
10 <expand macro="version"/> | |
11 <command detect_errors="exit_code"><![CDATA[ | |
12 #import re | |
13 @FASTA_FILES@ | |
14 SemiBin | |
15 generate_cannot_links | |
16 --input-fasta 'contigs.fasta' | |
17 --output 'output' | |
18 --cannot-name 'cannot' | |
19 #if $mode.ref.select == "cached" | |
20 --reference-db-data-dir '$mode.ref.cached_db.fields.path' | |
21 #else | |
22 --taxonomy-annotation-table '$mode.ref.taxonomy_annotation_table' | |
23 #end if | |
24 @MIN_LEN@ | |
25 #if str($ml_threshold) != '' | |
26 --ml-threshold $ml_threshold | |
27 #end if | |
28 --cannot-name 'cannot' | |
29 --threads \${GALAXY_SLOTS:-1} | |
30 --processes \${GALAXY_SLOTS:-1} | |
31 ]]></command> | |
32 <inputs> | |
33 <conditional name="mode"> | |
34 <expand macro="mode_select"/> | |
35 <when value="single"> | |
36 <expand macro="input-fasta-single"/> | |
37 <expand macro="ref-single"/> | |
38 </when> | |
39 <when value="co"> | |
40 <expand macro="input-fasta-single"/> | |
41 <expand macro="ref-single"/> | |
42 </when> | |
43 <when value="multi"> | |
44 <expand macro="input-fasta-multi"/> | |
45 <expand macro="ref-multi"/> | |
46 </when> | |
47 </conditional> | |
48 <expand macro="min_len"/> | |
49 <expand macro="ml-threshold"/> | |
50 </inputs> | |
51 <outputs> | |
52 <expand macro="cannot_link_output"/> | |
53 </outputs> | |
54 <tests> | |
55 <test expect_num_outputs="1"> | |
56 <conditional name="mode"> | |
57 <param name="select" value="single"/> | |
58 <param name="input_fasta" ftype="fasta" value="input_single.fasta"/> | |
59 <conditional name="ref"> | |
60 <param name="select" value="taxonomy"/> | |
61 <param name="taxonomy_annotation_table" value="taxonomy.tsv"/> | |
62 </conditional> | |
63 </conditional> | |
64 <conditional name="min_len"> | |
65 <param name="method" value="min-len"/> | |
66 <param name="min_len" value="0" /> | |
67 </conditional> | |
68 <param name="ml_threshold" value=""/> | |
69 <output name="cannot" ftype="txt"> | |
70 <assert_contents> | |
71 <has_text text="g1k_0,g4k_0"/> | |
72 <has_text text="g2k_3,g4k_5"/> | |
73 <has_text text="g4k_6,g4k_5"/> | |
74 </assert_contents> | |
75 </output> | |
76 </test> | |
77 <test expect_num_outputs="1"> | |
78 <conditional name="mode"> | |
79 <param name="select" value="single"/> | |
80 <param name="input_fasta" ftype="fasta" value="input_single.fasta"/> | |
81 <conditional name="ref"> | |
82 <param name="select" value="taxonomy"/> | |
83 <param name="taxonomy_annotation_table" value="taxonomy.tsv"/> | |
84 </conditional> | |
85 </conditional> | |
86 <conditional name="min_len"> | |
87 <param name="method" value="min-len"/> | |
88 <param name="min_len" value="0" /> | |
89 </conditional> | |
90 <param name="ml_threshold" value=""/> | |
91 <output name="cannot" ftype="txt"> | |
92 <assert_contents> | |
93 <has_text text="g1k_0,g4k_0"/> | |
94 <has_text text="g2k_3,g4k_5"/> | |
95 <has_text text="g4k_6,g4k_5"/> | |
96 </assert_contents> | |
97 </output> | |
98 </test> | |
99 <test expect_num_outputs="1"> | |
100 <conditional name="mode"> | |
101 <param name="select" value="single"/> | |
102 <param name="input_fasta" ftype="fasta" value="input_single.fasta"/> | |
103 <conditional name="ref"> | |
104 <param name="db_selector" value="cached"/> | |
105 <param name="cached_db" value="test-db"/> | |
106 </conditional> | |
107 </conditional> | |
108 <conditional name="min_len"> | |
109 <param name="method" value="min-len"/> | |
110 <param name="min_len" value="0" /> | |
111 </conditional> | |
112 <param name="ml_threshold" value=""/> | |
113 <output name="cannot" ftype="txt"> | |
114 <assert_contents> | |
115 <has_text text="g1k_0,g2k_0"/> | |
116 <has_text text="g2k_9,g4k_1"/> | |
117 </assert_contents> | |
118 </output> | |
119 </test> | |
120 </tests> | |
121 <help><![CDATA[ | |
122 @HELP_HEADER@ | |
123 | |
124 This tool runs the contig annotations using mmseqs with GTDB and generate cannot-link file used in the semi-supervised deep learning model training. | |
125 | |
126 Inputs | |
127 ====== | |
128 | |
129 @HELP_INPUT_FASTA@ | |
130 | |
131 Outputs | |
132 ======= | |
133 | |
134 @HELP_CANNOT@ | |
135 | |
136 ]]></help> | |
137 <expand macro="citations"/> | |
138 </tool> |