|
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
|
|
10
|
20 --output_matched_peaks "$output_matched_peaks"
|
|
|
21 #if str($output_files_cond.output_files) in ["all", "matched_peaks_unmatched_peaks"]:
|
|
|
22 --output_unmatched_peaks "$output_unmatched_peaks"
|
|
0
|
23 #end if
|
|
|
24 #if str($output_files_cond.output_files) =="all":
|
|
|
25 --output_detail "$output_detail"
|
|
10
|
26 --output_statistics_table "$output_statistics_table"
|
|
|
27 --output_statistics_histogram "$output_statistics_histogram"
|
|
0
|
28 #end if
|
|
|
29 </command>
|
|
|
30 <inputs>
|
|
|
31 <param name="input" type="data" format="gff" multiple="True" min="2" label="Match paired peaks on" />
|
|
10
|
32 <param name="distance" type="integer" value="50" min="0" label="Maximum distance between peaks in different replicates to allow merging" />
|
|
0
|
33 <param name="method" type="select" label="Method of finding match">
|
|
|
34 <option value="closest" selected="True">Closest</option>
|
|
|
35 <option value="largest">Largest</option>
|
|
|
36 <option value="all">All</option>
|
|
|
37 </param>
|
|
|
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>
|
|
10
|
45 <option value="matched_peaks">matched paired peaks only</option>
|
|
|
46 <option value="matched_peaks_unmatched_peaks">matched paired peaks and unmatched paired peaks only</option>
|
|
0
|
47 </param>
|
|
10
|
48 <when value="matched_peaks" />
|
|
|
49 <when value="matched_peaks_unmatched_peaks" />
|
|
7
|
50 <when value="all" />
|
|
0
|
51 </conditional>
|
|
|
52 </inputs>
|
|
|
53 <outputs>
|
|
10
|
54 <data name="output_statistics_table" format="tabular" label="Statistics Table: ${tool.name} on ${on_string}">
|
|
0
|
55 <filter>output_files_cond["output_files"] == "all"</filter>
|
|
|
56 </data>
|
|
10
|
57 <data name="output_statistics_histogram" format="pdf" label="Statistics Histogram: ${tool.name} on ${on_string}">
|
|
|
58 <filter>output_files_cond["output_files"] == "all"</filter>
|
|
|
59 </data>
|
|
|
60 <data name="output_detail" format="tabular" label="Data D: ${tool.name} on ${on_string}">
|
|
0
|
61 <filter>output_files_cond["output_files"] == "all"</filter>
|
|
|
62 </data>
|
|
10
|
63 <data name="output_unmatched_peaks" format="tabular" label="Data UP: ${tool.name} on ${on_string}">
|
|
|
64 <filter>output_files_cond["output_files"] in ["all", "matched_peaks_unmatched_peaks"]</filter>
|
|
|
65 </data>
|
|
|
66 <data name="output_matched_peaks" format="gff" label="Data MP: ${tool.name} on ${on_string}" />
|
|
0
|
67 </outputs>
|
|
|
68 <tests>
|
|
10
|
69 <param name="input" value="closest_matched_pairs_input1.gff" ftype="gff" />
|
|
|
70 <param name="input" value="largest_matched_pairs_input1.gff" ftype="gff" />
|
|
|
71 <param name="distance" value="50" />
|
|
0
|
72 <param name="method" value="closest" />
|
|
|
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" />
|
|
10
|
78 <output name="output_statistics_table" file="statistics_table_out1.tabular" ftype="tabular" />
|
|
|
79 <output name="output_statistics_histogram" file="statistics_histogram_out1.pdf" ftype="pdf" compare="sim_size" />
|
|
|
80 <output name="output_detail" file="detail_out1.tabular" ftype="tabular" />
|
|
|
81 <output name="output_unmatched_peaks" file="unmatched_peaks_out1.tabular" ftype="tabular" />
|
|
|
82 <output name="output_matched_peaks" file="matched_peaks_out1.gff" ftype="gff" />
|
|
0
|
83 </tests>
|
|
|
84 <help>
|
|
|
85 **What it does**
|
|
|
86
|
|
10
|
87 Replicate matching - inspects paired peaks from two or more replicates and produces a list of matched
|
|
|
88 paired peaks and optionally a list of unmatched paired peaks. Additional optional outputs include the
|
|
|
89 median read count for each input, details and a histogram.
|
|
0
|
90
|
|
10
|
91 -----
|
|
0
|
92
|
|
|
93 **Options**
|
|
|
94
|
|
10
|
95 * **Distance** - Maximum distance between peaks in different replicates to allow merging.
|
|
0
|
96 * **Method** - Method to use when calling replicates.
|
|
|
97 * **Step Size** - Distance for each iteration.
|
|
|
98 * **Replicates** - Minimum number of replicates to call a peak. Number of replicates required must be at least 2.
|
|
|
99 * **Lower Limit** - Lower limit for the Crick-Watson distance filter.
|
|
|
100 * **Upper Limit** - Upper limit for the Crick-Watson distance filter.
|
|
10
|
101
|
|
0
|
102 </help>
|
|
|
103 <expand macro="citations" />
|
|
|
104 </tool>
|