comparison microsatbed.xml @ 20:410144c7b2d6 draft

planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
author fubar
date Wed, 17 Jul 2024 12:08:15 +0000
parents db5523378e5c
children 8406413cb4aa
comparison
equal deleted inserted replaced
19:db5523378e5c 20:410144c7b2d6
2 <description>Short Tandem Repeats to bed features from fasta</description> 2 <description>Short Tandem Repeats to bed features from fasta</description>
3 <requirements> 3 <requirements>
4 <requirement version="3.12.3" type="package">python</requirement> 4 <requirement version="3.12.3" type="package">python</requirement>
5 <requirement version="2.1.0" type="package">pyfastx</requirement> 5 <requirement version="2.1.0" type="package">pyfastx</requirement>
6 <requirement version="1.3.0" type="package">pytrf</requirement> 6 <requirement version="1.3.0" type="package">pytrf</requirement>
7 <requirement type="package" version="0.1.4">pybigtools</requirement>
7 </requirements> 8 </requirements>
8 <required_files> 9 <required_files>
9 <include path="find_str.py"/> 10 <include path="find_str.py"/>
10 </required_files> 11 </required_files>
11 <version_command><![CDATA[python -c "import pytrf; from importlib.metadata import version; print(version('pytrf'))"]]></version_command> 12 <version_command><![CDATA[python -c "import pytrf; from importlib.metadata import version; print(version('pytrf'))"]]></version_command>
24 --fasta '${reference_genome.fasta.fields.path}' 25 --fasta '${reference_genome.fasta.fields.path}'
25 #end if 26 #end if
26 --bed '$bed' 27 --bed '$bed'
27 #if $mode_cond.mode == "SPECIFIC": 28 #if $mode_cond.mode == "SPECIFIC":
28 --specific '$mode_cond.specific' 29 --specific '$mode_cond.specific'
30 #elif $mode_cond.mode == "SPECIFICBW":
31 --bigwig
32 --winwidth '$mode_cond.winwidth'
33 --specific '$mode_cond.specific'
29 #else: 34 #else:
30 #if "MONO" in $mode_cond.subset: 35 #if "MONO" in $mode_cond.subset:
31 --mono 36 --mono
32 #end if 37 #end if
33 #if "DI" in $mode_cond.subset: 38 #if "DI" in $mode_cond.subset:
50 --dimin '$dimin' 55 --dimin '$dimin'
51 --trimin '$trimin' 56 --trimin '$trimin'
52 --tetramin '$tetramin' 57 --tetramin '$tetramin'
53 --pentamin '$pentamin' 58 --pentamin '$pentamin'
54 --hexamin '$hexamin' 59 --hexamin '$hexamin'
60 #if $mode_cond.mode == "SPECIFICBW":
61 --bigwig
62 --winwidth '$mode_cond.winwidth'
63 #end if
55 #end if 64 #end if
56 ]]></command> 65 ]]></command>
57 <inputs> 66 <inputs>
58 <conditional name="reference_genome"> 67 <conditional name="reference_genome">
59 <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"> 68 <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 </when> 80 </when>
72 </conditional> 81 </conditional>
73 <conditional name="mode_cond"> 82 <conditional name="mode_cond">
74 <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"> 83 <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">
75 <option selected="True" value="ALL">By length: Report all motifs of one or more specified lengths (1-6nt) as bed features</option> 84 <option selected="True" value="ALL">By length: Report all motifs of one or more specified lengths (1-6nt) as bed features</option>
85 <option value="ALLBW">By length as windowed bigwig: Report all motifs of one or more specified lengths (1-6nt) as windowed density</option>
76 <option value="SPECIFIC">By motif: Report one or more specific motifs (such as TCA,GC) as bed features</option> 86 <option value="SPECIFIC">By motif: Report one or more specific motifs (such as TCA,GC) as bed features</option>
87 <option value="SPECIFICBW">By motif as windowed bigwig: Report one or more specific motifs (such as TCA,GC) as windowed density</option>
77 <option value="NATIVE">All exact STR: use the pytrf findstr native command to a create csv, tsv or gtf output</option> 88 <option value="NATIVE">All exact STR: use the pytrf findstr native command to a create csv, tsv or gtf output</option>
78 </param> 89 </param>
79 <when value="ALL"> 90 <when value="ALL">
80 <param name="subset" type="select" multiple="true" optional="false" label="Select at least 1 specific motif length to report" 91 <param name="subset" type="select" multiple="true" optional="false" label="Select at least 1 specific motif length to report"
81 help="Bed features will be output for every motif of the selected length(s) with the minimum required repeats or more"> 92 help="Bed features will be output for every motif of the selected length(s) with the minimum required repeats or more">
82 <option value="DI" selected="true">All dimers (AC,AG,AT,...)</option> 93 <option value="DI" selected="true">All dimers (AC,AG,AT,...)</option>
83 <option value="TRI">All trimers (ACG,..)</option> 94 <option value="TRI">All trimers (ACG,..)</option>
84 <option value="TETRA">All tetramers (ACGT,..)</option>
85 <option value="PENTA">All pentamers (ACGTC,..)</option> 95 <option value="PENTA">All pentamers (ACGTC,..)</option>
86 <option value="HEXA">All hexamers (ACGTCG,..)</option> 96 <option value="HEXA">All hexamers (ACGTCG,..)</option>
87 <option value="MONO">All monomers (A,C...). Warning! Can produce overwhelming numbers of bed features</option> 97 <option value="MONO">All monomers (A,C...). Warning! Can produce overwhelming numbers of bed features</option>
88 </param> 98 </param>
89 </when> 99 </when>
100 <when value="ALLBW">
101 <param name="subset" type="select" multiple="true" optional="false" label="Select at least 1 specific motif length to report"
102 help="Bed features will be output for every motif of the selected length(s) with the minimum required repeats or more">
103 <option value="DI" selected="true">All dimers (AC,AG,AT,...)</option>
104 <option value="TRI">All trimers (ACG,..)</option>
105 <option value="PENTA">All pentamers (ACGTC,..)</option>
106 <option value="HEXA">All hexamers (ACGTCG,..)</option>
107 <option value="MONO">All monomers (A,C...). Warning! Can produce overwhelming numbers of bed features</option>
108 </param>
109 <param type="integer" min="5" name="winwidth" label="Window with for estimating STR bigwig density" value="128"/>
110 </when>
90 <when value="SPECIFIC"> 111 <when value="SPECIFIC">
91 <param name="specific" type="text" label="Supply a specific motif pattern. Separate multiple patterns with commas such as GA,GC" 112 <param name="specific" type="text" label="Supply a specific motif pattern. Separate multiple patterns with commas such as GA,GC"
92 help="Make bed features only for the nominated specific motifs." optional="false"/> 113 help="Make bed features only for the nominated specific motifs." optional="false"/>
114 </when>
115 <when value="SPECIFICBW">
116 <param name="specific" type="text" label="Supply a specific motif pattern. Separate multiple patterns with commas such as GA,GC"
117 help="Make bed features only for the nominated specific motifs." optional="false"/>
118 <param type="integer" min="5" name="winwidth" label="Window with for estimating STR bigwig density" value="128"/>
93 </when> 119 </when>
94 <when value="NATIVE"> 120 <when value="NATIVE">
95 <param name="outformat" type="select" optional="false" label="Select the required output format" 121 <param name="outformat" type="select" optional="false" label="Select the required output format"
96 help="Pytrf can create GFF, CSV or TSV output files. Documentation is linked in the help section below"> 122 help="Pytrf can create GFF, CSV or TSV output files. Documentation is linked in the help section below">
97 <option value="gff" >GFF</option> 123 <option value="gff" >GFF</option>
111 <data name="bed" format="bed" label="STR from $fasta.element_identifier" hidden="false"> 137 <data name="bed" format="bed" label="STR from $fasta.element_identifier" hidden="false">
112 <change_format> 138 <change_format>
113 <when input="mode_cond.outformat" value="gff" format="gff" /> 139 <when input="mode_cond.outformat" value="gff" format="gff" />
114 <when input="mode_cond.outformat" value="csv" format="csv" /> 140 <when input="mode_cond.outformat" value="csv" format="csv" />
115 <when input="mode_cond.outformat" value="tsv" format="tabular" /> 141 <when input="mode_cond.outformat" value="tsv" format="tabular" />
142 <when input="mode_cond.mode" value="ALLBW" format="bigwig" />
143 <when input="mode_cond.mode" value="SPECIFICBW" format="bigwig" />
116 </change_format> 144 </change_format>
117 </data> 145 </data>
118 </outputs> 146 </outputs>
119 <tests> 147 <tests>
120 <test expect_num_outputs="1"> 148 <test expect_num_outputs="1">
165 <param name="trimin" value="5"/> 193 <param name="trimin" value="5"/>
166 <param name="tetramin" value="4"/> 194 <param name="tetramin" value="4"/>
167 <param name="pentamin" value="4"/> 195 <param name="pentamin" value="4"/>
168 <param name="hexamin" value="2"/> 196 <param name="hexamin" value="2"/>
169 <output name="bed" value="nativegff_sample" compare="diff" lines_diff="0"/> 197 <output name="bed" value="nativegff_sample" compare="diff" lines_diff="0"/>
198 </test>
199 <test expect_num_outputs="1">
200 <conditional name="reference_genome">
201 <param name="genome_type_select" value="history"/>
202 <param name="fasta" value="humsamp.fa"/>
203 </conditional>
204 <conditional name="mode_cond">
205 <param name="mode" value="SPECIFICBW"/>
206 <param name="specific" value="GC"/>
207 </conditional>
208 <param name="monomin" value="20"/>
209 <param name="dimin" value="1"/>
210 <param name="trimin" value="20"/>
211 <param name="tetramin" value="20"/>
212 <param name="pentamin" value="20"/>
213 <param name="hexamin" value="20"/>
214 <output name="bed" value="dibed_wig_sample" compare="sim_size" delta="10"/>
170 </test> 215 </test>
171 </tests> 216 </tests>
172 <help><![CDATA[ 217 <help><![CDATA[
173 218
174 **Convert short repetitive sequences to bed features** 219 **Convert short repetitive sequences to bed features**