|
8
|
1 <tool id="macs2_randsamoke" name="MACS2" version="2.0.10.0">
|
|
|
2 <description>Randomly sample number or percentage of total reads</description>
|
|
1
|
3 <expand macro="requirements" />
|
|
|
4 <expand macro="version_command" />
|
|
|
5 <macros>
|
|
|
6 <import>macs2_macros.xml</import>
|
|
|
7 </macros>
|
|
0
|
8 <command>
|
|
|
9 macs2 randsample
|
|
|
10 -t $infile
|
|
|
11 -o $outfile
|
|
|
12
|
|
|
13 --format '$ifile.extension.upper()'
|
|
|
14
|
|
|
15 --tsize $tsize
|
|
|
16 #if str($method_options.method_options_selector ) == 'percentage':
|
|
|
17 $method_options.percentage
|
|
|
18 #else:
|
|
|
19 $method_options.number
|
|
|
20 #end if
|
|
|
21 </command>
|
|
7
|
22 <expand macro="stdio" />
|
|
0
|
23 <inputs>
|
|
|
24
|
|
|
25 <!--may need to add a few more formats at later time-->
|
|
|
26 <param name="infile" type="data" format="sam,bam,bed" label="Sequencing alignment file" />
|
|
1
|
27 <expand macro="tag_size" />
|
|
0
|
28
|
|
|
29 <conditional name="method_options">
|
|
|
30 <param name="method_options_selector" type="select" label="Select action to be performed">
|
|
|
31 <option value="percentage">Percentage</option>
|
|
|
32 <option value="number">Number</option>
|
|
|
33 </param>
|
|
|
34 <when value="percentage">
|
|
|
35 <param name="percentage" type="float" value="80.0" label="Pvalue cutoff for binomial distribution test" help="(--percentage)" />
|
|
|
36 </when>
|
|
|
37 <when value="number">
|
|
|
38 <param name="number" type="integer" value="800000" label="Number of tags you want to keep" help="Note that the number of tags in output is approximate as the number specified here (--number)" />
|
|
|
39 </when>
|
|
|
40 </conditional>
|
|
|
41
|
|
|
42 </inputs>
|
|
|
43 <outputs>
|
|
|
44 <data name="outfile" format="bed" label="${tool.name} on ${on_string}" />
|
|
|
45 </outputs>
|
|
|
46 <tests>
|
|
|
47 <!--none yet for macs2-->
|
|
|
48 </tests>
|
|
|
49 <help>
|
|
|
50 **What it does**
|
|
|
51
|
|
|
52 randsample tool from macs2
|
|
|
53
|
|
9
|
54 @citation@
|
|
0
|
55 </help>
|
|
|
56 </tool>
|