comparison core.xml @ 0:48e343a308b0 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 7c0ecbffdb5e993f5af7e3b52c424c2761fb91d3"
author iuc
date Mon, 04 Apr 2022 10:28:11 +0000
parents
children 7f712eb18230
comparison
equal deleted inserted replaced
-1:000000000000 0:48e343a308b0
1 <tool id="ampvis2_core" name="ampvis2 core community analysis" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@" license="MIT">
2 <description></description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="header"/>
7 <command detect_errors="exit_code"><![CDATA[
8 Rscript '$rscript'
9 ]]></command>
10 <configfiles>
11 <configfile name="rscript"><![CDATA[
12 library(ampvis2, quietly = TRUE)
13 data <- readRDS("$data")
14 #set group_by_list='c("' + '", "'.join(str($group_by).split(",")) + '")'
15 plot <- amp_core(
16 data,
17 group_by = $group_by_list,
18 core_pct = $core_pct,
19 margin_plots = "$margin_plots",
20 margin_plot_values_size = $margin_plot_values_size,
21 widths = c($widths, 1),
22 heights = c(1, $heights)
23 )
24 @OUTPUT_TOKEN@
25 ]]></configfile>
26 </configfiles>
27 <inputs>
28 <expand macro="rds_metadata_input_macro"/>
29 <expand macro="metadata_select_discrete" argument="group_by" optional="false" multiple="true" label="Variable(s) which contain the desired grouping of samples" help="Can also be done by sample, just provide the name of the variable containing unique sample ID's"/>
30 <param argument="core_pct" type="float" value="80" min="0" max="100" label="Threshold in percent" help="Threshold for defining abundant (a.k.a. core) OTU's for each group"/>
31 <param argument="margin_plots" type="select" label="Margin plots to show" help="Margin plots display the cumulative read abundances of all OTU's per group sharing either x or y axis with the main plot">
32 <option value="x">Only show x-axis margin plot</option>
33 <option value="y">Only show y-axis margin plot</option>
34 <option value="xy" selected="true">Show both x and y-axis margin plots</option>
35 <option value="">Don't show any margin plots</option>
36 </param>
37 <param argument="margin_plot_values_size" type="integer" value="3" min="0" label="The size of the values" help="As indicated in the margin plots on top of the bars. Set to 0 to disable."/>
38 <param argument="widths" type="integer" value="5" min="1" label="Relative width of the main and y margin plots"/>
39 <param argument="heights" type="integer" value="5" min="1" label="Relative widths of the main and x margin plots"/>
40 <expand macro="out_format_macro"/>
41 </inputs>
42 <outputs>
43 <expand macro="out_macro"/>
44 </outputs>
45 <tests>
46 <!-- defaults -->
47 <test expect_num_outputs="1">
48 <param name="data" value="AalborgWWTPs.rds" ftype="ampvis2"/>
49 <param name="metadata_list" value="AalborgWWTPs-metadata.list"/>
50 <param name="group_by" value="Period"/>
51 <output name="plot" value="AalborgWWTPs-core.pdf" ftype="pdf"/>
52 </test>
53 <!--multiple groups + non-default widths / heights-->
54 <test expect_num_outputs="1">
55 <param name="data" value="AalborgWWTPs.rds" ftype="ampvis2"/>
56 <param name="metadata_list" value="AalborgWWTPs-metadata.list"/>
57 <param name="group_by" value="Plant,Period"/>
58 <param name="core_pct" value="90"/>
59 <param name="widths" value="4"/>
60 <param name="heights" value="4"/>
61 <output name="plot" value="AalborgWWTPs-core-multiple.pdf" ftype="pdf"/>
62 </test>
63 </tests>
64 <help><![CDATA[
65 What it does
66 ============
67
68 Core community plot to investigate how many of the most abundant OTU's comprise
69 the "core" of groups of samples, their abundances etc.
70
71 The Galaxy tool calls the `amp_core
72 <https://madsalbertsen.github.io/ampvis2/reference/amp_core.html>`_ function
73 of the ampvis2 package.
74
75 This analysis only makes sense without aggregating OTU's to any taxonomic level,
76 or else it will be biased by taxonomy and only be done on OTU's that have been
77 classified, which is rarely all.
78
79
80 @HELP_RELATIVE_ABUNDANCES@
81
82 Input
83 =====
84
85 @HELP_RDS_INPUT@
86
87 @HELP_METADATA_LIST_INPUT@
88
89 Output
90 ======
91
92 A core community plot in the chosen output format.
93 ]]></help>
94 <expand macro="citations"/>
95 </tool>