annotate microsatbed.xml @ 14:9513e95d68f6 draft

planemo upload for repository https://github.com/fubar2/microsatbed commit bfb57ff3a931bc3f3d3549707f7bcf1f561c84c6-dirty
author fubar
date Tue, 13 Aug 2024 06:56:25 +0000
parents b9a4e628599e
children f9389aa84408
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
1
14
9513e95d68f6 planemo upload for repository https://github.com/fubar2/microsatbed commit bfb57ff3a931bc3f3d3549707f7bcf1f561c84c6-dirty
fubar
parents: 13
diff changeset
2 <tool id="microsatbed" name="STR to bed" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="22.05">
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
3 <description>Short Tandem Repeats to bed features from fasta</description>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
4 <macros>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
5 <token name="@TOOL_VERSION@">1.3.2</token>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
6 <token name="@VERSION_SUFFIX@">0</token>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
7 <token name="@PYTHON_VERSION@">3.12.3</token>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
8 <macro name="subsetmacro">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
9 <param name="subset" type="select" label="Select at least 1 specific motif length to report"
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
10 help="Bed features will be output for every motif of the selected length(s) with the minimum required repeats or more" multiple="true">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
11 <option value="--di" selected="true">All dimers (AC,AG,AT,...)</option>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
12 <option value="--tri">All trimers (ACG,..)</option>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
13 <option value="--tetra">All tetramers (ACGT,..)</option>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
14 <option value="--penta">All pentamers (ACGTC,..)</option>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
15 <option value="--hexa">All hexamers (ACGTCG,..)</option>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
16 <option value="--mono">All monomers (A,C...). Warning! Can produce overwhelming numbers of bed features</option>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
17 </param>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
18 </macro>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
19 </macros>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
20 <requirements>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
21 <requirement version="@PYTHON_VERSION@" type="package">python</requirement>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
22 <requirement version="2.1.0" type="package">pyfastx</requirement>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
23 <requirement version="@TOOL_VERSION@" type="package">pytrf</requirement>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
24 <requirement version="455" type="package">ucsc-bedgraphtobigwig</requirement>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
25 </requirements>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
26 <required_files>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
27 <include path="find_str.py"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
28 </required_files>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
29 <version_command><![CDATA[python -c "import pytrf; from importlib.metadata import version; print(version('pytrf'))"]]></version_command>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
30 <command><![CDATA[
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
31 #if $mode_cond.mode == "NATIVE":
9
57867d1931d6 planemo upload for repository https://github.com/fubar2/microsatbed commit 6e9d6a1dd5b8615dfa80b1b239e22b266c00a6dd
fubar
parents: 8
diff changeset
32 #if str($reference_genome.genome_type_select) == "history":
57867d1931d6 planemo upload for repository https://github.com/fubar2/microsatbed commit 6e9d6a1dd5b8615dfa80b1b239e22b266c00a6dd
fubar
parents: 8
diff changeset
33 pytrf findstr -f '$mode_cond.outformat' -o '$bed' -r '$monomin' '$dimin' '$trimin' '$tetramin' '$pentamin' '$hexamin' '${reference_genome.reffa}'
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
34 #else:
9
57867d1931d6 planemo upload for repository https://github.com/fubar2/microsatbed commit 6e9d6a1dd5b8615dfa80b1b239e22b266c00a6dd
fubar
parents: 8
diff changeset
35 pytrf findstr -f '$mode_cond.outformat' -o '$bed' -r '$monomin' '$dimin' '$trimin' '$tetramin' '$pentamin' '$hexamin' '${reference_genome.reffa.fields.path}'
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
36 #end if
f27be15cc58d Uploaded
fubar
parents:
diff changeset
37 #else:
f27be15cc58d Uploaded
fubar
parents:
diff changeset
38 python '${__tool_directory__}/find_str.py'
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
39 #if str($reference_genome.genome_type_select) == "history":
9
57867d1931d6 planemo upload for repository https://github.com/fubar2/microsatbed commit 6e9d6a1dd5b8615dfa80b1b239e22b266c00a6dd
fubar
parents: 8
diff changeset
40 --fasta '${reference_genome.reffa}'
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
41 #else:
9
57867d1931d6 planemo upload for repository https://github.com/fubar2/microsatbed commit 6e9d6a1dd5b8615dfa80b1b239e22b266c00a6dd
fubar
parents: 8
diff changeset
42 --fasta '${reference_genome.reffa.fields.path}'
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
43 #end if
f27be15cc58d Uploaded
fubar
parents:
diff changeset
44 --bed '$bed'
f27be15cc58d Uploaded
fubar
parents:
diff changeset
45 #if $mode_cond.mode == "SPECIFIC":
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
46 --specific '$mode_cond.specific'
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
47 #elif $mode_cond.mode == "SPECIFICBW":
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
48 --bigwig
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
49 --winwidth '$mode_cond.winwidth'
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
50 --specific '$mode_cond.specific'
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
51 #else:
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
52 #for $flag in $mode_cond.subset:
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
53 $flag
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
54 #end for
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
55 #end if
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
56 --monomin '$monomin'
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
57 --dimin '$dimin'
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
58 --trimin '$trimin'
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
59 --tetramin '$tetramin'
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
60 --pentamin '$pentamin'
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
61 --hexamin '$hexamin'
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
62 #if $mode_cond.mode == "SPECIFICBW":
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
63 --bigwig
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
64 --winwidth '$mode_cond.winwidth'
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
65 #end if
f27be15cc58d Uploaded
fubar
parents:
diff changeset
66 #end if
f27be15cc58d Uploaded
fubar
parents:
diff changeset
67 ]]></command>
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
68 <inputs>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
69 <conditional name="reference_genome">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
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">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
71 <option value="indexed">Use a Galaxy server built-in reference genome fasta</option>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
72 <option value="history" selected="True">Use any fasta file from the current history</option>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
73 </param>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
74 <when value="indexed">
9
57867d1931d6 planemo upload for repository https://github.com/fubar2/microsatbed commit 6e9d6a1dd5b8615dfa80b1b239e22b266c00a6dd
fubar
parents: 8
diff changeset
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" >
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
76 <options from_data_table="all_fasta"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
77 </param>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
78 </when>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
79 <when value="history">
9
57867d1931d6 planemo upload for repository https://github.com/fubar2/microsatbed commit 6e9d6a1dd5b8615dfa80b1b239e22b266c00a6dd
fubar
parents: 8
diff changeset
80 <param name="reffa" type="data" format="fasta,fasta.gz" label="Choose a fasta file from the current history" />
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
81 </when>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
82 </conditional>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
83 <conditional name="mode_cond">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
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">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
85 <option selected="True" value="ALL">By length: Report all motifs of one or more specified lengths (1-6nt) as bed features</option>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
86 <option value="ALLBW">By length as windowed bigwig: Report all motifs of one or more specified lengths (1-6nt) as windowed density</option>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
87 <option value="SPECIFIC">By motif: Report one or more specific motifs (such as TCA,GC) as bed features</option>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
88 <option value="SPECIFICBW">By motif as windowed bigwig: Report one or more specific motifs (such as TCA,GC) as windowed density</option>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
89 <option value="NATIVE">All exact STR: use the pytrf findstr native command to a create csv, tsv or gtf output</option>
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
90 </param>
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
91 <when value="ALL">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
92 <expand macro="subsetmacro"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
93 </when>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
94 <when value="ALLBW">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
95 <expand macro="subsetmacro"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
96 <param name="winwidth" type="integer" min="5" value="128" label="Window with for estimating STR bigwig density"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
97 </when>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
98 <when value="SPECIFIC">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
99 <param name="specific" type="text" label="Supply a specific motif pattern. Separate multiple patterns with commas such as GA,GC" help="Make bed features only for the nominated specific motifs."/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
100 </when>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
101 <when value="SPECIFICBW">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
102 <param name="specific" type="text" label="Supply a specific motif pattern. Separate multiple patterns with commas such as GA,GC" help="Make bed features only for the nominated specific motifs."/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
103 <param name="winwidth" type="integer" min="5" value="128" label="Window with for estimating STR bigwig density"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
104 </when>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
105 <when value="NATIVE">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
106 <param name="outformat" type="select" label="Select the required output format" help="Pytrf can create GFF, CSV or TSV output files. Documentation is linked in the help section below">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
107 <option value="gff">GFF</option>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
108 <option value="csv">Comma separated values</option>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
109 <option value="tsv" selected="true">Tab separated values</option>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
110 </param>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
111 </when>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
112 </conditional>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
113 <param name="monomin" type="integer" min="2" value="10" label="Minimum repeats required for monomers"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
114 <param name="dimin" type="integer" min="1" value="3" label="Minimum repeats required for dimers"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
115 <param name="trimin" type="integer" min="2" value="2" label="Minimum repeats required for trimers"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
116 <param name="tetramin" type="integer" min="2" value="2" label="Minimum repeats required for tetramers"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
117 <param name="pentamin" type="integer" min="2" value="2" label="Minimum repeats required for pentamers"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
118 <param name="hexamin" type="integer" min="2" value="2" label="Minimum repeats required for hexamers"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
119 </inputs>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
120 <outputs>
14
9513e95d68f6 planemo upload for repository https://github.com/fubar2/microsatbed commit bfb57ff3a931bc3f3d3549707f7bcf1f561c84c6-dirty
fubar
parents: 13
diff changeset
121 <data name="bed" format="bed" label="STR output from $on_string">
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
122 <change_format>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
123 <when input="mode_cond.outformat" value="gff" format="gff"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
124 <when input="mode_cond.outformat" value="csv" format="csv"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
125 <when input="mode_cond.outformat" value="tsv" format="tabular"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
126 <when input="mode_cond.mode" value="ALLBW" format="bigwig"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
127 <when input="mode_cond.mode" value="SPECIFICBW" format="bigwig"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
128 </change_format>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
129 </data>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
130 </outputs>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
131 <tests>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
132 <test expect_num_outputs="1">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
133 <conditional name="reference_genome">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
134 <param name="genome_type_select" value="history"/>
9
57867d1931d6 planemo upload for repository https://github.com/fubar2/microsatbed commit 6e9d6a1dd5b8615dfa80b1b239e22b266c00a6dd
fubar
parents: 8
diff changeset
135 <param name="reffa" value="humsamp.fa"/>
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
136 </conditional>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
137 <conditional name="mode_cond">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
138 <param name="mode" value="ALL"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
139 <param name="subset" value="--di,--tri,--tetra,--penta,--hexa"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
140 </conditional>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
141 <param name="monomin" value="20"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
142 <param name="dimin" value="20"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
143 <param name="trimin" value="5"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
144 <param name="tetramin" value="5"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
145 <param name="pentamin" value="3"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
146 <param name="hexamin" value="2"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
147 <output name="bed" value="bed_sample" compare="diff" lines_diff="0">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
148 <assert_contents>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
149 <has_n_columns n="5"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
150 <has_text text="hpat1"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
151 <has_text text="CCCCAC_2"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
152 <has_text text="TTTTTT_2"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
153 </assert_contents>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
154 </output>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
155 </test>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
156 <test expect_num_outputs="1">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
157 <conditional name="reference_genome">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
158 <param name="genome_type_select" value="history"/>
9
57867d1931d6 planemo upload for repository https://github.com/fubar2/microsatbed commit 6e9d6a1dd5b8615dfa80b1b239e22b266c00a6dd
fubar
parents: 8
diff changeset
159 <param name="reffa" value="humsamp.fa"/>
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
160 </conditional>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
161 <conditional name="mode_cond">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
162 <param name="mode" value="SPECIFIC"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
163 <param name="specific" value="GC"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
164 </conditional>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
165 <param name="monomin" value="20"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
166 <param name="dimin" value="1"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
167 <param name="trimin" value="20"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
168 <param name="tetramin" value="20"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
169 <param name="pentamin" value="20"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
170 <param name="hexamin" value="20"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
171 <output name="bed" value="dibed_sample" compare="diff" lines_diff="0">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
172 <assert_contents>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
173 <has_n_columns n="5"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
174 <has_text text="hpat1"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
175 <has_text text="GC_1"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
176 <not_has_text text="TC_1"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
177 <has_text text="209316"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
178 </assert_contents>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
179 </output>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
180 </test>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
181 <test expect_num_outputs="1">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
182 <conditional name="reference_genome">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
183 <param name="genome_type_select" value="history"/>
9
57867d1931d6 planemo upload for repository https://github.com/fubar2/microsatbed commit 6e9d6a1dd5b8615dfa80b1b239e22b266c00a6dd
fubar
parents: 8
diff changeset
184 <param name="reffa" value="mouse.fa"/>
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
185 </conditional>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
186 <conditional name="mode_cond">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
187 <param name="mode" value="NATIVE"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
188 <param name="outformat" value="gff"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
189 </conditional>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
190 <param name="monomin" value="20"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
191 <param name="dimin" value="10"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
192 <param name="trimin" value="5"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
193 <param name="tetramin" value="4"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
194 <param name="pentamin" value="4"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
195 <param name="hexamin" value="2"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
196 <output name="bed" value="nativegff_sample" compare="diff" lines_diff="0">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
197 <assert_contents>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
198 <has_n_columns n="9"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
199 <has_text text="Motif=CCGCCG;Type=6;Repeat=2;Length=12"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
200 <has_text text="mm10_knownGene_uc008xda.1"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
201 <has_text text="Motif=AGAGAG;Type=6;Repeat=2;Length=12"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
202 </assert_contents>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
203 </output>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
204 </test>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
205 <test expect_num_outputs="1">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
206 <conditional name="reference_genome">
13
b9a4e628599e planemo upload for repository https://github.com/fubar2/microsatbed commit bfb57ff3a931bc3f3d3549707f7bcf1f561c84c6-dirty
fubar
parents: 12
diff changeset
207 <param name="genome_type_select" value="indexed"/>
b9a4e628599e planemo upload for repository https://github.com/fubar2/microsatbed commit bfb57ff3a931bc3f3d3549707f7bcf1f561c84c6-dirty
fubar
parents: 12
diff changeset
208 <param name="reffa" value="hgtest"/>
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
209 </conditional>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
210 <conditional name="mode_cond">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
211 <param name="mode" value="SPECIFICBW"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
212 <param name="specific" value="GC"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
213 </conditional>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
214 <param name="monomin" value="20"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
215 <param name="dimin" value="1"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
216 <param name="trimin" value="20"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
217 <param name="tetramin" value="20"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
218 <param name="pentamin" value="20"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
219 <param name="hexamin" value="20"/>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
220 <output name="bed" value="dibed_wig_sample" compare="sim_size" delta="10">
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
221 <assert_contents>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
222 <has_size value="73544" delta="10" />
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
223 </assert_contents>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
224 </output>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
225 </test>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
226 </tests>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
227 <help><![CDATA[
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
228
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
229 **Convert short repetitive sequences to bed features or windowed density bigwigs**
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
230
f27be15cc58d Uploaded
fubar
parents:
diff changeset
231 Microsatellites are usually defined as repeated short DNA patterns in an unbroken sequence.
f27be15cc58d Uploaded
fubar
parents:
diff changeset
232 A microsatellite pattern or *motif* can be any combination nucleotides, typically from 1 to 6nt in length.
f27be15cc58d Uploaded
fubar
parents:
diff changeset
233
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
234 This tool allows microsatellite and related features to be selected from a fasta sequence input file, and output into a track, suitable for viewing in a genome browser such as JBrowse2.
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
235
f27be15cc58d Uploaded
fubar
parents:
diff changeset
236 All motifs of selected lengths can be reported as individual features in the output bed file, or specific motifs can be provided and all
f27be15cc58d Uploaded
fubar
parents:
diff changeset
237 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
f27be15cc58d Uploaded
fubar
parents:
diff changeset
238 every sequence of *ACGACG* or *ACGACGACG* or *ACGACGACGACG* and so on, as individual bed features. Similarly, requiring 3 repeats of any trimer will
f27be15cc58d Uploaded
fubar
parents:
diff changeset
239 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*.
f27be15cc58d Uploaded
fubar
parents:
diff changeset
240
f27be15cc58d Uploaded
fubar
parents:
diff changeset
241 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
f27be15cc58d Uploaded
fubar
parents:
diff changeset
242 described at the end of https://pytrf.readthedocs.io/en/latest
f27be15cc58d Uploaded
fubar
parents:
diff changeset
243
f27be15cc58d Uploaded
fubar
parents:
diff changeset
244 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
f27be15cc58d Uploaded
fubar
parents:
diff changeset
245 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
f27be15cc58d Uploaded
fubar
parents:
diff changeset
246 to uppercase, to prevent them being reported as distinct motifs.
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
247
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
248 Output can be bed format, or for two kinds of operation, a bigwig track showing bases covered by selected features over a configurable window size with a default of 128nt.
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
249
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
250 **Select motifs by length - for bed or windowed density bigwig**
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
251
f27be15cc58d Uploaded
fubar
parents:
diff changeset
252 The default tool form setting is to select all dimer motif patterns.
f27be15cc58d Uploaded
fubar
parents:
diff changeset
253
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
254 Any combination of 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,
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
255 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 dimer motifs to be reported,
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
256 so is not restricted to short tandem repeats (STR)
f27be15cc58d Uploaded
fubar
parents:
diff changeset
257
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
258 This mode of operation can produce a bed file with every STR as a separate feature.
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
259 These can be very large and a bigwig containing the sum of STR bases over a selectable window size (default 128) may be more
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
260 useful and much faster to load.
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
261
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
262 **Select motifs by pattern - for bed or windowed density bigwig**
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
263
f27be15cc58d Uploaded
fubar
parents:
diff changeset
264 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*.
f27be15cc58d Uploaded
fubar
parents:
diff changeset
265 All features will be returned as a single bed file.
f27be15cc58d Uploaded
fubar
parents:
diff changeset
266
f27be15cc58d Uploaded
fubar
parents:
diff changeset
267 The minimum number of repeats for all motifs can be set to match specific requirements.
f27be15cc58d Uploaded
fubar
parents:
diff changeset
268
f27be15cc58d Uploaded
fubar
parents:
diff changeset
269 For example, technical sequencing read bias may be influenced by the density of specific dimers, whether they are repeated or not
f27be15cc58d Uploaded
fubar
parents:
diff changeset
270 such as in https://github.com/arangrhie/T2T-Polish/tree/master/pattern
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
271
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
272 This mode of operation can produce a bed file with every STR as a separate feature.
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
273 These can be very large and a bigwig containing the sum of STR bases over a selectable window size (default 128) may be more
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
274 useful and much faster to load.
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
275
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
276 **Select all perfect STR using pytrf findstr in csv, tsv or gff output format**
f27be15cc58d Uploaded
fubar
parents:
diff changeset
277
f27be15cc58d Uploaded
fubar
parents:
diff changeset
278 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/.
f27be15cc58d Uploaded
fubar
parents:
diff changeset
279
f27be15cc58d Uploaded
fubar
parents:
diff changeset
280 Quoted here:
f27be15cc58d Uploaded
fubar
parents:
diff changeset
281
f27be15cc58d Uploaded
fubar
parents:
diff changeset
282 *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.
f27be15cc58d Uploaded
fubar
parents:
diff changeset
283 According to the motif length, tandem repeats can be classified as microsatellites and minisatellites. Microsatellites are also known as simple sequence repeats (SSRs)
f27be15cc58d Uploaded
fubar
parents:
diff changeset
284 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.
f27be15cc58d Uploaded
fubar
parents:
diff changeset
285 Pytrf is a lightweight Python C extension for identification of tandem repeats. The pytrf enables to fastly identify both exact or perfect SSRs.
f27be15cc58d Uploaded
fubar
parents:
diff changeset
286 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*
f27be15cc58d Uploaded
fubar
parents:
diff changeset
287
f27be15cc58d Uploaded
fubar
parents:
diff changeset
288 ]]></help>
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
289 <citations>
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
290 <citation type="bibtex">@misc{pytrf,
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
291 title = {{pytrf} Short tandem repeat finder, Accessed on July 10 2024},
f27be15cc58d Uploaded
fubar
parents:
diff changeset
292 howpublished = {\url{https://github.com/lmdu/pytrf}},
f27be15cc58d Uploaded
fubar
parents:
diff changeset
293 note = {Accessed on July 10 2024}
f27be15cc58d Uploaded
fubar
parents:
diff changeset
294 }</citation>
8
01c16e8fbc91 planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c-dirty
fubar
parents: 7
diff changeset
295 </citations>
7
f27be15cc58d Uploaded
fubar
parents:
diff changeset
296 </tool>