annotate intervene_upset.xml @ 3:21beb30956c2 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit f0241966e9185e5960947d12dcb490cce1fc6301
author iuc
date Fri, 21 Oct 2022 16:07:46 +0000
parents 33b8c5eedc04
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
21beb30956c2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit f0241966e9185e5960947d12dcb490cce1fc6301
iuc
parents: 2
diff changeset
1 <tool id="intervene_upset" name="UpSet diagram" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
0
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>
2
33b8c5eedc04 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit bf6d77a84f796430a6b4530209d0f21e1d40d25a
iuc
parents: 0
diff changeset
3 <xrefs>
33b8c5eedc04 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit bf6d77a84f796430a6b4530209d0f21e1d40d25a
iuc
parents: 0
diff changeset
4 <xref type="bio.tools">intervene</xref>
33b8c5eedc04 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit bf6d77a84f796430a6b4530209d0f21e1d40d25a
iuc
parents: 0
diff changeset
5 </xrefs>
0
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
6 <macros>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
7 <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
8 </macros>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
9 <requirements>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
10 <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
11 </requirements>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
12 <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
13 #import re
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
14 #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
15 #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
16 intervene upset
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
17 --type $type
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
18 --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
19 --names $labels
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
20 --output results
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
21 --order $order
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
22 --ninter $ninter
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
23 $showzero
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
24 $showsize
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
25 --mbcolor '$mbcolor'
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
26 --sbcolor '$sbcolor'
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
27 --mblabel '$mblabel'
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
28 --sxlabel '$sxlabel'
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
29 --figtype $figtype
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
30 --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
31 --dpi $dpi &&
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
32 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
33 ]]></command>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
34 <inputs>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
35 <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
36 <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
37 <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
38 <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
39 </param>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
40 <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
41 <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
42 <!-- 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
43 <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
44 <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
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="--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
48 <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
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="--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
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 <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
54 <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
55 </param>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
56 <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
57 </inputs>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
58 <outputs>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
59 <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
60 <actions>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
61 <action type="format">
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
62 <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
63 </action>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
64 </actions>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
65 </data>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
66 </outputs>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
67 <tests>
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 <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
70 <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
71 </test>
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 <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
74 <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
75 </test>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
76 </tests>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
77 <help><![CDATA[
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
78 **What it does**
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 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
81 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
82
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
83 .. 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
84
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
85 ]]></help>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
86 <expand macro="citations"/>
f5fa293605ca planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/intervene commit 9b67be72f7330b1b9af7944aa695c9f5d6d20a15
iuc
parents:
diff changeset
87 </tool>