comparison mergereplicates.xml @ 0:b08353d4f6ee 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:29:00 +0000
parents
children 9f5cf30f0974
comparison
equal deleted inserted replaced
-1:000000000000 0:b08353d4f6ee
1 <tool id="ampvis2_mergereplicates" name="ampvis2 merge replicates" 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 data <- amp_mergereplicates(
15 data,
16 merge_var = "$merge_var",
17 #if $round != ""
18 round = "$round"
19 #end if
20 )
21 saveRDS(data, "$ampvis")
22 @SAVE_METADATA_LIST@
23 ]]></configfile>
24 </configfiles>
25 <inputs>
26 <expand macro="rds_metadata_input_macro"/>
27 <expand macro="metadata_select_discrete" argument="merge_var" label="Variable that defines the sample groups"/>
28 <param argument="round" type="select" label="Round decimals after merging" help="If the read counts are integers, any decimals present after merging will be rounded either up or down. Make sure this makes sense if the read counts have been normalised, as it may result in 0's, 1's, and 2's everywhere. ">
29 <option value="">Don't round</option>
30 <option value="up">up</option>
31 <option value="down">down</option>
32 </param>
33 </inputs>
34 <outputs>
35 <data name="ampvis" format="ampvis2"/>
36 <data name="metadata_list_out" format="tabular" label="${tool.name} on ${on_string}: metadata list"/>
37 </outputs>
38 <tests>
39 <!-- defaults -->
40 <test expect_num_outputs="2">
41 <param name="data" value="AalborgWWTPs.rds" ftype="ampvis2"/>
42 <param name="metadata_list" value="AalborgWWTPs-metadata.list"/>
43 <param name="merge_var" value="Period"/>
44 <output name="ampvis" value="AalborgWWTPs-mergereplicates.rds" ftype="ampvis2" compare="sim_size"/>
45 <output name="metadata_list_out">
46 <assert_contents>
47 <has_line line="SampleID&#9;Winter&#9;TRUE&#9;character"/>
48 <has_n_lines n="17"/>
49 <has_n_columns n="4"/>
50 </assert_contents>
51 </output>
52 </test>
53 <!-- defaults -->
54 <test expect_num_outputs="2">
55 <param name="data" value="AalborgWWTPs.rds" ftype="ampvis2"/>
56 <param name="metadata_list" value="AalborgWWTPs-metadata.list"/>
57 <param name="merge_var" value="Period"/>
58 <param name="round" value="up"/>
59 <output name="ampvis" value="AalborgWWTPs-mergereplicates.rds" ftype="ampvis2" compare="sim_size"/>
60 <output name="metadata_list_out">
61 <assert_contents>
62 <has_line line="SampleID&#9;Winter&#9;TRUE&#9;character"/>
63 <has_n_lines n="17"/>
64 <has_n_columns n="4"/>
65 </assert_contents>
66 </output>
67 </test>
68 </tests>
69 <help><![CDATA[
70 What it does
71 ============
72
73 Aggregates read counts in replicate samples by calculating the mean abundances of OTU's
74
75 The Galaxy tool calls the `amp_mergereplicates
76 <https://madsalbertsen.github.io/ampvis2/reference/amp_merge_replicates.html>`_ function
77 of the ampvis2 package.
78
79 Input
80 =====
81
82 @HELP_RDS_INPUT@
83
84 @HELP_METADATA_LIST_INPUT@
85
86 Output
87 ======
88
89 An rank abundance plot in the chosen output format.
90 ]]></help>
91 <expand macro="citations"/>
92 </tool>