36
|
1 <tool id="clusterizeBySlidingWindows" name="clusterize By SlidingWindows">
|
|
2 <description>Produces a GFF3 file that clusters a list of transcripts using a sliding window. Cluster the data into regions (defined by size and overlap with next region).</description>
|
|
3 <command interpreter="python">
|
|
4 ../Java/Python/clusterizeBySlidingWindows.py -i $formatType.inputFileName
|
|
5 #if $formatType.FormatInputFileName == 'bed':
|
|
6 -f bed
|
|
7 #elif $formatType.FormatInputFileName == 'gff':
|
|
8 -f gff
|
|
9 #elif $formatType.FormatInputFileName == 'gff2':
|
|
10 -f gff2
|
|
11 #elif $formatType.FormatInputFileName == 'gff3':
|
|
12 -f gff3
|
|
13 #elif $formatType.FormatInputFileName == 'sam':
|
|
14 -f sam
|
|
15 #elif $formatType.FormatInputFileName == 'gtf':
|
|
16 -f gtf
|
|
17 #end if
|
|
18 -s $size
|
|
19 -e $overlap
|
|
20 -o $outputFileGff
|
|
21 $normalize
|
|
22 $strands
|
|
23
|
|
24 #if $OptionTag.tag == "Yes":
|
|
25 -g $OptionTag.value
|
|
26 #end if
|
|
27
|
|
28 #if $OptionsOperation.operation == "Yes":
|
|
29 -r $OptionsOperation.value
|
|
30 #end if
|
|
31
|
|
32 #if $OptionWriteTag.writeTag == "Yes":
|
|
33 -w $OptionWriteTag.value
|
|
34 #end if
|
|
35
|
|
36 $strand
|
|
37 $plot $plotPng
|
|
38 $excel $excelOutput
|
|
39
|
|
40
|
|
41 </command>
|
|
42
|
|
43 <inputs>
|
|
44 <conditional name="formatType">
|
|
45 <param name="FormatInputFileName" type="select" label="Input File Format">
|
|
46 <option value="bed">bed</option>
|
|
47 <option value="gff">gff</option>
|
|
48 <option value="gff2">gff2</option>
|
|
49 <option value="gff3">gff3</option>
|
|
50 <option value="sam">sam</option>
|
|
51 <option value="gtf">gtf</option>
|
|
52 </param>
|
|
53 <when value="bed">
|
|
54 <param name="inputFileName" format="bed" type="data" label="Input File"/>
|
|
55 </when>
|
|
56 <when value="gff">
|
|
57 <param name="inputFileName" format="gff" type="data" label="Input File"/>
|
|
58 </when>
|
|
59 <when value="gff2">
|
|
60 <param name="inputFileName" format="gff2" type="data" label="Input File"/>
|
|
61 </when>
|
|
62 <when value="gff3">
|
|
63 <param name="inputFileName" format="gff3" type="data" label="Input File"/>
|
|
64 </when>
|
|
65 <when value="sam">
|
|
66 <param name="inputFileName" format="sam" type="data" label="Input File"/>
|
|
67 </when>
|
|
68 <when value="gtf">
|
|
69 <param name="inputFileName" format="gtf" type="data" label="Input File"/>
|
|
70 </when>
|
|
71 </conditional>
|
|
72
|
|
73
|
|
74 <param name="size" type="text" value="50000" label="Size option" help="Size of the regions."/>
|
|
75 <param name="overlap" type="text" value="50" label="Overlap option" help="Overlap between two consecutive regions."/>
|
|
76 <param name="normalize" type="boolean" truevalue="-m" falsevalue="" checked="false" label="Normalize option for only GFF3 file format" help="(only work if the tag nbOccurrences is set)"/>
|
|
77 <param name="strands" type="boolean" truevalue="-2" falsevalue="" checked="false" label="Consider the two strands separately"/>
|
|
78
|
|
79 <conditional name="OptionTag">
|
|
80 <param name="tag" type="select" label="Use a given tag as input (instead of summing number of features)">
|
|
81 <option value="Yes">Yes</option>
|
|
82 <option value="No" selected="true">No</option>
|
|
83 </param>
|
|
84 <when value="Yes">
|
|
85 <param name="value" type="select" label="tag name"/>
|
|
86 </when>
|
|
87 <when value="No">
|
|
88 </when>
|
|
89 </conditional>
|
|
90
|
|
91
|
|
92 <conditional name="OptionsOperation">
|
|
93 <param name="operation" type="select" label="combine tag value with given operation">
|
|
94 <option value="Yes">Yes</option>
|
|
95 <option value="No" selected="true">No</option>
|
|
96 </param>
|
|
97 <when value="Yes">
|
|
98 <param name="value" type="select" label="operation" help="You can ONLY choose one of following operation : sum, avg, med, min, max.">
|
|
99 <option value="sum">sum</option>
|
|
100 <option value="avg">average</option>
|
|
101 <option value="med">median</option>
|
|
102 <option value="min">minimum</option>
|
|
103 <option value="max">maximum</option>
|
|
104 </param>
|
|
105 </when>
|
|
106 <when value="No">
|
|
107 </when>
|
|
108 </conditional>
|
|
109
|
|
110
|
|
111 <conditional name="OptionWriteTag">
|
|
112 <param name="writeTag" type="select" label="write a new tag in output file">
|
|
113 <option value="Yes">Yes</option>
|
|
114 <option value="No" selected="true">No</option>
|
|
115 </param>
|
|
116 <when value="Yes">
|
|
117 <param name="value" type="text" value="nbElements" label="write tag option" help="print the result in the given tag (default usually is 'nbElements')"/>
|
|
118 </when>
|
|
119 <when value="No">
|
|
120 </when>
|
|
121 </conditional>
|
|
122
|
|
123 </inputs>
|
|
124
|
|
125 <outputs>
|
|
126 <data name="outputFileGff" format="gff3"/>
|
|
127 </outputs>
|
|
128
|
|
129 <help>
|
|
130 Sliding windows are a convenient ways to clusterize data mapped on the genome. There are two important parameters of a sliding window: the size of the window and the size of the overlap.
|
|
131
|
|
132 By default, sliding windows count the number of reads in each window. However, you can basically merge any information which is contained in the tags. You can compute the average, sum, median, max or min of the tags for each window. For instance, every window can contain the average cluster size, if you merge clusters instead of reads.
|
|
133
|
|
134 The output file is a GFF3 file, where each element is a window. There is a special tag for each window, whose name is **nbElements** if you counted the number of transcripts per sliding window. However, if you performed a **min** (resp. **max**, **sum**, **median**, **average**) operation on the tags **value** of the transcripts, then the tag of the window will be **minValue** (resp. **maxValue**, **sumValue**, **medValue**, **avgValue**). You can also specify the name of your tag (which is actually advised: **nbReadsInSample1** will always be more informative than **nbElements**).
|
|
135
|
|
136 You also have different option, which can select the *n* % highest regions, or the regions with at least *n* features in it, or even the regions with at least *n* unique features. This last option is useful when you want to cluster the reads which have mapped only once, for instance.
|
|
137 </help>
|
|
138 </tool>
|