annotate macs2_randsample.xml @ 49:1b3f899ef044 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
author iuc
date Sat, 08 Apr 2017 08:28:38 -0400
parents 8c8ae1e19b10
children 8f6b37d29df5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
33
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
1 <tool id="macs2_randsample" name="MACS2 randsample" version="@VERSION_STRING@.0">
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
2 <description>Randomly sample number or percentage of total reads</description>
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
3 <macros>
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
4 <import>macs2_macros.xml</import>
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
5 </macros>
36
8c8ae1e19b10 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 344140b8df53b8b7024618bb04594607a045c03a
iuc
parents: 33
diff changeset
6 <expand macro="requirements" />
8c8ae1e19b10 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 344140b8df53b8b7024618bb04594607a045c03a
iuc
parents: 33
diff changeset
7 <expand macro="stdio" />
8c8ae1e19b10 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 344140b8df53b8b7024618bb04594607a045c03a
iuc
parents: 33
diff changeset
8 <expand macro="version_command" />
33
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
9 <command>
49
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
10 <![CDATA[
33
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
11 macs2 randsample
49
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
12 -t '${ infile }'
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
13 -o '${ outfile }'
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
14 --seed '${ seed }'
33
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
15
49
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
16 --format '${ infile.extension.upper() }'
33
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
17
49
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
18 @tag_size@
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
19
33
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
20 #if $method_options.method_options_selector == 'percentage':
49
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
21 --percentage '${ method_options.percentage }'
33
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
22 #else:
49
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
23 --number '${ method_options.number }'
33
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
24 #end if
49
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
25 ]]>
33
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
26 </command>
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
27 <inputs>
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
28 <param name="infile" type="data" format="sam,bam,bed" label="Sequencing alignment file" />
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
29 <expand macro="tag_size" />
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
30 <conditional name="method_options">
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
31 <param name="method_options_selector" type="select" label="Select action to be performed">
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
32 <option value="percentage" selected="true">Percentage</option>
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
33 <option value="number">Number</option>
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
34 </param>
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
35 <when value="percentage">
49
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
36 <param name="percentage" type="float" value="80.0" label="Percentage of tags you want to keep" help="Percentage of tags you want to keep. Input 80.0 for 80%.(--percentage)"/>
33
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
37 </when>
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
38 <when value="number">
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
39 <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)" />
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
40 </when>
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
41 </conditional>
49
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
42 <param name="seed" type="integer" value="1" label="Random seed number" min="0" help="Set the random seed while down sampling data. Must be a positive integer in order to be effective. (--seed)"/>
33
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
43 </inputs>
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
44 <outputs>
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
45 <data name="outfile" format="bed" label="${tool.name} on ${on_string}" />
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
46 </outputs>
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
47 <tests>
49
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
48 <test>
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
49 <param name="infile" value="ChIP_200K.bed" ftype="bed" />
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
50 <param name="method_options_selector" value="percentage" />
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
51 <param name="percentage" value="80.0" />
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
52 <param name="seed" value="1" />
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
53 <output name="outfile" file="bdgrandsample_output.bed"/>
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
54 </test>
33
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
55 </tests>
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
56 <help>
49
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
57 <![CDATA[
33
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
58 **What it does**
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
59
49
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
60 This is **randsample** utility from the MACS2_ Package. It randomly samples reads by number or percentage from an input file.
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
61
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
62 .. _MACS2: https://github.com/taoliu/MACS
33
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
63
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
64 @citation@
49
1b3f899ef044 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents: 36
diff changeset
65 ]]>
33
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
66 </help>
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
67 <expand macro="citations" />
c82a1f154c60 Uploaded
iuc
parents:
diff changeset
68 </tool>