annotate home/ubuntu/lefse_to_export/plot_single_feature.xml @ 1:db64b6287cd6 draft

Modified datatypes
author george-weingart
date Wed, 20 Aug 2014 16:56:51 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
1 <tool id="LEfSe_sfe" name="E) Plot One Feature" version="1.0">
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
2 <code file="format_input_selector.py"/>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
3 <description></description>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
4 <command interpreter="python">plot_features.py $inp_data $inp_res $arch --title_font_size $graphical.title_font_size --background_color $graphical.background_color --class_label_pos $graphical.class_label_pos --class_font_size $graphical.class_font_size --top $graphical.top --bot $graphical.bot --font_size $graphical.font_size --width $graphical.width --height $graphical.height -f one --feature_num $featd.feat --archive "none" --format $for --dpi $dpi --subcl_mean $graphical.subcl_mean --subcl_median $graphical.subcl_median </command>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
5 <inputs>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
6 <page>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
7 <param format="lefse_internal_for" name="inp_data" type="data" label="The formatted datasets" help=""/>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
8 <param format="lefse_internal_res" name="inp_res" type="data" label="The LEfSe output" help=""/>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
9
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
10 <param name="featd" type="data_column" data_ref="inp_res" value="1" optional="true" force_select="false" accept_default="false" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
11
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
12 <conditional name="featd" type="data_column" data_ref="inp_res" accept_default="true">
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
13 <param name="feat_dir" type="select" data_ref="inp_res" label="Select the feature names among biomarkers or all features" help="">
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
14 <option value="b" selected='True'>Biomarkers only</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
15 <option value="a">All features</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
16 </param>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
17
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
18 <when value="b">
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
19 <param name="feat" label="Select the feature to plot" data_ref="inp_res" type='select' force_select="false" dynamic_options="get_row_names(inp_res,'b')" value="1" optional="true" accept_default="false" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
20 </when>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
21 <when value="a">
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
22 <param name="feat" label="Select the feature to plot" data_ref="inp_res" type='select' force_select="false" dynamic_options="get_row_names(inp_res,'a')" value="1" optional="true" accept_default="false" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
23 </when>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
24 </conditional>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
25
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
26 <conditional name="graphical">
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
27 <param name="graphical_choice" type="select" label="Set some graphical options to personalize the output">
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
28 <option value="d" selected='True'>Default</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
29 <option value="a">Advanced</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
30 </param>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
31 <when value="d">
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
32 <param name="top" type="hidden" value="-1.0" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
33 <param name="bot" type="hidden" value="0.0" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
34 <param name="title_font_size" type="hidden" value="14" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
35 <param name="class_font_size" type="hidden" value="12" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
36 <param name="font_size" type="hidden" value="8" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
37 <param name="width" type="hidden" value="7.0" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
38 <param name="height" type="hidden" value="4.0" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
39 <param name="background_color" type="hidden" value="w" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
40 <param name="width" type="hidden" value="7.0" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
41 <param name="height" type="hidden" value="4.0" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
42 <param name="class_label_pos" type="hidden" value="up" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
43 <param name="subcl_mean" type="hidden" value="y" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
44 <param name="subcl_median" type="hidden" value="y" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
45 </when>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
46
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
47 <when value="a">
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
48 <param name="top" type="float" size="2" value="-1.0" label="Set the maximum y value (-1.0 means automatic maximum setting based on maximum class median)"/>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
49 <param name="bot" type="float" size="2" value="0.0" label="Set the minimum y value (-1.0 means automatic minimum setting based on minimum class median)"/>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
50 <param name="title_font_size" type="integer" size="2" value="14" label="Title font size"/>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
51 <param name="class_font_size" type="integer" size="2" value="12" label="Class names font size"/>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
52 <param name="font_size" type="integer" size="2" value="8" label="Size of subclasses names and y values"/>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
53 <param name="width" type="float" size="2" value="7.0" label="Width of the plot"/>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
54 <param name="height" type="float" size="2" value="4.0" label="Height of the plot"/>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
55 <param name="background_color" type="select" label="Background color">
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
56 <option value="w" selected='True'>White</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
57 <option value="k">Black</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
58 </param>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
59 <param name="class_label_pos" type="select" label="Class label position ">
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
60 <option value="up" selected='True'>Top</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
61 <option value="down">Bottom</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
62 </param>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
63 <param name="subcl_mean" type="select" label="Plot subclass means (straight line)">
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
64 <option value="y" selected='True'>Yes</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
65 <option value="n">No</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
66 </param>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
67 <param name="subcl_median" type="select" label="Plot subclass medians (dotted line)">
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
68 <option value="y" selected='True'>Yes</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
69 <option value="n">No</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
70 </param>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
71
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
72 </when>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
73
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
74 </conditional>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
75
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
76
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
77 <param name="for" type="select" label="Output format">
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
78 <option value="png" selected="png">png</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
79 <option value="svg">svg</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
80 <option value="pdf">pdf</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
81 </param>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
82 <param name="dpi" type="select" label="Set the dpi resolution of the output">
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
83 <option value="72">72</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
84 <option value="150" selected="True">150</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
85 <option value="300">300</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
86 <option value="600">600</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
87 <option value="1200">1200</option>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
88 </param>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
89
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
90 </page>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
91 </inputs>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
92 <outputs>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
93 <data format="png" name="arch" >
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
94 <change_format>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
95 <when input="for" value="svg" format="svg" />
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
96 </change_format>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
97 </data>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
98 </outputs>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
99 <help>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
100 **What it does**
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
101
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
102 This module plots the raw data of a single feature as an abundance histogram with class and subclass information. You can select the feature to plot among the set of features detected by LEfSe as biomarker or among the full set of features.
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
103
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
104 ------
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
105
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
106 **Input format**
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
107
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
108 The module accepts two datasets: the data formatted with the "Format Input for
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
109 LEfSe" module and the output of the LEfSe analysis. Both datasets are necessary
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
110 to run the module.
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
111
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
112 ------
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
113
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
114 **Output format**
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
115
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
116 The module generates images in png, svg or pdf format. The png format is recommended for exploratory runs as it can be easily visualized internally in Galaxy, whereas the vectorial svg and pdf format are recommended for the final publication-ready image to be downloaded.
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
117
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
118 ------
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
119
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
120 **Advanced parameter settings**
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
121
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
122 *Graphical options*
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
123 * Set the maximum y value: set the maximum value on the y-axis. -1 means automatic parameter setting that is computed as the minimum between the highest abundance value and three times the highest subclass median.
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
124 * Set the minimum y value: -1 means automatic parameter setting that is computed as the maximum between 0 and the 90% of the smallest abundance value.
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
125 * Title font size: set the font size of the title only.
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
126 * Class font size: set the font of the legend for the class names and colors.
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
127 * Size of subclasses names and y values: set the fond size for the axis labels.
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
128 * Width of the plot: horizontal size (in inches) of the plot.
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
129 * Height of the plot: vertical size (in inches) of the plot.
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
130 * Background color: whether to generate plots with black or white backgrounds, adjusting properly the other colors.
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
131 * Class label position: whether to place the class labels on the top or on the bottom of the plot.
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
132 * Plot subclass means (straight line): whether to plot the subclass means with straight horizontal lines.
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
133 * Plot subclass medians (dotted line): whether to plot the subclass medians with dotted horizontal lines.
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
134
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
135 ------
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
136
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
137 **Examples**
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
138
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
139 Selecting the Clostridia clade from the biomarkers detected by LEfSe in the dataset provided here_ and described in the "Introduction", we obtain the following image:
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
140
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
141 .. _here: http://www.huttenhower.org/webfm_send/73
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
142
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
143 Another example, taken from the analysis we detailed in `(Segata et. al 2011)`_ that compares the viral and bacterial microbiomes using metagenomic data from `(Dinsdale et. al 2008)`_:
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
144
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
145
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
146
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
147 .. _(Segata et. al 2011): http://www.ncbi.nlm.nih.gov/pubmed/21702898
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
148 .. _(Dinsdale et. al 2008): http://www.ncbi.nlm.nih.gov/pubmed/18337718
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
149
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
150 </help>
db64b6287cd6 Modified datatypes
george-weingart
parents:
diff changeset
151 </tool>