annotate phyloseq_nmds.xml @ 4:d06ddf67468f draft default tip

planemo upload commit 5ca7dbbc2e9d6107b706376cd36742cf0c816534-dirty
author simon-gladman
date Tue, 04 Sep 2018 21:41:23 -0400
parents 5a2bda9b28c5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
1 <tool id="phyloseq_nmds" name="Phyloseq Ordination Plot" version="1.22.3.2" hidden="false">
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
2 <description>Ordination Plotting</description>
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
3 <requirements>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
4 <requirement type="package" version="1.22.3">bioconductor-phyloseq</requirement>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
5 <requirement type="package" version="1.20.0">r-getopt</requirement>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
6 <requirement type="package" version="9.18">ghostscript</requirement>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
7 </requirements>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
8 <version_command><![CDATA[
2
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
9 echo $(R --version | grep version | grep -v GNU)", phyloseq version" $(R --vanilla --slave -e "library(phyloseq); cat(sessionInfo()\$otherPkgs\$phyloseq\$Version)" 2> /dev/null | grep -v -i "WARNING: ")
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
10 ]]></version_command>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
11 <command detect_errors="exit_code"><![CDATA[
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
12 Rscript '${__tool_directory__}/phyloseq_nmds.R'
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
13 #if str($file_source.file_source_selector) == "set_biom":
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
14 --biom='$file_source.input'
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
15 --subset='$file_source.subsetColumn'
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
16 #else:
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
17 --otu_table='$OTU_TABLE'
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
18 --tax_table='$TAX_TABLE'
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
19 --meta_table='$META_TABLE'
2
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
20 --category='$file_source.category'
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
21 #end if
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
22 --method='$ord_method'
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
23 --distance='$distance'
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
24 --kingdom='$kingdom_field'
2
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
25 --cutoff='$cutoff'
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
26 --keep='$keep'
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
27 --filter='$nsample'
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
28 --plottype='$plot_type'
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
29 --outdir="$htmlfile.files_path"
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
30 --htmlfile='$htmlfile'
2
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
31 ]]>
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
32 </command>
2
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
33
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
34 <inputs>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
35 <conditional name="file_source">
3
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
36 <param name="file_source_selector" type="select" label="Choose an input file type">
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
37 <option value="set_biom" selected="True">BIOM File</option>
2
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
38 <option value="set_table">TABULAR File</option>
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
39 </param>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
40 <when value="set_biom">
2
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
41 <param format="biom1" name="input" type="data" label="Input File"/>
3
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
42 <param name="subsetColumn" type="select" label="Select variable for ordination">
2
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
43 <options>
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
44 <filter type="data_meta" ref="input" key="table_column_metadata_headers" />
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
45 </options>
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
46 </param>
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
47 </when>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
48 <when value="set_table">
2
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
49 <param format="tabular" name="OTU_TABLE" type="data" label="OTU table"/>
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
50 <param format="tabular" name="TAX_TABLE" type="data" label="Taxonomy table"/>
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
51 <param format="tabular" name="META_TABLE" type="data" label="Metadata table"/>
3
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
52 <param name="category" type="data_column" data_ref="META_TABLE" use_header_names="True" label="Select variable for ordination"/>
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
53 </when>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
54 </conditional>
3
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
55 <param name="ord_method" type="select" display="radio" label="Select Ordination method">
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
56 <option value="NMDS" selected="true">NMDS(Non-metric Multidimensional Scalling)</option>
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
57 <option value="DCA">DCA (Detrended Correspondence Analysis)</option>
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
58 <option value="CCA">CCA (Constrained Correspondence Analysis)</option>
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
59 <option value="RDA">RDA (Redundancy Analysis)</option>
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
60 <option value="DPCoA">DPCoA (Double Principle Coordinate Analysis)</option>
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
61 <option value="MDS">MDS (Multidimensional Scaling)</option>
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
62 <option value="PCoA">PCoA (Principal Coordinate Analysis)</option>
2
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
63 </param>
3
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
64 <param name="distance" type="select" display="radio" label="Select Distance method">
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
65 <option value="bray" selected="true">bray (Bray-Curtis distance)</option>
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
66 <option value="gower">gower (Gower's distance)</option>
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
67 <option value="jsd">jds (Jensen-Shannon Divergence)</option>
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
68 <option value="unifrac">unifrac (unweighted UniFrac distance)</option>
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
69 <option value="wunifrac">wunifrac (weighted-UniFrac distance)</option>
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
70 </param>
3
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
71 <param name="kingdom_field" type="select" display="radio" label="Select a taxonomic rank for the analysis">
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
72 <option value="Kingdom">Kingdom</option>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
73 <option value="Phylum" selected="true">Phylum</option>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
74 <option value="Class">Class</option>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
75 <option value="Order">Order</option>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
76 <option value="Family">Family</option>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
77 <option value="Genus">Genus</option>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
78 <option value="Species">Species</option>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
79 </param>
3
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
80 <param name="plot_type" type="select" label="Type of Plot" help="Ordination plot type (Plot OTUs, Plot SAMPLE, Biplot graphic, Split plot graphic)">
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
81 <option value="1">OTU</option>
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
82 <option value="2">SAMPLE</option>
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
83 </param>
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
84 <param name="nsample" size="10" type="float" value="0.5" label="Specify the number of samples to discard" help="i.e. remove OTUs from the analysis that do not appear more than X times in more than Y% of the samples (where 1.0 = 100%)"/>
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
85 <param name="cutoff" size="10" type="integer" value="5" label="specify value of X" help="Remove OTUs that do not appear more than X times (e.g., 5 times)"/>
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
86 <param name="keep" size="10" type="integer" value="5" label="Number of the most abundant taxonomic rank units to keep" help="e.g. Phyla, Class and etc"/>
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
87 </inputs>
2
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
88
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
89 <outputs>
3
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
90 <data format="html" name="htmlfile" label="${tool.name} - ${ord_method.value_label}_${distance.value_label}.html"/>
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
91 </outputs>
2
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
92
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
93 <tests>
3
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
94 <test> <!-- Test #1: Test BIOM format input -->
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
95 <!-- Equivalent command (replace + with double dash): Rscript phyloseq_nmds.R +biom=test-data/GP.biom +subset=6 +method=NMDS
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
96 +distance=bray +kingdom=Phylum +cutoff=5 +keep=5 +outdir=outputdir +htmlfile=biom_out.html -->
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
97 <conditional name="file_source">
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
98 <param name="file_source_selector" value="set_biom"/>
4
d06ddf67468f planemo upload commit 5ca7dbbc2e9d6107b706376cd36742cf0c816534-dirty
simon-gladman
parents: 3
diff changeset
99 <param name="input" value="GP.biom" ftype="biom1" />
2
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
100 <param name="subsetColumn" value="Primer" />
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
101 </conditional>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
102 <output name="htmlfile" ftype="html" file="biom_out.html" />
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
103 </test>
3
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
104 <test> <!-- Test #2: Test TABULAR format inputs -->
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
105 <!-- Equivalent command (replace + with double dash): Rscript phyloseq_nmds.R +otu_table=test-data/GP_OTU_TABLE.txt
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
106 +tax_table=test-data/GP_TAX_TABLE.txt +meta_table=test-data/GP_SAMPLE_TABLE.txt
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
107 +method="bray" +kingdom=Phylum +cutoff=5 + keep=5 +category=6 +outdir=outputdir +htmlfile=test.html -->
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
108 <conditional name="file_source">
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
109 <param name="file_source_selector" value="set_table" />
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
110 <param name="OTU_TABLE" value="GP_OTU_TABLE.txt" />
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
111 <param name="TAX_TABLE" value="GP_TAX_TABLE.txt" />
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
112 <param name="META_TABLE" value="GP_SAMPLE_TABLE.txt" />
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
113 <param name="category" value="6" />
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
114 </conditional>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
115 <output name="htmlfile" ftype="html" file="test.html" />
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
116 </test>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
117 </tests>
2
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
118
20adf95eb758 Updated phyloseq_nmds.xml to allow for new datatype.
simon-gladman
parents: 0
diff changeset
119 <help>
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
120 **What it does**
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
121 Creates NMDS plot using R package called phyloseq_.
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
122
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
123 .. _phyloseq: https://joey711.github.io/phyloseq/plot_ordination-examples.html
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
124
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
125 -----
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
126
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
127 **Input**
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
128
3
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
129 - **Choose an input file type** - BIOM File or TABULAR file
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
130 - **Select variable for ordination** - This column is used to extract unique value from the column of interest for ordination plot
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
131 - **OTU TABLE** - this is a OTU matrix
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
132 - **Taxonomy TABLE** - this is a TAX matrix
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
133 - **Metadata TABLE** - this is a metadata file of the experiment design
3
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
134 - **Select Ordination method** - select ordination method
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
135 - **Select Distance method** - select distance method for ordination plot
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
136 - **Select a taxonomic rank for the analysis** - select a taxonomy for NMDS plot
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
137 - **Specify the number of samples to discard** - Y% of samples to discard (where 1.0 = 100%)
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
138 - **specify value of X** - Remove OTUs that do not appear more than X times (e.g., 5 times)
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
139 - **Number of the most abundant taxonomic rank units** - taxonomic rank units (e.g. Phyla, Class etc) to keep
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
140
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
141 -----
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
142
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
143 =========
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
144 Resources
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
145 =========
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
146
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
147 **Wrapper Authors**
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
148
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
149 QFAB Bioinformatics (support@qfab.org)
5a2bda9b28c5 New version 1.22.3.2.
simon-gladman
parents: 2
diff changeset
150 Melbourne Bioinformatics
0
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
151 </help>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
152 <citations>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
153 <citation type="doi">10.18129/B9.bioc.phyloseq</citation>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
154 </citations>
b4606394e7ec planemo upload
simon-gladman
parents:
diff changeset
155 </tool>