annotate phyloseq_filter.xml @ 2:54897b7e0551 draft default tip

Updated tool
author simon-gladman
date Thu, 22 Nov 2018 08:13:52 -0500
parents 9fbb104e16d9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
1 <tool id="biom_filter" name="Phyloseq Biom Filtering" version="1.22.3.2" hidden="false">
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
2 <description>biom file filter</description>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
3 <requirements>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
4 <requirement type="package" version="1.22.3">bioconductor-phyloseq</requirement>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
5 <requirement type="package" version="1.20.0">r-getopt</requirement>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
6 <requirement type="package" version="1.0.11">r-doparallel</requirement>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
7 <requirement type="package" version="1.20.0">bioconductor-metagenomeseq</requirement>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
8 <requirement type="package" version="9.18">ghostscript</requirement>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
9 </requirements>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
10 <version_command><![CDATA[
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
11 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: ")
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
12 ]]></version_command>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
13 <command detect_errors="exit_code"><![CDATA[
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
14 Rscript '${__tool_directory__}/phyloseq_filter.R'
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
15 #if str($file_source.file_source_selector) == "set_biom":
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
16 --biom='$file_source.input'
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
17 #else:
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
18 --otu_table='$OTU_TABLE'
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
19 --tax_table='$TAX_TABLE'
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
20 --meta_table='$META_TABLE'
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
21 #end if
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
22 --cutoff='$cutoff'
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
23 --kingdom='$kingdom_field'
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
24 --keep='$keep'
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
25 --filter='$nsample'
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
26 --outbiom='$outputbiom'
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
27 --outdir="$htmlfile.files_path"
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
28 --htmlfile='$htmlfile'
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
29 ]]>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
30 </command>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
31
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
32 <inputs>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
33 <conditional name="file_source">
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
34 <param name="file_source_selector" type="select" label="Choose an input file type">
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
35 <option value="set_biom" selected="True">BIOM File</option>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
36 <option value="set_table">TABULAR File</option>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
37 </param>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
38 <when value="set_biom">
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
39 <param format="biom1" name="input" type="data" label="Input File"/>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
40 </when>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
41 <when value="set_table">
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
42 <param format="tabular" name="OTU_TABLE" type="data" label="OTU table"/>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
43 <param format="tabular" name="TAX_TABLE" type="data" label="Taxonomy table"/>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
44 <param format="tabular" name="META_TABLE" type="data" label="Metadata table"/>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
45 </when>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
46 </conditional>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
47 <param name="kingdom_field" type="select" display="radio" label="Select a taxonomic rank for the analysis">
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
48 <option value="Kingdom">Kingdom</option>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
49 <option value="Phylum" selected="true">Phylum</option>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
50 <option value="Class">Class</option>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
51 <option value="Order">Order</option>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
52 <option value="Family">Family</option>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
53 <option value="Genus">Genus</option>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
54 <option value="Species">Species</option>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
55 </param>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
56 <param name="keep" size="10" type="integer" value="5" label="Number of the most abundant taxonomic rank units to keep in the filtered BIOM file" help="e.g. Phyla, Class and etc. as specified above. Select a value > 1."/>
2
54897b7e0551 Updated tool
simon-gladman
parents: 1
diff changeset
57 <param name="cutoff" size="10" type="integer" value="1" label="Filter out OTUs. Remove OTUs from the analysis that do not appear more than X times in more than Y% of the samples. Specify value of X" help="Remove OTUs that do not appear more than X times (e.g., 5 times)"/>
54897b7e0551 Updated tool
simon-gladman
parents: 1
diff changeset
58 <param name="nsample" size="10" type="float" value="0.0" label="Specify value of Y (where 1.0 = 100%)"/>
0
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
59 </inputs>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
60
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
61 <outputs>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
62 <data format="biom1" name="outputbiom" label="${tool.name} on ${on_string}.biom"/>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
63 <data format="html" name="htmlfile" label="${tool.name} on ${on_string} Sample Abundance plot.html"/>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
64 </outputs>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
65
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
66 <tests>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
67 <test> <!-- Test #1: Test BIOM format input -->
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
68 <conditional name="file_source">
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
69 <param name="file_source_selector" value="set_biom"/>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
70 <param name="input" value="GP.biom" ftype="biom1"/>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
71 </conditional>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
72 <output name="htmlfile" ftype="html" file="biom_out.html" />
2
54897b7e0551 Updated tool
simon-gladman
parents: 1
diff changeset
73 <output name="outputbiom" >
54897b7e0551 Updated tool
simon-gladman
parents: 1
diff changeset
74 <assert_contents>
0
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
75 <has_text text="Biological Observation Matrix"/>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
76 </assert_contents>
2
54897b7e0551 Updated tool
simon-gladman
parents: 1
diff changeset
77 </output>
0
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
78 </test>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
79 <test> <!-- Test #2: Test TABULAR format inputs -->
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
80 <conditional name="file_source">
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
81 <param name="file_source_selector" value="set_table" />
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
82 <param name="OTU_TABLE" value="GP_OTU_TABLE.txt" />
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
83 <param name="TAX_TABLE" value="GP_TAX_TABLE.txt" />
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
84 <param name="META_TABLE" value="GP_SAMPLE_TABLE.txt" />
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
85 </conditional>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
86 <output name="htmlfile" ftype="html" file="matrix_out.html" />
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
87 <output name="outputbiom" >
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
88 <assert_contents>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
89 <has_text text="Biological Observation Matrix"/>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
90 </assert_contents>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
91 </output>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
92 </test>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
93 </tests>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
94
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
95 <help>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
96 **What it does**
1
simon-gladman
parents: 0
diff changeset
97 Filter out low abundance OTUs and/or data corresponding to the least represented taxonomic grouping using R package called R_package_called_phyloseq_, and specifically according to the pre-processing step outlined in the Phyloseq_Ordination_Plot_Tutorial_.
0
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
98
1
simon-gladman
parents: 0
diff changeset
99 .. _R_package_called_phyloseq: https://joey711.github.io/phyloseq/index.html
simon-gladman
parents: 0
diff changeset
100 .. _Phyloseq_Ordination_Plot_Tutorial: https://joey711.github.io/phyloseq/plot_ordination-examples.html
0
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
101
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
102 -----
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
103
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
104 **Input**
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
105
1
simon-gladman
parents: 0
diff changeset
106 - **Choose an input file type** - either 1 BIOM file or 3 TABULAR files (i.e. OTU, Taxonomy and Metadata tables)
simon-gladman
parents: 0
diff changeset
107 - **Select a taxonomic rank for the analysis** - if filtering out low abundance taxa, this is the level of the taxonomy that you want to filter on (e.g. phyla, species)
simon-gladman
parents: 0
diff changeset
108 - **Number of the most abundant taxonomic rank units to keep in the filtered BIOM file** - the number of the most abundant taxonomic rank units specified above to keep (e.g. remove all the most abundant 5 phyla or species)
simon-gladman
parents: 0
diff changeset
109 - **Specify value of X** - if filtering out low abundance OTUs, use this to specify a value of X (where OTUs are removed that do not appear more than X times in more than Y% of the samples)
simon-gladman
parents: 0
diff changeset
110 - **Specify value of Y (where 1.0=100%)** - if filtering out low abundance OTUs use this to specify a value of Y (where OTUs are removed that do not appear more than X times in more than Y% of the samples)
0
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
111
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
112 -----
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
113
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
114 =========
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
115 Resources
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
116 =========
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
117
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
118 **Wrapper Authors**
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
119
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
120 QFAB Bioinformatics (support@qfab.org)
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
121 Melbourne Bioinformatics
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
122 </help>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
123 <citations>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
124 <citation type="doi">10.18129/B9.bioc.phyloseq</citation>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
125 </citations>
910739de7b80 planemo upload commit 555f91999a1164a4420492126fa7713c89e3c5f5-dirty
simon-gladman
parents:
diff changeset
126 </tool>