annotate intervene_upset.xml @ 0:f5fa293605ca draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
author iuc
date Wed, 12 Sep 2018 13:22:43 -0400
parents
children 33b8c5eedc04
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
1 <tool id="intervene_upset" name="UpSet diagram" version="@TOOL_VERSION@">
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
2 <description>of intersection of genomic regions or list sets</description>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
3 <macros>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
4 <import>macros.xml</import>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
5 </macros>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
6 <requirements>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
7 <requirement type="package" version="@TOOL_VERSION@">intervene</requirement>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
8 </requirements>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
9 <command detect_errors="exit_code"><![CDATA[
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
10 #import re
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
11 #set $labels = ",".join(["'%s'" % @ESCAPE_IDENTIFIER@ for file in $input])
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
12 #set $type = 'genomic 'if $input[0].is_of_type('interval') else 'list'
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
13 intervene upset
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
14 --type $type
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
15 --input #echo " ".join(["'%s'" % file for file in $input])
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
16 --names $labels
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
17 --output results
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
18 --order $order
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
19 --ninter $ninter
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
20 $showzero
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
21 $showsize
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
22 --mbcolor '$mbcolor'
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
23 --sbcolor '$sbcolor'
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
24 --mblabel '$mblabel'
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
25 --sxlabel '$sxlabel'
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
26 --figtype $figtype
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
27 --figsize $figsize_width $figsize_height
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
28 --dpi $dpi &&
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
29 mv results/Intervene_upset.${figtype} results/Intervene_upset.plot
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
30 ]]></command>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
31 <inputs>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
32 <param argument="--input" type="data" format="txt" multiple="true" label="Select input files for which to produce intersections"/>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
33 <param argument="--order" type="select" label="Select the order of intersections of sets">
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
34 <option value="freq">Frequency</option>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
35 <option value="degree">Degree</option>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
36 </param>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
37 <param argument="--ninter" type="integer" value="30" min="1" label="Number of top intersections to show in plot"/>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
38 <param argument="--showzero" type="boolean" truevalue="--showzero" falsevalue="" label="Show empty intersections in plot?"/>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
39 <!-- the argparse action is wrong for showsize, check this when upgrading tool in future -->
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
40 <param argument="--showsize" type="boolean" truevalue="" falsevalue="--showsize" checked="true" label="Show intersection sizes above bars ?"/>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
41 <param argument="--mbcolor" type="color" label="Color of the main bar plot" value="#ea5d4e">
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
42 <expand macro="color_sanitizer"/>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
43 </param>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
44 <param argument="--sbcolor" type="color" label="Color of the set size bar plot" value="#317eab">
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
45 <expand macro="color_sanitizer"/>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
46 </param>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
47 <param argument="--mblabel" type="text" label="The y-axis label of the intersection size bars" value="No. of Intersections">
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
48 <expand macro="quote_sanitizer"/>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
49 </param>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
50 <param argument="--sxlabel" type="text" label="The x-axis label of the set size bars" value="Set size">
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
51 <expand macro="quote_sanitizer"/>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
52 </param>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
53 <expand macro="figure_params"/>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
54 </inputs>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
55 <outputs>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
56 <data name="plot" format="pdf" label="UpSet plot on ${on_string}" from_work_dir="results/Intervene_upset.plot">
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
57 <actions>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
58 <action type="format">
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
59 <option type="from_param" name="figtype"/>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
60 </action>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
61 </actions>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
62 </data>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
63 </outputs>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
64 <tests>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
65 <test>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
66 <param name="input" value="a.txt,b.txt,c.txt"/>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
67 <output name="plot" value="upset.pdf" compare="sim_size"/>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
68 </test>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
69 <test>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
70 <param name="input" value="a.bed,b.bed,c.bed"/>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
71 <output name="plot" value="bed_upset.pdf" compare="sim_size"/>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
72 </test>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
73 </tests>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
74 <help><![CDATA[
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
75 **What it does**
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
76
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
77 This tool produces an upset plot for the intersection of sets from different datasets.
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
78 These can be regular lists or BED/GFF/interval files which will be processed using bedtools intersect.
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
79
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
80 .. image:: $PATH_TO_IMAGES/upset.png
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
81
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
82 ]]></help>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
83 <expand macro="citations"/>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
84 </tool>