1 | <tool id="microsats_mutability1" name="Estimate microsatellite mutability" version="1.1.0">
|
---|
2 | <description>by specified attributes</description>
|
---|
3 | <command interpreter="python">
|
---|
4 | microsats_mutability.py
|
---|
5 | $input1
|
---|
6 | $out_file1
|
---|
7 | ${pri_condition.primary_group}
|
---|
8 | #if $pri_condition.primary_group == "6":
|
---|
9 | ${pri_condition.binsize} ${pri_condition.subgroup} -1
|
---|
10 | #else:
|
---|
11 | 0 ${pri_condition.sub_condition.subgroup}
|
---|
12 | #if $pri_condition.sub_condition.subgroup == "6":
|
---|
13 | ${pri_condition.sub_condition.s_binsize}
|
---|
14 | #else:
|
---|
15 | -1
|
---|
16 | #end if
|
---|
17 | #end if
|
---|
18 | $gens
|
---|
19 | ${region.type}
|
---|
20 | #if $region.type == "win":
|
---|
21 | ${region.input2} $input2.dbkey $input2.metadata.chromCol,$input2.metadata.startCol,$input2.metadata.endCol,$input2.metadata.strandCol
|
---|
22 | #else:
|
---|
23 | "None"
|
---|
24 | #end if
|
---|
25 | </command>
|
---|
26 | <inputs>
|
---|
27 | <page>
|
---|
28 | <param name="input1" type="data" format="tabular" label="Select dataset containing Orthologous microsatellites"/>
|
---|
29 | <conditional name="region">
|
---|
30 | <param name="type" type="select" label="Estimate rates corresponding to" multiple="false">
|
---|
31 | <option value="align">Alignment block</option>
|
---|
32 | <option value="win">Intervals in your history</option>
|
---|
33 | </param>
|
---|
34 | <when value="win">
|
---|
35 | <param format="interval" name="input2" type="data" label="Choose intervals">
|
---|
36 | <validator type="unspecified_build" />
|
---|
37 | </param>
|
---|
38 | </when>
|
---|
39 | <when value="align" />
|
---|
40 | </conditional>
|
---|
41 | <param name="gens" size="10" type="integer" value="1" label="Number of generations between the two species in input file"/>
|
---|
42 | <conditional name="pri_condition">
|
---|
43 | <param name="primary_group" type="select" label="Group by" multiple="false">
|
---|
44 | <option value="4">Motif type (mono/di/tri etc.)</option>
|
---|
45 | <option value="7">Repeat Unit (AG, GCT etc.)</option>
|
---|
46 | <option value="6">Repeat Number </option>
|
---|
47 | </param>
|
---|
48 | <when value="6">
|
---|
49 | <param name="binsize" size="10" type="integer" value="1" label="Bin-size" help="Bin-size denotes the number of repeat numbers to be considered as a group. Bin-size of 5 will group every 5 consecutive repeat numbers into a group."/>
|
---|
50 | <param name="subgroup" type="select" label="Sub-group by" multiple="false">
|
---|
51 | <option value="-1">None</option>
|
---|
52 | <option value="4">Motif type (mono/di/tri etc.)</option>
|
---|
53 | <option value="7">Repeat Unit (AG, GCT etc.)</option>
|
---|
54 | </param>
|
---|
55 | </when>
|
---|
56 | <when value="7">
|
---|
57 | <conditional name="sub_condition">
|
---|
58 | <param name="subgroup" type="select" label="Sub-group by" multiple="false">
|
---|
59 | <option value="-1">None</option>
|
---|
60 | <option value="4">Motif type (mono/di/tri etc.)</option>
|
---|
61 | <option value="6">Repeat Number </option>
|
---|
62 | </param>
|
---|
63 | <when value="-1"></when>
|
---|
64 | <when value="4"></when>
|
---|
65 | <when value="6">
|
---|
66 | <param name="s_binsize" size="10" type="integer" value="1" label="Bin size" help="Bin-size denotes the number of repeat numbers to be considered as a group. Bin-size of 5 will group every 5 consecutive repeat numbers into a group."/>
|
---|
67 | </when>
|
---|
68 | </conditional>
|
---|
69 | </when>
|
---|
70 | <when value="4">
|
---|
71 | <conditional name="sub_condition">
|
---|
72 | <param name="subgroup" type="select" label="Sub-group by" multiple="false">
|
---|
73 | <option value="-1">None</option>
|
---|
74 | <option value="7">Repeat Unit (AG, GCT etc.)</option>
|
---|
75 | <option value="6">Repeat Number </option>
|
---|
76 | </param>
|
---|
77 | <when value="-1"></when>
|
---|
78 | <when value="7"></when>
|
---|
79 | <when value="6">
|
---|
80 | <param name="s_binsize" size="10" type="integer" value="1" label="Bin size" help="Bin-size denotes the number of repeat numbers to be considered as a group. Bin-size of 5 will group every 5 consecutive repeat numbers into a group."/>
|
---|
81 | </when>
|
---|
82 | </conditional>
|
---|
83 | </when>
|
---|
84 | </conditional>
|
---|
85 | </page>
|
---|
86 | </inputs>
|
---|
87 | <outputs>
|
---|
88 | <data format="tabular" name="out_file1" />
|
---|
89 | </outputs> |
---|
90 | <!-- |
---|
91 | <tests> |
---|
92 | <test> |
---|
93 | <param name="input1" value="ortho_ms.tab"/> |
---|
94 | <param name="type" value="align"/> |
---|
95 | <param name="gens" value="1"/> |
---|
96 | <param name="primary_group" value="4"/> |
---|
97 | <param name="sub_condition|subgroup" value="7"/> |
---|
98 | <output name="out_file1" file="ortho_ms_mut.tab"/> |
---|
99 | </test> |
---|
100 | </tests> |
---|
101 | -->
|
---|
102 | <help>
|
---|
103 | .. class:: infomark |
---|
104 | |
---|
105 | **What it does** |
---|
106 | |
---|
107 | This tool computes microsatellite mutability for the orthologous microsatellites fetched from 'Extract Orthologous Microsatellites from pair-wise alignments' tool. |
---|
108 | |
---|
109 | Mutability is computed according to the method described in the following paper: |
---|
110 | |
---|
111 | *Webster et al., Microsatellite evolution inferred from human-chimpanzee genomic sequence alignments, Proc Natl Acad Sci 2002 June 25; 99(13): 8748-8753* |
---|
112 | |
---|
113 | ----- |
---|
114 | |
---|
115 | .. class:: warningmark |
---|
116 | |
---|
117 | **Note** |
---|
118 | |
---|
119 | The user selected group and subgroup by features, the computed mutability and the count of the number of repeats used to compute that mutability are added as columns to the output.
|
---|
120 | </help>
|
---|
121 | </tool>
|
---|