0
|
1 <tool id="LEfSe_run" name="B) LDA Effect Size (LEfSe)" version="1.0">
|
|
2 <description></description>
|
|
3 <!-- <command interpreter="python">./run_lefse.py $inp_data $output -l $lda_th -a $kw_alpha -w $w_alpha -e $w_pol -s $mtc -y $multiclass </command> -->
|
|
4 <command interpreter="python">run_lefse.py $inp_data $output -l $lda_th -a $kw_alpha -w $w_alpha -e $w_pol -y $multiclass -f 0.9</command>
|
|
5 <inputs>
|
|
6 <page>
|
|
7 <param format="lefse" name="inp_data" type="data" label="Select data" help=""/>
|
|
8 <param name="kw_alpha" type="float" size="2" value="0.05" label="Alpha value for the factorial Kruskal-Wallis test among classes"/>
|
|
9 <param name="w_alpha" type="float" size="2" value="0.05" label="Alpha value for the pairwise Wilcoxon test between subclasses"/>
|
|
10 <param name="lda_th" type="float" size="2" value="2.0" label="Threshold on the logarithmic LDA score for discriminative features"/>
|
|
11 <param name="w_pol" type="select" label="Do you want the pairwise comparisons among subclasses to be performed only among the subclasses with the same name?" help="">
|
|
12 <option value="0" selected="0">No</option>
|
|
13 <option value="1">Yes</option>
|
|
14 </param>
|
|
15 <!-- <param name="mtc" type="select" label="Set the multiple testing correction (no correction recommended) (to check the parameter passing here)" help="">
|
|
16 <option value="0" selected="0">No correction</option>
|
|
17 <option value="1">Correction for independent comparisons</option>
|
|
18 <option value="2">Correction for dependent comparisons</option>
|
|
19 </param> -->
|
|
20 <param name="multiclass" type="select" label="Set the strategy for multi-class analysis" help="">
|
|
21 <option value="1" selected="True">All-against-all (more strict)</option>
|
|
22 <option value="0">One-against-all (less strict)</option>
|
|
23 </param>
|
|
24 </page>
|
|
25 </inputs>
|
|
26 <outputs>
|
|
27 <data format="lefse_res" name="output" />
|
|
28 </outputs>
|
|
29 <tests>
|
|
30 <test>
|
|
31 <param name="input1" value="13.bed" dbkey="hg18" ftype="bed"/>
|
|
32 <param name="maf_source" value="cached"/>
|
|
33 <param name="maf_identifier" value="17_WAY_MULTIZ_hg18"/>
|
|
34 <param name="species" value="hg18,mm8"/>
|
|
35 <param name="overwrite_with_gaps" value="True"/>
|
|
36 <output name="out_file1" file="interval_maf_to_merged_fasta_out3.fasta" />
|
|
37 </test>
|
|
38 <test>
|
|
39 <param name="input1" value="1.bed" dbkey="hg17" ftype="bed"/>
|
|
40 <param name="maf_source" value="cached"/>
|
|
41 <param name="maf_identifier" value="8_WAY_MULTIZ_hg17"/>
|
|
42 <param name="species" value="canFam1,hg17,mm5,panTro1,rn3"/>
|
|
43 <param name="overwrite_with_gaps" value="True"/>
|
|
44 <output name="out_file1" file="interval_maf_to_merged_fasta_out.dat" />
|
|
45 </test>
|
|
46 <test>
|
|
47 <param name="input1" value="1.bed" dbkey="hg17" ftype="bed"/>
|
|
48 <param name="maf_source" value="user"/>
|
|
49 <param name="maf_file" value="5.maf"/>
|
|
50 <param name="species" value="canFam1,hg17,mm5,panTro1,rn3"/>
|
|
51 <param name="overwrite_with_gaps" value="True"/>
|
|
52 <output name="out_file1" file="interval_maf_to_merged_fasta_user_out.dat" />
|
|
53 </test>
|
|
54 </tests>
|
|
55 <help>
|
|
56 **What it does**
|
|
57
|
|
58 Lda Effective Size (LEfSe) is a biomarker discovery and explanation tool for high-dimensional data. It couples statistical significance with biological consistency and effect size estimation. For an overview of LEfSe please refer to the "Introduction" module or to `(Segata et. al 2011)`_.
|
|
59
|
|
60 The scheme and the description below illustrates how the algorithm works:
|
|
61
|
|
62 .. image:: https://bytebucket.org/biobakery/galaxy_lefse/wiki/lefse_met.png
|
|
63
|
|
64 Input data consist of a collection of m samples (columns) each made up of n numerical features (rows, typically normalized per-sample, red representing high values and green low). These samples are labeled with a class (taking two or more possible values) that represents the main biological hypothesis under investigation; they may also have one or more subclass labels reflecting within-class groupings.
|
|
65
|
|
66 - Step 1: the Kruskall-Wallis test analyzes all features, testing whether the values in different classes are differentially distributed. Features violating the null hypothesis are further analyzed in Step 2.
|
|
67
|
|
68 - Step 2: the pairwise Wilcoxon test checks whether all pairwise comparisons between subclasses within different classes significantly agree with the class level trend.
|
|
69
|
|
70 - Step 3: the resulting subset of vectors is used to build a Linear Discriminant Analysis model from which the relative difference among classes is used to rank the features. The final output thus consists of a list of features that are discriminative with respect to the classes, consistent with the subclass grouping within classes, and ranked according to the effect size with which they differentiate classes.
|
|
71
|
|
72 **Input format**
|
|
73
|
|
74 The input for this module must be generated with the **"Format Input for LEfSe"** tool.
|
|
75
|
|
76 ------
|
|
77
|
|
78 **Output format**
|
|
79
|
|
80 The output consists of a tabular file listing all the features, the logarithm value of the highest mean among all the classes, and if the feature is discriminative, the class with the highest mean and the logarithmic LDA score.
|
|
81
|
|
82 The output file can be conveniently visualized with the "Plot LEfSe Results" module and, if feature names define a hierarchy, with the "Plot Cladogram" module. The output can also be used for generating the histograms of the raw data of the discriminative features using the "Plot Differential Features" module.
|
|
83
|
|
84 ------
|
|
85
|
|
86 **Parameters**
|
|
87
|
|
88 The input parameters are the alpha-values for the factorial Kruskal-Wallis test and for the pairwise Wilcoxon test among subclasses (steps 1 and 2 in the schematic picture above) and the non-negative threshold for the logarithmic LDA score. Moreover, the user can decide the pairwise Wilcoxon test to be applied only among subclasses in different classes with the same name (less stringent) and select the multi-class strategy to be the All-against-all (more stringent) or the One-against-all (less stringent).
|
|
89
|
|
90 .. _here: http://www.huttenhower.org/webfm_send/73
|
|
91 .. _(Segata et. al 2011): http://www.ncbi.nlm.nih.gov/pubmed/21702898
|
|
92 .. _(Garrett et. al 2010): http://www.ncbi.nlm.nih.gov/pubmed/20833380
|
|
93 .. _(Veiga et. al 2010): http://www.ncbi.nlm.nih.gov/pubmed/20921388
|
|
94 .. _contact us: nsegata@hsph.harvard.edu
|
|
95
|
|
96 **Example**
|
|
97
|
|
98 For the mouse model dataset (see the "Introduction" module) it is suggested to use alpha=0.01 as the sample size is not very large.
|
|
99
|
|
100 </help>
|
|
101 </tool>
|