annotate microsatbed.xml @ 28:4cb6cc083620 draft

planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
author fubar
date Fri, 19 Jul 2024 22:32:44 +0000
parents 26e9575c2c83
children efc775ab30fe
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28
4cb6cc083620 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 26
diff changeset
1 <tool name="STR to bed" id="microsatbed" version="1.3.2.0" profile="22.05">
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
2 <description>Short Tandem Repeats to bed features from fasta</description>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
3 <requirements>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
4 <requirement version="3.12.3" type="package">python</requirement>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
5 <requirement version="2.1.0" type="package">pyfastx</requirement>
21
8406413cb4aa planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 20
diff changeset
6 <requirement version="1.3.2" type="package">pytrf</requirement>
8406413cb4aa planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 20
diff changeset
7 <requirement version="0.2.0" type="package">pybigtools</requirement>
26
26e9575c2c83 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 23
diff changeset
8 <requirement version="455" type="package">ucsc-bedgraphtobigwig</requirement>
26e9575c2c83 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 23
diff changeset
9
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
10 </requirements>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
11 <required_files>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
12 <include path="find_str.py"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
13 </required_files>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
14 <version_command><![CDATA[python -c "import pytrf; from importlib.metadata import version; print(version('pytrf'))"]]></version_command>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
15 <command><![CDATA[
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
16 #if $mode_cond.mode == "NATIVE":
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
17 #if $reference_genome.genome_type_select == "history":
17
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
18 pytrf findstr -f '$mode_cond.outformat' -o $bed -r $monomin $dimin $trimin $tetramin $pentamin $hexamin '${reference_genome.fasta}'
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
19 #else:
17
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
20 pytrf findstr -f '$mode_cond.outformat' -o $bed -r $monomin $dimin $trimin $tetramin $pentamin $hexamin '${reference_genome.fasta.fields.path}'
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
21 #end if
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
22 #else:
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
23 python '${__tool_directory__}/find_str.py'
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
24 #if $reference_genome.genome_type_select == "history":
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
25 --fasta '${reference_genome.fasta}'
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
26 #else:
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
27 --fasta '${reference_genome.fasta.fields.path}'
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
28 #end if
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
29 --bed '$bed'
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
30 #if $mode_cond.mode == "SPECIFIC":
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
31 --specific '$mode_cond.specific'
20
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
32 #elif $mode_cond.mode == "SPECIFICBW":
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
33 --bigwig
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
34 --winwidth '$mode_cond.winwidth'
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
35 --specific '$mode_cond.specific'
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
36 #else:
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
37 #if "MONO" in $mode_cond.subset:
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
38 --mono
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
39 #end if
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
40 #if "DI" in $mode_cond.subset:
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
41 --di
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
42 #end if
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
43 #if "TRI" in $mode_cond.subset:
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
44 --tri
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
45 #end if
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
46 #if "TETRA" in $mode_cond.subset:
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
47 --tetra
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
48 #end if
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
49 #if "PENTA" in $mode_cond.subset:
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
50 --penta
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
51 #end if
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
52 #if "HEXA" in $mode_cond.subset:
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
53 --hexa
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
54 #end if
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
55 #end if
18
607620f93b4c planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 17
diff changeset
56 --monomin '$monomin'
607620f93b4c planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 17
diff changeset
57 --dimin '$dimin'
607620f93b4c planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 17
diff changeset
58 --trimin '$trimin'
607620f93b4c planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 17
diff changeset
59 --tetramin '$tetramin'
607620f93b4c planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 17
diff changeset
60 --pentamin '$pentamin'
607620f93b4c planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 17
diff changeset
61 --hexamin '$hexamin'
20
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
62 #if $mode_cond.mode == "SPECIFICBW":
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
63 --bigwig
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
64 --winwidth '$mode_cond.winwidth'
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
65 #end if
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
66 #end if
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
67 ]]></command>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
68 <inputs>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
69 <conditional name="reference_genome">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
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">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
71 <option value="indexed">Use a Galaxy server built-in reference genome fasta</option>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
72 <option value="history" selected="True">Use any fasta file from the current history</option>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
73 </param>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
74 <when value="indexed">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
75 <param name="fasta" type="select" multiple="false" label="Choose a built-in genome"
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
76 help="If the genome you need is not on the list, upload it and select it as a current history fasta">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
77 <options from_data_table="all_fasta"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
78 </param>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
79 </when>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
80 <when value="history">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
81 <param name="fasta" type="data" format="fasta,fasta.gz" optional="false" multiple="false" label="Choose a fasta file from the current history"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
82 </when>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
83 </conditional>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
84 <conditional name="mode_cond">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
85 <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">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
86 <option selected="True" value="ALL">By length: Report all motifs of one or more specified lengths (1-6nt) as bed features</option>
20
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
87 <option value="ALLBW">By length as windowed bigwig: Report all motifs of one or more specified lengths (1-6nt) as windowed density</option>
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
88 <option value="SPECIFIC">By motif: Report one or more specific motifs (such as TCA,GC) as bed features</option>
20
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
89 <option value="SPECIFICBW">By motif as windowed bigwig: Report one or more specific motifs (such as TCA,GC) as windowed density</option>
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
90 <option value="NATIVE">All exact STR: use the pytrf findstr native command to a create csv, tsv or gtf output</option>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
91 </param>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
92 <when value="ALL">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
93 <param name="subset" type="select" multiple="true" optional="false" label="Select at least 1 specific motif length to report"
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
94 help="Bed features will be output for every motif of the selected length(s) with the minimum required repeats or more">
17
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
95 <option value="DI" selected="true">All dimers (AC,AG,AT,...)</option>
20
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
96 <option value="TRI">All trimers (ACG,..)</option>
23
45f690db0eaf planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 22
diff changeset
97 <option value="TETRA">All tetramers (ACGT,..)</option>
17
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
98 <option value="PENTA">All pentamers (ACGTC,..)</option>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
99 <option value="HEXA">All hexamers (ACGTCG,..)</option>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
100 <option value="MONO">All monomers (A,C...). Warning! Can produce overwhelming numbers of bed features</option>
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
101 </param>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
102 </when>
20
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
103 <when value="ALLBW">
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
104 <param name="subset" type="select" multiple="true" optional="false" label="Select at least 1 specific motif length to report"
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
105 help="Bed features will be output for every motif of the selected length(s) with the minimum required repeats or more">
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
106 <option value="DI" selected="true">All dimers (AC,AG,AT,...)</option>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
107 <option value="TRI">All trimers (ACG,..)</option>
23
45f690db0eaf planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 22
diff changeset
108 <option value="TETRA">All tetramers (ACGT,..)</option>
20
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
109 <option value="PENTA">All pentamers (ACGTC,..)</option>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
110 <option value="HEXA">All hexamers (ACGTCG,..)</option>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
111 <option value="MONO">All monomers (A,C...). Warning! Can produce overwhelming numbers of bed features</option>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
112 </param>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
113 <param type="integer" min="5" name="winwidth" label="Window with for estimating STR bigwig density" value="128"/>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
114 </when>
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
115 <when value="SPECIFIC">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
116 <param name="specific" type="text" label="Supply a specific motif pattern. Separate multiple patterns with commas such as GA,GC"
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
117 help="Make bed features only for the nominated specific motifs." optional="false"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
118 </when>
20
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
119 <when value="SPECIFICBW">
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
120 <param name="specific" type="text" label="Supply a specific motif pattern. Separate multiple patterns with commas such as GA,GC"
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
121 help="Make bed features only for the nominated specific motifs." optional="false"/>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
122 <param type="integer" min="5" name="winwidth" label="Window with for estimating STR bigwig density" value="128"/>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
123 </when>
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
124 <when value="NATIVE">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
125 <param name="outformat" type="select" optional="false" label="Select the required output format"
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
126 help="Pytrf can create GFF, CSV or TSV output files. Documentation is linked in the help section below">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
127 <option value="gff" >GFF</option>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
128 <option value="csv">Comma separated values</option>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
129 <option value="tsv" selected="true">Tab separated values</option>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
130 </param>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
131 </when>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
132 </conditional>
17
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
133 <param type="integer" min="2" name="monomin" value="10"/>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
134 <param type="integer" min="1" name="dimin" value="3"/>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
135 <param type="integer" min="2" name="trimin" value="2"/>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
136 <param type="integer" min="2" name="tetramin" value="2"/>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
137 <param type="integer" min="2" name="pentamin" value="2"/>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
138 <param type="integer" min="2" name="hexamin" value="2"/>
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
139 </inputs>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
140 <outputs>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
141 <data name="bed" format="bed" label="STR from $fasta.element_identifier" hidden="false">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
142 <change_format>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
143 <when input="mode_cond.outformat" value="gff" format="gff" />
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
144 <when input="mode_cond.outformat" value="csv" format="csv" />
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
145 <when input="mode_cond.outformat" value="tsv" format="tabular" />
20
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
146 <when input="mode_cond.mode" value="ALLBW" format="bigwig" />
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
147 <when input="mode_cond.mode" value="SPECIFICBW" format="bigwig" />
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
148 </change_format>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
149 </data>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
150 </outputs>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
151 <tests>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
152 <test expect_num_outputs="1">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
153 <conditional name="reference_genome">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
154 <param name="genome_type_select" value="history"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
155 <param name="fasta" value="humsamp.fa"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
156 </conditional>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
157 <conditional name="mode_cond">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
158 <param name="mode" value="ALL"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
159 <param name="subset" value="DI,TRI,TETRA,PENTA,HEXA"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
160 </conditional>
17
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
161 <param name="monomin" value="20"/>
19
db5523378e5c planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 18
diff changeset
162 <param name="dimin" value="20"/>
db5523378e5c planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 18
diff changeset
163 <param name="trimin" value="5"/>
db5523378e5c planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 18
diff changeset
164 <param name="tetramin" value="5"/>
db5523378e5c planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 18
diff changeset
165 <param name="pentamin" value="3"/>
17
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
166 <param name="hexamin" value="2"/>
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
167 <output name="bed" value="bed_sample" compare="diff" lines_diff="0"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
168 </test>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
169 <test expect_num_outputs="1">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
170 <conditional name="reference_genome">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
171 <param name="genome_type_select" value="history"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
172 <param name="fasta" value="humsamp.fa"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
173 </conditional>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
174 <conditional name="mode_cond">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
175 <param name="mode" value="SPECIFIC"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
176 <param name="specific" value="GC"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
177 </conditional>
17
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
178 <param name="monomin" value="20"/>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
179 <param name="dimin" value="1"/>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
180 <param name="trimin" value="20"/>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
181 <param name="tetramin" value="20"/>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
182 <param name="pentamin" value="20"/>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
183 <param name="hexamin" value="20"/>
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
184 <output name="bed" value="dibed_sample" compare="diff" lines_diff="0"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
185 </test>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
186 <test expect_num_outputs="1">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
187 <conditional name="reference_genome">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
188 <param name="genome_type_select" value="history"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
189 <param name="fasta" value="mouse.fa"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
190 </conditional>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
191 <conditional name="mode_cond">
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
192 <param name="mode" value="NATIVE"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
193 <param name="outformat" value="gff"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
194 </conditional>
17
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
195 <param name="monomin" value="20"/>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
196 <param name="dimin" value="10"/>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
197 <param name="trimin" value="5"/>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
198 <param name="tetramin" value="4"/>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
199 <param name="pentamin" value="4"/>
264d79548d19 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 16
diff changeset
200 <param name="hexamin" value="2"/>
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
201 <output name="bed" value="nativegff_sample" compare="diff" lines_diff="0"/>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
202 </test>
20
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
203 <test expect_num_outputs="1">
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
204 <conditional name="reference_genome">
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
205 <param name="genome_type_select" value="history"/>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
206 <param name="fasta" value="humsamp.fa"/>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
207 </conditional>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
208 <conditional name="mode_cond">
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
209 <param name="mode" value="SPECIFICBW"/>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
210 <param name="specific" value="GC"/>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
211 </conditional>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
212 <param name="monomin" value="20"/>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
213 <param name="dimin" value="1"/>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
214 <param name="trimin" value="20"/>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
215 <param name="tetramin" value="20"/>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
216 <param name="pentamin" value="20"/>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
217 <param name="hexamin" value="20"/>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
218 <output name="bed" value="dibed_wig_sample" compare="sim_size" delta="10"/>
410144c7b2d6 planemo upload for repository https://github.com/fubar2/microsatbed commit d952bc313f408735456747c3d33e09a3170c8f59-dirty
fubar
parents: 19
diff changeset
219 </test>
11
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
220 </tests>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
221 <help><![CDATA[
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
222
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
223 **Convert short repetitive sequences to bed features**
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
224
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
225 Microsatellites are usually defined as repeated short DNA patterns in an unbroken sequence.
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
226 A microsatellite pattern or *motif* can be any combination nucleotides, typically from 1 to 6nt in length.
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
227
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
228 This tool allows microsatellite and related features to be selected from a fasta sequence input file, and output into a single bed track, suitable for viewing in a genome browser such as JBrowse2.
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
229
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
230 All motifs of selected lengths can be reported as individual features in the output bed file, or specific motifs can be provided and all
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
231 others will be ignored. In all cases, a minimum required number of repeats can be specified. For example, requiring 2 or more repeats of the trimer *ACG* will report
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
232 every sequence of *ACGACG* or *ACGACGACG* or *ACGACGACGACG* and so on, as individual bed features. Similarly, requiring 3 repeats of any trimer will
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
233 report every distinct 3 nucleotide pattern, including *ACGACGACG* as well as every other unique 3 nucleotide pattern with 3 sequential repeats or more such, as "CTCCTCCTC*.
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
234
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
235 For other output formats, the pytrf native command line *findstr* can be used to produce a gff, csv or tsv output containing all exact short tandem repeats, as
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
236 described at the end of https://pytrf.readthedocs.io/en/latest
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
237
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
238 A fasta file must be supplied for processing. A built in genome can be selected, or a fasta file of any kind can be selected from the current history. Note that all
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
239 symbols are treated as valid nucleotides by pytrf, so extraneous characters such as *-* or *N* in the input fasta may appear as unexpected bed features. Lower case fasta symbols will be converted
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
240 to uppercase, to prevent them being reported as distinct motifs.
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
241
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
242
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
243 **Select motifs by length**
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
244
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
245 The default tool form setting is to select all dimer motif patterns.
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
246
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
247 Additional motif lengths from 1 to 6nt can be selected in the multiple-select drop-down list. All features will be returned in a single bed file. For each selected motif length,
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
248 the minimum number of repeats required for reporting can be adjusted. **Tandem repeats** are defined as at least 2 of any pattern. This tool allows singleton motifs to be reported,
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
249 so is not restricted to short tandem repeats (STR)
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
250
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
251 **Select motifs by pattern**
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
252
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
253 This option allows a motif pattern to be specified as a text string such as *CG* or *ATC*. Multiple motifs can be specified as a comma separated string such as *CG,ATC*.
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
254 All features will be returned as a single bed file.
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
255
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
256 The minimum number of repeats for all motifs can be set to match specific requirements.
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
257
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
258 For example, technical sequencing read bias may be influenced by the density of specific dimers, whether they are repeated or not
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
259 such as in https://github.com/arangrhie/T2T-Polish/tree/master/pattern
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
260
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
261 **Select all perfect STR using pytrf findstr in csv, tsv or gff output format**
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
262
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
263 This selection runs the pytrf *findstr* option to create gff/csv/tsv outputs as described at the end of https://pytrf.readthedocs.io/en/latest/.
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
264
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
265 Quoted here:
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
266
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
267 *A Tandem repeat (TR) in genomic sequence is a set of adjacent short DNA sequence repeated consecutively. The core sequence or repeat unit is generally called motif.
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
268 According to the motif length, tandem repeats can be classified as microsatellites and minisatellites. Microsatellites are also known as simple sequence repeats (SSRs)
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
269 or short tandem repeats (STRs) with motif length of 1-6 bp. Minisatellites are also sometimes referred to as variable number of tandem repeats (VNTRs) has longer motif length than microsatellites.
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
270 Pytrf is a lightweight Python C extension for identification of tandem repeats. The pytrf enables to fastly identify both exact or perfect SSRs.
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
271 It also can find generic tandem repeats with any size of motif, such as with maximum motif length of 100 bp. Additionally, it has capability of finding approximate or imperfect tandem repeats*
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
272
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
273 ]]></help>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
274 <citations>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
275 <citation type="bibtex">@misc{pytrf,
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
276 title = {{pytrf} Short tandem repeat finder, Accessed on July 10 2024},
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
277 howpublished = {\url{https://github.com/lmdu/pytrf}},
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
278 note = {Accessed on July 10 2024}
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
279 }</citation>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
280 </citations>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
281 </tool>
a633c1c45da3 Uploaded
fubar
parents:
diff changeset
282