annotate plot_single_feature.xml @ 0:e7cd19afda2e draft

Lefse
author george-weingart
date Tue, 13 May 2014 21:57:00 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
george-weingart
parents:
diff changeset
1 <tool id="LEfSe_sfe" name="E) Plot One Feature" version="1.0">
george-weingart
parents:
diff changeset
2 <code file="format_input_selector.py"/>
george-weingart
parents:
diff changeset
3 <description></description>
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>
george-weingart
parents:
diff changeset
5 <inputs>
george-weingart
parents:
diff changeset
6 <page>
george-weingart
parents:
diff changeset
7 <param format="lefse" name="inp_data" type="data" label="The formatted datasets" help=""/>
george-weingart
parents:
diff changeset
8 <param format="lefse_res" name="inp_res" type="data" label="The LEfSe output" help=""/>
george-weingart
parents:
diff changeset
9
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" />
george-weingart
parents:
diff changeset
11
george-weingart
parents:
diff changeset
12 <conditional name="featd" type="data_column" data_ref="inp_res" accept_default="true">
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="">
george-weingart
parents:
diff changeset
14 <option value="b" selected='True'>Biomarkers only</option>
george-weingart
parents:
diff changeset
15 <option value="a">All features</option>
george-weingart
parents:
diff changeset
16 </param>
george-weingart
parents:
diff changeset
17
george-weingart
parents:
diff changeset
18 <when value="b">
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" />
george-weingart
parents:
diff changeset
20 </when>
george-weingart
parents:
diff changeset
21 <when value="a">
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" />
george-weingart
parents:
diff changeset
23 </when>
george-weingart
parents:
diff changeset
24 </conditional>
george-weingart
parents:
diff changeset
25
george-weingart
parents:
diff changeset
26 <conditional name="graphical">
george-weingart
parents:
diff changeset
27 <param name="graphical_choice" type="select" label="Set some graphical options to personalize the output">
george-weingart
parents:
diff changeset
28 <option value="d" selected='True'>Default</option>
george-weingart
parents:
diff changeset
29 <option value="a">Advanced</option>
george-weingart
parents:
diff changeset
30 </param>
george-weingart
parents:
diff changeset
31 <when value="d">
george-weingart
parents:
diff changeset
32 <param name="top" type="hidden" value="-1.0" />
george-weingart
parents:
diff changeset
33 <param name="bot" type="hidden" value="0.0" />
george-weingart
parents:
diff changeset
34 <param name="title_font_size" type="hidden" value="14" />
george-weingart
parents:
diff changeset
35 <param name="class_font_size" type="hidden" value="12" />
george-weingart
parents:
diff changeset
36 <param name="font_size" type="hidden" value="8" />
george-weingart
parents:
diff changeset
37 <param name="width" type="hidden" value="7.0" />
george-weingart
parents:
diff changeset
38 <param name="height" type="hidden" value="4.0" />
george-weingart
parents:
diff changeset
39 <param name="background_color" type="hidden" value="w" />
george-weingart
parents:
diff changeset
40 <param name="width" type="hidden" value="7.0" />
george-weingart
parents:
diff changeset
41 <param name="height" type="hidden" value="4.0" />
george-weingart
parents:
diff changeset
42 <param name="class_label_pos" type="hidden" value="up" />
george-weingart
parents:
diff changeset
43 <param name="subcl_mean" type="hidden" value="y" />
george-weingart
parents:
diff changeset
44 <param name="subcl_median" type="hidden" value="y" />
george-weingart
parents:
diff changeset
45 </when>
george-weingart
parents:
diff changeset
46
george-weingart
parents:
diff changeset
47 <when value="a">
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)"/>
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)"/>
george-weingart
parents:
diff changeset
50 <param name="title_font_size" type="integer" size="2" value="14" label="Title font size"/>
george-weingart
parents:
diff changeset
51 <param name="class_font_size" type="integer" size="2" value="12" label="Class names font size"/>
george-weingart
parents:
diff changeset
52 <param name="font_size" type="integer" size="2" value="8" label="Size of subclasses names and y values"/>
george-weingart
parents:
diff changeset
53 <param name="width" type="float" size="2" value="7.0" label="Width of the plot"/>
george-weingart
parents:
diff changeset
54 <param name="height" type="float" size="2" value="4.0" label="Height of the plot"/>
george-weingart
parents:
diff changeset
55 <param name="background_color" type="select" label="Background color">
george-weingart
parents:
diff changeset
56 <option value="w" selected='True'>White</option>
george-weingart
parents:
diff changeset
57 <option value="k">Black</option>
george-weingart
parents:
diff changeset
58 </param>
george-weingart
parents:
diff changeset
59 <param name="class_label_pos" type="select" label="Class label position ">
george-weingart
parents:
diff changeset
60 <option value="up" selected='True'>Top</option>
george-weingart
parents:
diff changeset
61 <option value="down">Bottom</option>
george-weingart
parents:
diff changeset
62 </param>
george-weingart
parents:
diff changeset
63 <param name="subcl_mean" type="select" label="Plot subclass means (straight line)">
george-weingart
parents:
diff changeset
64 <option value="y" selected='True'>Yes</option>
george-weingart
parents:
diff changeset
65 <option value="n">No</option>
george-weingart
parents:
diff changeset
66 </param>
george-weingart
parents:
diff changeset
67 <param name="subcl_median" type="select" label="Plot subclass medians (dotted line)">
george-weingart
parents:
diff changeset
68 <option value="y" selected='True'>Yes</option>
george-weingart
parents:
diff changeset
69 <option value="n">No</option>
george-weingart
parents:
diff changeset
70 </param>
george-weingart
parents:
diff changeset
71
george-weingart
parents:
diff changeset
72 </when>
george-weingart
parents:
diff changeset
73
george-weingart
parents:
diff changeset
74 </conditional>
george-weingart
parents:
diff changeset
75
george-weingart
parents:
diff changeset
76
george-weingart
parents:
diff changeset
77 <param name="for" type="select" label="Output format">
george-weingart
parents:
diff changeset
78 <option value="png" selected="png">png</option>
george-weingart
parents:
diff changeset
79 <option value="svg">svg</option>
george-weingart
parents:
diff changeset
80 <option value="pdf">pdf</option>
george-weingart
parents:
diff changeset
81 </param>
george-weingart
parents:
diff changeset
82 <param name="dpi" type="select" label="Set the dpi resolution of the output">
george-weingart
parents:
diff changeset
83 <option value="72">72</option>
george-weingart
parents:
diff changeset
84 <option value="150" selected="True">150</option>
george-weingart
parents:
diff changeset
85 <option value="300">300</option>
george-weingart
parents:
diff changeset
86 <option value="600">600</option>
george-weingart
parents:
diff changeset
87 <option value="1200">1200</option>
george-weingart
parents:
diff changeset
88 </param>
george-weingart
parents:
diff changeset
89
george-weingart
parents:
diff changeset
90 </page>
george-weingart
parents:
diff changeset
91 </inputs>
george-weingart
parents:
diff changeset
92 <outputs>
george-weingart
parents:
diff changeset
93 <data format="png" name="arch" >
george-weingart
parents:
diff changeset
94 <change_format>
george-weingart
parents:
diff changeset
95 <when input="for" value="svg" format="svg" />
george-weingart
parents:
diff changeset
96 </change_format>
george-weingart
parents:
diff changeset
97 </data>
george-weingart
parents:
diff changeset
98 </outputs>
george-weingart
parents:
diff changeset
99 <help>
george-weingart
parents:
diff changeset
100 **What it does**
george-weingart
parents:
diff changeset
101
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.
george-weingart
parents:
diff changeset
103
george-weingart
parents:
diff changeset
104 ------
george-weingart
parents:
diff changeset
105
george-weingart
parents:
diff changeset
106 **Input format**
george-weingart
parents:
diff changeset
107
george-weingart
parents:
diff changeset
108 The module accepts two datasets: the data formatted with the "Format Input for
george-weingart
parents:
diff changeset
109 LEfSe" module and the output of the LEfSe analysis. Both datasets are necessary
george-weingart
parents:
diff changeset
110 to run the module.
george-weingart
parents:
diff changeset
111
george-weingart
parents:
diff changeset
112 ------
george-weingart
parents:
diff changeset
113
george-weingart
parents:
diff changeset
114 **Output format**
george-weingart
parents:
diff changeset
115
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.
george-weingart
parents:
diff changeset
117
george-weingart
parents:
diff changeset
118 ------
george-weingart
parents:
diff changeset
119
george-weingart
parents:
diff changeset
120 **Advanced parameter settings**
george-weingart
parents:
diff changeset
121
george-weingart
parents:
diff changeset
122 *Graphical options*
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.
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.
george-weingart
parents:
diff changeset
125 * Title font size: set the font size of the title only.
george-weingart
parents:
diff changeset
126 * Class font size: set the font of the legend for the class names and colors.
george-weingart
parents:
diff changeset
127 * Size of subclasses names and y values: set the fond size for the axis labels.
george-weingart
parents:
diff changeset
128 * Width of the plot: horizontal size (in inches) of the plot.
george-weingart
parents:
diff changeset
129 * Height of the plot: vertical size (in inches) of the plot.
george-weingart
parents:
diff changeset
130 * Background color: whether to generate plots with black or white backgrounds, adjusting properly the other colors.
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.
george-weingart
parents:
diff changeset
132 * Plot subclass means (straight line): whether to plot the subclass means with straight horizontal lines.
george-weingart
parents:
diff changeset
133 * Plot subclass medians (dotted line): whether to plot the subclass medians with dotted horizontal lines.
george-weingart
parents:
diff changeset
134
george-weingart
parents:
diff changeset
135 ------
george-weingart
parents:
diff changeset
136
george-weingart
parents:
diff changeset
137 **Examples**
george-weingart
parents:
diff changeset
138
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:
george-weingart
parents:
diff changeset
140
george-weingart
parents:
diff changeset
141 .. _here: http://www.huttenhower.org/webfm_send/73
george-weingart
parents:
diff changeset
142
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)`_:
george-weingart
parents:
diff changeset
144
george-weingart
parents:
diff changeset
145
george-weingart
parents:
diff changeset
146
george-weingart
parents:
diff changeset
147 .. _(Segata et. al 2011): http://www.ncbi.nlm.nih.gov/pubmed/21702898
george-weingart
parents:
diff changeset
148 .. _(Dinsdale et. al 2008): http://www.ncbi.nlm.nih.gov/pubmed/18337718
george-weingart
parents:
diff changeset
149
george-weingart
parents:
diff changeset
150 </help>
george-weingart
parents:
diff changeset
151 </tool>