comparison idr.xml @ 0:d3ebbf39b1c5 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/idr/ commit 65024f2c106a2a7af0e2b656123058393941c41b
author iuc
date Tue, 22 Aug 2017 05:20:25 -0400
parents
children de7795890bc5
comparison
equal deleted inserted replaced
-1:000000000000 0:d3ebbf39b1c5
1 <?xml version="1.0"?>
2 <tool id="idr" name="IDR" version="@VERSION@">
3 <description>compare ranked list of identifications</description>
4 <macros>
5 <token name="@VERSION@">2.0.3</token>
6 </macros>
7 <requirements>
8 <requirement type="package" version="@VERSION@">idr</requirement>
9 </requirements>
10 <command detect_errors="aggressive">
11 <![CDATA[
12 idr --samples '$primus' '$secundus'
13 #if $peak_list:
14 --peak-list '$peak_list'
15 #end if
16 #if $input_file_type:
17 #if $primus.dataset.ext == 'gff':
18 --input-file-type gff
19 #else:
20 --input-file-type $input_file_type
21 #end if
22 #end if
23 #if $idr_threshold:
24 --idr-threshold $idr_threshold
25 #end if
26 #if $rank != 'default':
27 --rank $rank
28 #end if
29 --output-file idrValues.bed
30 --soft-idr-threshold $soft_idr_threshold
31 $plot $use_nonoverlapping_peaks --peak-merge-method $peak_merge_method
32 --initial-mu $initial_mu --initial-sigma $initial_sigma --initial-rho $initial_rho
33 --initial-mix-param $initial_mix_param $fix_mu $fix_sigma
34 $dont_filter_peaks_below_noise_mean $use_best_multisummit_idr
35 $allow_negative_scores --random-seed $random_seed --max-iter $max_iter
36 --convergence-eps $convergence_eps $only_merge_peaks
37 ]]>
38 </command>
39 <inputs>
40 <param name="primus" argument="--samples" type="data" format="bed,gff" label="First set of peaks in GFF or BED format" />
41 <param name="secundus" argument="--samples" type="data" format="bed,gff" label="Second set of peaks in GFF or BED format" />
42 <param name="peak_list" argument="--peak-list" type="data" format="bed,gff" optional="True" label="List of peaks to filter by" />
43 <param name="input_file_type" argument="--input-file-type" type="select" label="Input BED format" help="This option is ignored if the input file is GFF">
44 <option value="" selected="true">Vanilla BED</option>
45 <option value="gff">GFF</option>
46 <option value="broadPeak">ENCODE broadPeak</option>
47 <option value="narrowPeak">ENCODE narrowPeak</option>
48 </param>
49 <param argument="--rank" type="select" label="Column to use for ranking peaks">
50 <option value="default">Use default</option>
51 <option value="signal.value">signal</option>
52 <option value="p.value">p value</option>
53 <option value="q.value">q value</option>
54 </param>
55 <param name="idr_threshold" argument="--idr-threshold" type="float" optional="true" value="" />
56 <param name="soft_idr_threshold" argument="--soft-idr-threshold" type="float" value="0.05" />
57 <param argument="--plot" type="boolean" truevalue="--plot" falsevalue="" label="Output PNG plot of peaks" />
58 <param name="use_nonoverlapping_peaks" argument="--use-nonoverlapping-peaks" type="boolean" truevalue="--use-nonoverlapping-peaks" falsevalue="" label="Use peaks without an overlapping match and set the value to 0" />
59 <param name="peak_merge_method" argument="--peak-merge-method" type="select" label="Method to use for merging peaks">
60 <option value="sum">Sum</option>
61 <option value="avg">Average</option>
62 <option value="min">Min</option>
63 <option value="max">Max</option>
64 </param>
65 <param name="initial_mu" argument="--initial-mu" type="float" value="0.1" label="Initial value of mu" />
66 <param name="initial_sigma" argument="--initial-sigma" type="float" value="1.0" label="Initial value of sigma" />
67 <param name="initial_rho" argument="--initial-rho" type="float" value="0.2" label="Initial value of rho" />
68 <param name="initial_mix_param" argument="--initial-mix-param" type="float" value="0.5" label="Initial value of the mixture parameters" />
69 <param name="fix_mu" argument="--fix-mu" type="boolean" truevalue="--fix-mu" falsevalue="" label="Fix mu to the starting point and do not let it vary" />
70 <param name="fix_sigma" argument="--fix-sigma" type="boolean" truevalue="--fix-sigma" falsevalue="" label="Fix sigma to the starting point and do not let it vary" />
71 <param name="dont_filter_peaks_below_noise_mean" argument="--dont-filter-peaks-below-noise-mean" type="boolean" truevalue="--dont-filter-peaks-below-noise-mean" falsevalue="" label="Allow signal points that are below the noise mean" />
72 <param name="use_best_multisummit_idr" argument="--use-best-multisummit-IDR" type="boolean" truevalue="--use-best-multisummit-IDR" falsevalue="" label="Set the IDR value for a group of multi summit peaks" help="A group of peaks with the same chr/start/stop but different summits" />
73 <param name="allow_negative_scores" argument="--allow-negative-scores" type="boolean" truevalue="--allow-negative-scores" falsevalue="" label="Allow negative values for scores" />
74 <param name="random_seed" argument="--random-seed" type="integer" value="0" label="The random seed value" />
75 <param name="max_iter" argument="--max-iter" type="integer" value="3000" label="The maximum number of optimization iterations" />
76 <param name="convergence_eps" argument="--convergence-eps" type="float" value="0.000001" label="The maximum change in parameter value changes for convergence" />
77 <param name="only_merge_peaks" argument="--only-merge-peaks" type="boolean" truevalue="--only-merge-peaks" falsevalue="" label="Only return the merged peak list" />
78 </inputs>
79 <outputs>
80 <data format="bed" name="idr_values" from_work_dir="idrValues.bed" label="${tool.name} on ${on_string}: IDR Values">
81 <actions>
82 <action type="format">
83 <option type="from_param" name="primus" param_attribute="ext" />
84 </action>
85 </actions>
86 </data>
87 <data format="png" name="idr_plot" from_work_dir="idrValues.bed.png" label="${tool.name} on ${on_string}: PNG Plot">
88 <filter>plot</filter>
89 </data>
90 </outputs>
91 <tests>
92 <test>
93 <param name="primus" value="idr_input1.1.bed" ftype="bed" />
94 <param name="secundus" value="idr_input1.2.bed" ftype="bed" />
95 <param name="rank" value="default" />
96 <param name="plot" value="True" />
97 <output name="idr_values" file="idr_out1.bed" ftype="bed" />
98 <output name="idr_plot" file="idr_out1.png" ftype="png" />
99 </test>
100 <test>
101 <param name="primus" value="idr_input2.1.bed" ftype="bed" />
102 <param name="secundus" value="idr_input2.2.bed" ftype="bed" />
103 <param name="rank" value="default" />
104 <param name="plot" value="True" />
105 <output name="idr_values" file="idr_out2.bed" ftype="bed" />
106 <output name="idr_plot" file="idr_out2.png" ftype="png" />
107 </test>
108 <test>
109 <param name="primus" value="idr_input3.1.bed" ftype="bed" />
110 <param name="secundus" value="idr_input3.2.bed" ftype="bed" />
111 <param name="peak_list" value="idr_input3.3.bed" ftype="bed" />
112 <param name="rank" value="default" />
113 <param name="plot" value="True" />
114 <output name="idr_values" file="idr_out3.bed" ftype="bed" />
115 <output name="idr_plot" file="idr_out3.png" ftype="png" />
116 </test>
117 <test>
118 <param name="primus" value="idr_input4.1.gff" ftype="gff" />
119 <param name="secundus" value="idr_input4.2.gff" ftype="gff" />
120 <param name="input_file_type" value="gff" />
121 <param name="rank" value="default" />
122 <param name="plot" value="True" />
123 <output name="idr_values" file="idr_out4.gff" ftype="gff" />
124 <output name="idr_plot" file="idr_out4.png" ftype="png" />
125 </test>
126 </tests>
127 <help>
128 <![CDATA[
129 The `IDR <https://github.com/nboley/idr/blob/master/README.md>`__ (Irreproducible Discovery Rate) framework is a unified approach to measure the reproducibility of findings identified from replicate experiments and provide highly stable thresholds based on reproducibility. Unlike the usual scalar measures of reproducibility, the IDR approach creates a curve, which quantitatively assesses when the findings are no longer consistent across replicates.
130 ]]>
131 </help>
132 <citations>
133 <citation type="doi">10.1214/11-AOAS466</citation>
134 </citations>
135 </tool>