Mercurial > repos > iuc > ampvis2_venn
annotate venn.xml @ 5:ce6bd3800aed draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ampvis2 commit e0ad9ce8f508215ec6af69be2682a0faf38415da
| author | iuc |
|---|---|
| date | Mon, 10 Nov 2025 12:59:31 +0000 |
| parents | c8999971bab3 |
| children |
| rev | line source |
|---|---|
|
0
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
1 <tool id="ampvis2_venn" name="ampvis2 venn diagram" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@" license="MIT"> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
2 <description></description> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
3 <macros> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
5 </macros> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
6 <expand macro="header"/> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
7 <command detect_errors="exit_code"><![CDATA[ |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
8 Rscript '$rscript' |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
9 ]]></command> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
10 <configfiles> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
11 <configfile name="rscript"><![CDATA[ |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
12 library(ampvis2, quietly = TRUE) |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
13 data <- readRDS("$data") |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
14 plot <- amp_venn( |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
15 data, |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
16 #if $group_by |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
17 group_by = "$group_by", |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
18 #end if |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
19 cut_a = $cut_a, |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
20 cut_f = $cut_f, |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
21 text_size = $text_size, |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
22 normalise = $normalise, |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
23 ## detailed_output = TRUE seems not supported yet https://github.com/MadsAlbertsen/ampvis2/issues/132 |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
24 ) |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
25 ## names(plot) |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
26 @OUTPUT_TOKEN@ |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
27 ]]></configfile> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
28 </configfiles> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
29 <inputs> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
30 <expand macro="rds_metadata_input_macro"/> |
|
3
c8999971bab3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit bd71427cbcde998202d2de95ec517126ff608979
iuc
parents:
0
diff
changeset
|
31 <expand macro="metadata_select_discrete" argument="group_by" label="Group the data by" help="Currently only supports a maximum of 3 different groups."> |
|
0
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
32 <validator type="expression" message="A maximum of 3 different groups is supported"><![CDATA[len(str(value).split(",")) < 4]]></validator> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
33 </expand> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
34 <param argument="cut_a" type="float" value="0.1" min="0" max="100" label="Abundance cutoff (percent)" help="OTU's below this abundance are excluded from the analysis"/> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
35 <param argument="cut_f" type="float" value="80" min="0" max="100" label="Frequency cutoff (percent)" help="OTU's within the top cut_f of the reads are considered a core OTU"/> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
36 <param argument="text_size" type="integer" value="5" min="1" label="Size of the plotted text."/> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
37 <expand macro="normalise_macro"/> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
38 <expand macro="out_format_macro"/> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
39 </inputs> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
40 <outputs> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
41 <expand macro="out_macro"/> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
42 </outputs> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
43 <tests> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
44 <!-- defaults --> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
45 <test expect_num_outputs="1"> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
46 <param name="data" value="AalborgWWTPs.rds" ftype="ampvis2"/> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
47 <output name="plot" value="AalborgWWTPs-venn.pdf" ftype="pdf" compare="sim_size"/> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
48 </test> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
49 <!-- defaults + group_by --> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
50 <test expect_num_outputs="1"> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
51 <param name="data" value="AalborgWWTPs.rds" ftype="ampvis2"/> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
52 <param name="metadata_list" value="AalborgWWTPs-metadata.list"/> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
53 <param name="group_by" value="Plant"/> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
54 <output name="plot" value="AalborgWWTPs-venn-group.pdf" ftype="pdf" compare="sim_size"/> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
55 </test> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
56 </tests> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
57 <help><![CDATA[ |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
58 What it does |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
59 ============ |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
60 |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
61 Calculates the number of "core" OTUs shared by groups given thresholds for how |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
62 frequent the OTUs should be above a certain abundance. Also returns the average |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
63 abundance of the OTUs in a particular group. |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
64 |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
65 The Galaxy tool calls the `amp_venn |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
66 <https://kasperskytte.github.io/ampvis2/reference/amp_venn.html>`_ function |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
67 of the ampvis2 package. |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
68 |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
69 @HELP_RELATIVE_ABUNDANCES@ |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
70 |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
71 Input |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
72 ===== |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
73 |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
74 @HELP_RDS_INPUT@ |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
75 |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
76 @HELP_METADATA_LIST_INPUT@ |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
77 |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
78 Output |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
79 ====== |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
80 |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
81 A venn diagram in the chosen output format. |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
82 ]]></help> |
|
11d29b7b44f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
83 <expand macro="citations"/> |
|
3
c8999971bab3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit bd71427cbcde998202d2de95ec517126ff608979
iuc
parents:
0
diff
changeset
|
84 </tool> |
