comparison microsatbed.xml @ 9:57867d1931d6 draft

planemo upload for repository https://github.com/fubar2/microsatbed commit 6e9d6a1dd5b8615dfa80b1b239e22b266c00a6dd
author fubar
date Tue, 13 Aug 2024 05:31:37 +0000
parents 01c16e8fbc91
children 43a8165cec3a
comparison
equal deleted inserted replaced
8:01c16e8fbc91 9:57867d1931d6
1 1
2 <tool id="microsatbedfubar" name="STR to bed" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="22.05"> 2 <tool id="microsatbed" name="STR to bed" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="22.05">
3 <description>Short Tandem Repeats to bed features from fasta</description> 3 <description>Short Tandem Repeats to bed features from fasta</description>
4 <macros> 4 <macros>
5 <token name="@TOOL_VERSION@">1.3.2</token> 5 <token name="@TOOL_VERSION@">1.3.2</token>
6 <token name="@VERSION_SUFFIX@">0</token> 6 <token name="@VERSION_SUFFIX@">0</token>
7 <token name="@PYTHON_VERSION@">3.12.3</token> 7 <token name="@PYTHON_VERSION@">3.12.3</token>
27 <include path="find_str.py"/> 27 <include path="find_str.py"/>
28 </required_files> 28 </required_files>
29 <version_command><![CDATA[python -c "import pytrf; from importlib.metadata import version; print(version('pytrf'))"]]></version_command> 29 <version_command><![CDATA[python -c "import pytrf; from importlib.metadata import version; print(version('pytrf'))"]]></version_command>
30 <command><![CDATA[ 30 <command><![CDATA[
31 #if $mode_cond.mode == "NATIVE": 31 #if $mode_cond.mode == "NATIVE":
32 #if $reference_genome.genome_type_select == "history": 32 #if str($reference_genome.genome_type_select) == "history":
33 pytrf findstr -f '$mode_cond.outformat' -o '$bed' -r '$monomin' '$dimin' '$trimin' '$tetramin' '$pentamin' '$hexamin' '${reference_genome.fasta}' 33 pytrf findstr -f '$mode_cond.outformat' -o '$bed' -r '$monomin' '$dimin' '$trimin' '$tetramin' '$pentamin' '$hexamin' '${reference_genome.reffa}'
34 #else: 34 #else:
35 pytrf findstr -f '$mode_cond.outformat' -o '$bed' -r '$monomin' '$dimin' '$trimin' '$tetramin' '$pentamin' '$hexamin' '${reference_genome.fasta.fields.path}' 35 pytrf findstr -f '$mode_cond.outformat' -o '$bed' -r '$monomin' '$dimin' '$trimin' '$tetramin' '$pentamin' '$hexamin' '${reference_genome.reffa.fields.path}'
36 #end if 36 #end if
37 #else: 37 #else:
38 python '${__tool_directory__}/find_str.py' 38 python '${__tool_directory__}/find_str.py'
39 #if str($reference_genome.genome_type_select) == "history": 39 #if str($reference_genome.genome_type_select) == "history":
40 --fasta '${reference_genome.fasta}' 40 --fasta '${reference_genome.reffa}'
41 #else: 41 #else:
42 --fasta '${reference_genome.fasta.fields.path}' 42 --fasta '${reference_genome.reffa.fields.path}'
43 #end if 43 #end if
44 --bed '$bed' 44 --bed '$bed'
45 #if $mode_cond.mode == "SPECIFIC": 45 #if $mode_cond.mode == "SPECIFIC":
46 --specific '$mode_cond.specific' 46 --specific '$mode_cond.specific'
47 #elif $mode_cond.mode == "SPECIFICBW": 47 #elif $mode_cond.mode == "SPECIFICBW":
70 <param name="genome_type_select" type="select" label="Select a source for fasta sequences to be searched for STRs" help="Options are to choose a built-in genome, or choose any history fasta file"> 70 <param name="genome_type_select" type="select" label="Select a source for fasta sequences to be searched for STRs" help="Options are to choose a built-in genome, or choose any history fasta file">
71 <option value="indexed">Use a Galaxy server built-in reference genome fasta</option> 71 <option value="indexed">Use a Galaxy server built-in reference genome fasta</option>
72 <option value="history" selected="True">Use any fasta file from the current history</option> 72 <option value="history" selected="True">Use any fasta file from the current history</option>
73 </param> 73 </param>
74 <when value="indexed"> 74 <when value="indexed">
75 <param name="fasta" type="select" label="Choose a built-in genome" help="If the genome you need is not on the list, upload it and select it as a current history fasta" > 75 <param name="reffa" type="select" label="Choose a built-in genome" help="If the genome you need is not on the list, upload it and select it as a current history fasta" >
76 <options from_data_table="all_fasta"/> 76 <options from_data_table="all_fasta"/>
77 </param> 77 </param>
78 </when> 78 </when>
79 <when value="history"> 79 <when value="history">
80 <param name="fasta" type="data" format="fasta,fasta.gz" label="Choose a fasta file from the current history" /> 80 <param name="reffa" type="data" format="fasta,fasta.gz" label="Choose a fasta file from the current history" />
81 </when> 81 </when>
82 </conditional> 82 </conditional>
83 <conditional name="mode_cond"> 83 <conditional name="mode_cond">
84 <param name="mode" type="select" label="Select patterns by motif length; or provide a specific motif pattern to report?" help="Choose *By length:* or *By pattern:* to configure STR selection mode"> 84 <param name="mode" type="select" label="Select patterns by motif length; or provide a specific motif pattern to report?" help="Choose *By length:* or *By pattern:* to configure STR selection mode">
85 <option selected="True" value="ALL">By length: Report all motifs of one or more specified lengths (1-6nt) as bed features</option> 85 <option selected="True" value="ALL">By length: Report all motifs of one or more specified lengths (1-6nt) as bed features</option>
116 <param name="tetramin" type="integer" min="2" value="2" label="Minimum repeats required for tetramers"/> 116 <param name="tetramin" type="integer" min="2" value="2" label="Minimum repeats required for tetramers"/>
117 <param name="pentamin" type="integer" min="2" value="2" label="Minimum repeats required for pentamers"/> 117 <param name="pentamin" type="integer" min="2" value="2" label="Minimum repeats required for pentamers"/>
118 <param name="hexamin" type="integer" min="2" value="2" label="Minimum repeats required for hexamers"/> 118 <param name="hexamin" type="integer" min="2" value="2" label="Minimum repeats required for hexamers"/>
119 </inputs> 119 </inputs>
120 <outputs> 120 <outputs>
121 <data name="bed" format="bed" label="STR from $fasta.element_identifier"> 121 <data name="bed" format="bed" label="STR">
122 <change_format> 122 <change_format>
123 <when input="mode_cond.outformat" value="gff" format="gff"/> 123 <when input="mode_cond.outformat" value="gff" format="gff"/>
124 <when input="mode_cond.outformat" value="csv" format="csv"/> 124 <when input="mode_cond.outformat" value="csv" format="csv"/>
125 <when input="mode_cond.outformat" value="tsv" format="tabular"/> 125 <when input="mode_cond.outformat" value="tsv" format="tabular"/>
126 <when input="mode_cond.mode" value="ALLBW" format="bigwig"/> 126 <when input="mode_cond.mode" value="ALLBW" format="bigwig"/>
130 </outputs> 130 </outputs>
131 <tests> 131 <tests>
132 <test expect_num_outputs="1"> 132 <test expect_num_outputs="1">
133 <conditional name="reference_genome"> 133 <conditional name="reference_genome">
134 <param name="genome_type_select" value="history"/> 134 <param name="genome_type_select" value="history"/>
135 <param name="fasta" value="humsamp.fa"/> 135 <param name="reffa" value="humsamp.fa"/>
136 </conditional> 136 </conditional>
137 <conditional name="mode_cond"> 137 <conditional name="mode_cond">
138 <param name="mode" value="ALL"/> 138 <param name="mode" value="ALL"/>
139 <param name="subset" value="--di,--tri,--tetra,--penta,--hexa"/> 139 <param name="subset" value="--di,--tri,--tetra,--penta,--hexa"/>
140 </conditional> 140 </conditional>
154 </output> 154 </output>
155 </test> 155 </test>
156 <test expect_num_outputs="1"> 156 <test expect_num_outputs="1">
157 <conditional name="reference_genome"> 157 <conditional name="reference_genome">
158 <param name="genome_type_select" value="history"/> 158 <param name="genome_type_select" value="history"/>
159 <param name="fasta" value="humsamp.fa"/> 159 <param name="reffa" value="humsamp.fa"/>
160 </conditional> 160 </conditional>
161 <conditional name="mode_cond"> 161 <conditional name="mode_cond">
162 <param name="mode" value="SPECIFIC"/> 162 <param name="mode" value="SPECIFIC"/>
163 <param name="specific" value="GC"/> 163 <param name="specific" value="GC"/>
164 </conditional> 164 </conditional>
179 </output> 179 </output>
180 </test> 180 </test>
181 <test expect_num_outputs="1"> 181 <test expect_num_outputs="1">
182 <conditional name="reference_genome"> 182 <conditional name="reference_genome">
183 <param name="genome_type_select" value="history"/> 183 <param name="genome_type_select" value="history"/>
184 <param name="fasta" value="mouse.fa"/> 184 <param name="reffa" value="mouse.fa"/>
185 </conditional> 185 </conditional>
186 <conditional name="mode_cond"> 186 <conditional name="mode_cond">
187 <param name="mode" value="NATIVE"/> 187 <param name="mode" value="NATIVE"/>
188 <param name="outformat" value="gff"/> 188 <param name="outformat" value="gff"/>
189 </conditional> 189 </conditional>
202 </assert_contents> 202 </assert_contents>
203 </output> 203 </output>
204 </test> 204 </test>
205 <test expect_num_outputs="1"> 205 <test expect_num_outputs="1">
206 <conditional name="reference_genome"> 206 <conditional name="reference_genome">
207 <param name="genome_type_select" value="history"/> 207 <param name="genome_type_select" value="indexed"/>
208 <param name="fasta" value="humsamp.fa"/> 208 <param name="reffa" value="hgtest"/>
209 </conditional> 209 </conditional>
210 <conditional name="mode_cond"> 210 <conditional name="mode_cond">
211 <param name="mode" value="SPECIFICBW"/> 211 <param name="mode" value="SPECIFICBW"/>
212 <param name="specific" value="GC"/> 212 <param name="specific" value="GC"/>
213 </conditional> 213 </conditional>