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