0
|
1 <tool id="macs2_randsamoke" name="Randomly sample number or percentage" version="2.0.10.0">
|
|
2 <description>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
|
|
22 </command>
|
|
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 ------
|
|
54
|
|
55 **Citation**
|
|
56
|
|
57 For the underlying tool, please cite Zhang Y, Liu T, Meyer CA, Eeckhoute J, Johnson DS, Bernstein BE, Nusbaum C, Myers RM, Brown M, Li W, Liu XS. Model-based analysis of ChIP-Seq (MACS). Genome Biol. 2008;9(9):R137.
|
|
58
|
|
59 Integration of MACS2 with Galaxy performed by Ziru Zhou ( ziruzhou@gmail.com ). Please send your comments/questions to modENCODE DCC at help@modencode.org.
|
|
60 </help>
|
|
61 </tool>
|