1
|
1 <tool id="LEfSe_res" name="C) Plot LEfSe Results" version="1.0">
|
|
2 <description></description>
|
|
3 <command interpreter="python">./plot_res.py $inp_data $res --title "$textm.title" --subclades $textm.subclades --title_font_size $textm.title_font_size --max_feature_len $textm.max_f_len --feature_font_size $textm.feature_font_size --class_legend_font_size $textm.class_legend_font_size --width $graphical.width --format $for --dpi $dpi --left_space $graphical.left_space_prop --right_space $graphical.right_space_prop --background_color $graphical.background_color</command>
|
|
4 <inputs>
|
|
5 <page>
|
|
6 <param format="lefse_internal_res" name="inp_data" type="data" label="Select data" help=""/>
|
|
7
|
|
8 <conditional name="textm">
|
|
9 <param name="text_choice" type="select" label="Set text and label options (font size, abbreviations, ...)" help="">
|
|
10 <option value="d" selected='True'>Default</option>
|
|
11 <option value="a">Advanced</option>
|
|
12 </param>
|
|
13 <when value="d">
|
|
14 <param name="title" type="hidden" value=""/>
|
|
15 <param name="title_font_size" type="hidden" value="14"/>
|
|
16 <param name="feature_font_size" type="hidden" value="7" />
|
|
17 <param name="class_legend_font_size" type="hidden" value="10" />
|
|
18 <param name="subclades" type="hidden" value="1" />
|
|
19 <param name="max_f_len" type="hidden" value="60" />
|
|
20 </when>
|
|
21 <when value="a">
|
|
22 <param name="title" type="text" size="10" value="" label="The title of the cladogram"/>
|
|
23 <param name="subclades" type="integer" size="2" value="1" label="Number of label levels to be displayed (-1 means all)"/>
|
|
24 <param name="max_f_len" type="integer" size="2" value="60" label="Maximum length of feature names "/>
|
|
25 <param name="title_font_size" type="integer" size="2" value="14" label="Title font size"/>
|
|
26 <param name="feature_font_size" type="integer" size="2" value="7" label="Label font size"/>
|
|
27 <param name="class_legend_font_size" type="integer" size="2" value="10" label="Class font size"/>
|
|
28 </when>
|
|
29 </conditional>
|
|
30
|
|
31 <conditional name="graphical">
|
|
32 <param name="text_choice" type="select" label="Set some graphical options to personalize the output" help="">
|
|
33 <option value="d" selected='True'>Default</option>
|
|
34 <option value="a">Advanced</option>
|
|
35 </param>
|
|
36 <when value="d">
|
|
37 <param name="width" type="hidden" value="7.0" />
|
|
38 <param name="left_space_prop" type="hidden" value="0.2" />
|
|
39 <param name="right_space_prop" type="hidden" value="0.1" />
|
|
40 <param name="background_color" type="hidden" value="w"/>
|
|
41 </when>
|
|
42 <when value="a">
|
|
43 <param name="width" type="float" size="2" value="7.0" label="Width of the plot"/>
|
|
44 <param name="left_space_prop" type="float" size="2" value="0.2" label="Fraction of the total width to be reserved for the space at the left of the plot "/>
|
|
45 <param name="right_space_prop" type="float" size="2" value="0.1" label="Fraction of the total width to be reserved for the space at the right of the plot "/>
|
|
46 <param name="background_color" type="select" label="Whether to optimize the colors for a white or black background">
|
|
47 <option value="w" selected='True'>White</option>
|
|
48 <option value="k">Black</option>
|
|
49 </param>
|
|
50
|
|
51 </when>
|
|
52 </conditional>
|
|
53
|
|
54
|
|
55
|
|
56 <param name="for" type="select" label="Output format">
|
|
57 <option value="png" selected="png">png</option>
|
|
58 <option value="svg">svg</option>
|
|
59 <option value="pdf">pdf</option>
|
|
60 </param>
|
|
61 <param name="dpi" type="select" label="Set the dpi resolution of the output">
|
|
62 <option value="72">72</option>
|
|
63 <option value="150" selected="True">150</option>
|
|
64 <option value="300">300</option>
|
|
65 <option value="600">600</option>
|
|
66 <option value="1200">1200</option>
|
|
67 </param>
|
|
68
|
|
69 </page>
|
|
70 </inputs>
|
|
71 <outputs>
|
|
72 <data format="png" name="res" >
|
|
73 <change_format>
|
|
74 <when input="for" value="svg" format="svg" />
|
|
75 </change_format>
|
|
76 </data>
|
|
77 </outputs>
|
|
78 <tests>
|
|
79 <test>
|
|
80 <param name="input1" value="13.bed" dbkey="hg18" ftype="bed"/>
|
|
81 <param name="maf_source" value="cached"/>
|
|
82 <param name="maf_identifier" value="17_WAY_MULTIZ_hg18"/>
|
|
83 <param name="species" value="hg18,mm8"/>
|
|
84 <param name="overwrite_with_gaps" value="True"/>
|
|
85 <output name="out_file1" file="interval_maf_to_merged_fasta_out3.fasta" />
|
|
86 </test>
|
|
87 <test>
|
|
88 <param name="input1" value="1.bed" dbkey="hg17" ftype="bed"/>
|
|
89 <param name="maf_source" value="cached"/>
|
|
90 <param name="maf_identifier" value="8_WAY_MULTIZ_hg17"/>
|
|
91 <param name="species" value="canFam1,hg17,mm5,panTro1,rn3"/>
|
|
92 <param name="overwrite_with_gaps" value="True"/>
|
|
93 <output name="out_file1" file="interval_maf_to_merged_fasta_out.dat" />
|
|
94 </test>
|
|
95 <test>
|
|
96 <param name="input1" value="1.bed" dbkey="hg17" ftype="bed"/>
|
|
97 <param name="maf_source" value="user"/>
|
|
98 <param name="maf_file" value="5.maf"/>
|
|
99 <param name="species" value="canFam1,hg17,mm5,panTro1,rn3"/>
|
|
100 <param name="overwrite_with_gaps" value="True"/>
|
|
101 <output name="out_file1" file="interval_maf_to_merged_fasta_user_out.dat" />
|
|
102 </test>
|
|
103 </tests>
|
|
104 <help>
|
|
105 **What it does**
|
|
106
|
|
107 This module plots the biomarkers found by LEfSe ranking them accordingly to their effect size and associating them with the class with the highest median.
|
|
108
|
|
109 ------
|
|
110
|
|
111 **Input format**
|
|
112
|
|
113 The module accepts the output of the LEfSe module (B) only.
|
|
114
|
|
115 ------
|
|
116
|
|
117 **Output format**
|
|
118
|
|
119 The module generate 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 formats are recommended for the final publication-ready image to be downloaded.
|
|
120
|
|
121 ------
|
|
122
|
|
123 **Parameters**
|
|
124
|
|
125 In addition to the output format and the dpi resolution two sets of parameters can be tuned: text and label options for regulating the plot annotation and graphical options for personalizing the appearance of the plot. The default settings of the parameters should give satisfactory outputs in the great majority of the cases.
|
|
126
|
|
127 **Advanced parameter settings**
|
|
128
|
|
129 *Text and label options*
|
|
130 * The title of the cladogram: optional title for the plot (default is no title).
|
|
131 * Number of label levels to be displayed: when dealing with hierarchical features this option sets the level to be displayed in the labels (-1 means the last level only, 1 means the highest level, 2 means the first two levels and so on).
|
|
132 * Maximum length of feature names: set the length of the feature names above which the names will be abbreviated (in the middle of the string).
|
|
133 * Title font size: set the font size of the title only.
|
|
134 * Label font size: set the font size of the labels (and of the label legend) used in the cladogram to denote taxa.
|
|
135 * Class font size: set the font of the legend for the class names and colors.
|
|
136 *Graphical options*
|
|
137 * Width of the plot: set the inches for the width of the plot (the height is automatically set based on the number of biomarkers to be displayed).
|
|
138 * Fraction of the total width to be reserved for the space at the left of the plot: this option permits the user to enlarge the space on the left of the plot for the cases in which the feature labels are long and need more space.
|
|
139 * Fraction of the total width to be reserved for the space at the right of the plot: this option permits the user to enlarge the space on the right of the plot for the cases in which the feature labels are long and need more space.
|
|
140 * Whether to optimize the colors for a white or black background: this option permits the user to generate output plots with black backgrounds, adjusting properly the colors of the cladogram.
|
|
141
|
|
142
|
|
143 ------
|
|
144
|
|
145 **Example**
|
|
146
|
|
147 The dataset provided here_ and described in the "Introduction" module produces the following image (alpha values of LEfSe - step B - are set to 0.01)
|
|
148
|
|
149 .. image:: ../galaxy/static/images/plot_res_ex.png
|
|
150 .. _here: http://www.huttenhower.org/webfm_send/73
|
|
151
|
|
152
|
|
153
|
|
154
|
|
155 </help>
|
|
156 </tool>
|