0
|
1 <?xml version="1.0"?>
|
|
2 <tool id="repmatch_gff3" name="RepMatch" version="@WRAPPER_VERSION@.0">
|
|
3 <description>Match paired peaks from two or more replicates</description>
|
|
4 <macros>
|
|
5 <import>repmatch_gff3_macros.xml</import>
|
|
6 </macros>
|
|
7 <expand macro="requirements" />
|
|
8 <command>
|
|
9 python $__tool_directory__/repmatch_gff3.py
|
|
10 #for $i in $input:
|
|
11 --input "${i}" "${i.hid}"
|
|
12 #end for
|
|
13 --method $method
|
|
14 --distance $distance
|
|
15 --step $step
|
|
16 --replicates $replicates
|
|
17 --low_limit $low_limit
|
|
18 --up_limit $up_limit
|
|
19 --output_files $output_files_cond.output_files
|
|
20 --output_summary "$output_summary"
|
|
21 #if str($output_files_cond.output_files) in ["all", "simple_orphan"]:
|
|
22 --output_orphan "$output_orphan"
|
|
23 #end if
|
|
24 #if str($output_files_cond.output_files) =="all":
|
|
25 --output_detail "$output_detail"
|
|
26 --output_key "$output_key"
|
|
27 --output_histogram "$output_histogram"
|
|
28 #end if
|
|
29 </command>
|
|
30 <inputs>
|
|
31 <param name="input" type="data" format="gff" multiple="True" min="2" label="Match paired peaks on" />
|
|
32 <param name="method" type="select" label="Method of finding match">
|
|
33 <option value="closest" selected="True">Closest</option>
|
|
34 <option value="largest">Largest</option>
|
|
35 <option value="all">All</option>
|
|
36 </param>
|
|
37 <param name="distance" type="integer" value="50" min="0" label="Maximum distance between peaks in different replicates to allow merging" />
|
|
38 <param name="step" type="integer" value="0" min="0" label="Step size" help="Distance for each iteration" />
|
|
39 <param name="replicates" type="integer" value="2" min="2" label="Minimum number of replicates that must be matched for merging to occur" />
|
|
40 <param name="low_limit" type="integer" value="-1000" label="Lower limit for Crick-Watson distance filter" />
|
|
41 <param name="up_limit" type="integer" value="1000" label="Upper limit for Crick-Watson distance filter" />
|
|
42 <conditional name="output_files_cond">
|
|
43 <param name="output_files" type="select" label="Restrict output to" help="Statistics will always be generated." >
|
|
44 <option value="all" selected="True">no restrictions (output everything)</option>
|
|
45 <option value="simple">matched pairs only</option>
|
|
46 <option value="simple_orphan">matched pairs and orphans only</option>
|
|
47 </param>
|
|
48 <when value="simple" />
|
|
49 <when value="simple_orphan" />
|
7
|
50 <when value="all" />
|
0
|
51 </conditional>
|
|
52 </inputs>
|
|
53 <outputs>
|
|
54 <data name="output_summary" format="gff" label="Matched pairs: ${tool.name} on ${on_string}" />
|
|
55 <data name="output_orphan" format="tabular" label="Orphans: ${tool.name} on ${on_string}">
|
|
56 <filter>output_files_cond["output_files"] in ["all", "simple_orphan"]</filter>
|
|
57 </data>
|
|
58 <data name="output_detail" format="tabular" label="Details: ${tool.name} on ${on_string}">
|
|
59 <filter>output_files_cond["output_files"] == "all"</filter>
|
|
60 </data>
|
|
61 <data name="output_key" format="tabular" label="Key: ${tool.name} on ${on_string}">
|
|
62 <filter>output_files_cond["output_files"] == "all"</filter>
|
|
63 </data>
|
|
64 <data name="output_histogram" format="pdf" label="Histogram: ${tool.name} on ${on_string}">
|
|
65 <filter>output_files_cond["output_files"] == "all"</filter>
|
|
66 </data>
|
|
67 </outputs>
|
|
68 <tests>
|
|
69 <param name="input" value="closest_s_input1.gff" ftype="gff" />
|
|
70 <param name="input" value="largest_s_input1.gff" ftype="gff" />
|
|
71 <param name="method" value="closest" />
|
|
72 <param name="distance" value="50" />
|
|
73 <param name="step" value="0" />
|
|
74 <param name="replicates" value="2" />
|
|
75 <param name="low_limit" value="-1000" />
|
|
76 <param name="up_limit" value="1000" />
|
|
77 <param name="output_files" value="all" />
|
|
78 <output name="output_summary" file="summary_out1.gff" ftype="gff" />
|
|
79 <output name="output_orphan" file="orphan_out1.tabular" ftype="tabular" />
|
|
80 <output name="output_detail" file="orphan_detail1.tabular" ftype="tabular" />
|
|
81 <output name="output_key" file="key_out1.tabular" ftype="tabular" />
|
|
82 <output name="output_histogram" file="histogram_out1.pdf" ftype="pdf" compare="sim_size" />
|
|
83 </tests>
|
|
84 <help>
|
|
85 **What it does**
|
|
86 <![CDATA[
|
|
87
|
4
|
88 Replicate matching - matches paired peaks from two or more replicates and produces a list of matched
|
0
|
89 groups and optionally a list of matched orphans. Additional optional outputs include the median read
|
|
90 count for each input, details and a histogram.
|
|
91
|
|
92 ]]>
|
|
93
|
|
94 **Options**
|
|
95
|
|
96 * **Method** - Method to use when calling replicates.
|
|
97 * **Distance** - Maximum distance between peaks in different replicates to allow merging.
|
|
98 * **Step Size** - Distance for each iteration.
|
|
99 * **Replicates** - Minimum number of replicates to call a peak. Number of replicates required must be at least 2.
|
|
100 * **Lower Limit** - Lower limit for the Crick-Watson distance filter.
|
|
101 * **Upper Limit** - Upper limit for the Crick-Watson distance filter.
|
|
102 * **Plot Format** - Output format for graph. The options are PNG or SVG.
|
|
103 </help>
|
|
104 <expand macro="citations" />
|
|
105 </tool>
|