0
|
1 <tool id="export2graphlan" name="export2graphlan" version="1.0.0">
|
|
2 <description>Export to Graphlan</description>
|
|
3 <command interpreter="python">
|
|
4 export2graphlan.py
|
|
5 -i $inp_data
|
|
6 -o $out_data
|
|
7 -t $output_tree_file
|
|
8 -a $output_annot_file
|
|
9 --title $export_title
|
|
10 --annotations $export_annotations
|
|
11 --external_annotations $export_external_annotations
|
14
|
12 --background_levels $background_levels
|
|
13 --background_clades $background_clades
|
0
|
14 --skip_rows 1,2
|
|
15 </command>
|
|
16
|
|
17 <inputs>
|
|
18 <param format="tabular" name="inp_data" type="data" label="Input used to run Lefse - See samples below - Please use Galaxy Get-Data/Upload-File. Use File-Type = Tabular" help="This is the file that was used as input for Lefse"/>
|
|
19 <param format="lefse_res" name="out_data" type="data" label="Output of Lefse" help="This is the Lefse output file"/>
|
14
|
20 <param name="export_title" type="text" format="text" label="Title" value="Title"/>
|
|
21 <param name="export_annotations" type="text" format="text" label="Annotations" value="2,3"/>
|
|
22 <param name="export_external_annotations" type="text" format="text" label="External Annotations" value="4,5,6"/>
|
|
23 <param name="background_levels" type="text" format="text" label="Background Levels" value="1,2,3"/>
|
15
|
24 <param name="background_clades" type="text" format="text" label="Background Clades" value=" " />
|
14
|
25
|
|
26
|
0
|
27 </inputs>
|
|
28 <outputs>
|
|
29 <data name="output_annot_file" format="circl" />
|
|
30 <data name="output_tree_file" format="circl" />
|
|
31 </outputs>
|
|
32
|
|
33 <help>
|
|
34 Overview
|
|
35 ========
|
1
|
36 **export2graphlan** is an *OPTIONAL* tool that automatically convert **LEfSe**, **MetaPhlAn2**, and **HUMAnN** input and/or output files, to **GraPhlAn**. Input file can be also given in BIOM (both 1 and 2) format.
|
0
|
37
|
1
|
38 The aim of this tool is to support biologists, helping them by provide the tree and the annotation file for GraPhlAn, automatically.
|
|
39
|
|
40 Input files
|
|
41 -----------
|
|
42
|
|
43 As shown in the image below, export2graphlan can work with just one of the following files or with both of them.
|
|
44
|
|
45 * **Result of MetaPhlAn or HUMAnN analysis**: As depicted in the image below, this file can be the result of a MetaPhlAn analysis or a HUMAnN analysis. Generally, it is a tab separated file that have for each row a taxonomy and an abundance value.
|
|
46
|
|
47 * **Output of LEfSe**: This file is the result of LEfSe execute on the *Result of MetaPhlAn or HUMAnN analysis* file. This file allow GraPhlAn to highlight for you the found biomarkers.
|
|
48
|
14
|
49 Input parameters9999
|
4
|
50 --------------------
|
3
|
51
|
4
|
52 --annotations ANNOTATIONS
|
1
|
53 List which levels should be annotated in the tree. Use
|
|
54 a comma separate values form, e.g.,
|
|
55 --annotation_levels 1,2,3. Default is None
|
4
|
56 --external_annotations EXTERNAL_ANNOTATIONS
|
1
|
57 List which levels should use the external legend for
|
|
58 the annotation. Use a comma separate values form,
|
|
59 e.g., --annotation_levels 1,2,3. Default is None
|
|
60 --background_levels BACKGROUND_LEVELS
|
|
61 List which levels should be highlight with a shaded
|
|
62 background. Use a comma separate values form, e.g.,
|
|
63 --background_levels 1,2,3
|
|
64 --background_clades BACKGROUND_CLADES
|
|
65 Specify the clades that should be highlight with a
|
|
66 shaded background. Use a comma separate values form
|
|
67 and surround the string with " if it contains spaces.
|
|
68 Example: --background_clades "Bacteria.Actinobacteria,
|
|
69 Bacteria.Bacteroidetes.Bacteroidia,
|
|
70 Bacteria.Firmicutes.Clostridia.Clostridiales"
|
|
71 --background_colors BACKGROUND_COLORS
|
|
72 Set the color to use for the shaded background. Colors
|
|
73 can be either in RGB or HSV (using a semi-colon to
|
|
74 separate values, surrounded with ()) format. Use a
|
|
75 comma separate values form and surround the string
|
|
76 with " if it contains spaces. Example:
|
|
77 --background_colors "#29cc36, (150; 100; 100), (280;
|
|
78 80; 88)"
|
|
79 --title TITLE If specified set the title of the GraPhlAn plot.
|
|
80 Surround the string with " if it contains spaces,
|
|
81 e.g., --title "Title example"
|
|
82 --title_font_size TITLE_FONT_SIZE
|
|
83 Set the title font size. Default is 15
|
|
84 --def_clade_size DEF_CLADE_SIZE
|
|
85 Set a default size for clades that are not found as
|
|
86 biomarkers by LEfSe. Default is 10
|
|
87 --min_clade_size MIN_CLADE_SIZE
|
|
88 Set the minimum value of clades that are biomarkers.
|
|
89 Default is 20
|
|
90 --max_clade_size MAX_CLADE_SIZE
|
|
91 Set the maximum value of clades that are biomarkers.
|
|
92 Default is 200
|
|
93 --def_font_size DEF_FONT_SIZE
|
|
94 Set a default font size. Default is 10
|
|
95 --min_font_size MIN_FONT_SIZE
|
|
96 Set the minimum font size to use. Default is 8
|
|
97 --max_font_size MAX_FONT_SIZE
|
|
98 Set the maximum font size. Default is 12
|
|
99 --annotation_legend_font_size ANNOTATION_LEGEND_FONT_SIZE
|
|
100 Set the font size for the annotation legend. Default
|
|
101 is 10
|
|
102 --abundance_threshold ABUNDANCE_THRESHOLD
|
|
103 Set the minimun abundace value for a clade to be
|
|
104 annotated. Default is 20.0
|
|
105 --most_abundant MOST_ABUNDANT
|
|
106 When only lefse_input is provided, you can specify how
|
|
107 many clades highlight. Since the biomarkers are
|
|
108 missing, they will be chosen from the most abundant
|
|
109 --least_biomarkers LEAST_BIOMARKERS
|
|
110 When only lefse_input is provided, you can specify the
|
|
111 minimum number of biomarkers to extract. The taxonomy
|
|
112 is parsed, and the level is choosen in order to have
|
|
113 at least the specified number of biomarkers
|
|
114 --discard_otus If specified the OTU ids will be discarde from the
|
|
115 taxonmy. Default behavior keep OTU ids in taxonomy
|
|
116 --internal_levels If specified sum-up from leaf to root the abundances
|
|
117 values. Default behavior do not sum-up abundances on
|
|
118 the internal nodes
|
|
119
|
|
120 input parameters:
|
6
|
121 You need to provide at least LEfSe input data
|
3
|
122 -i LEFSE_INPUT, --lefse_input LEFSE_INPUT
|
6
|
123
|
1
|
124 -o LEFSE_OUTPUT, --lefse_output LEFSE_OUTPUT
|
|
125
|
|
126 output parameters:
|
13
|
127
|
1
|
128 -t TREE, --tree TREE Output filename where save the input tree for GraPhlAn
|
13
|
129
|
9
|
130 -a ANNOTATION, --annotation ANNOTATION : This is the Output filename where to save GraPhlAn annotation
|
7
|
131
|
1
|
132 Input data matrix parameters:
|
|
133 --sep SEP
|
9
|
134 --out_table OUT_TABLE : This is where to write the processed data matrix to file
|
12
|
135
|
11
|
136 --fname_row FNAME_ROW : Row number containing the names of the features (default 0, specify -1 if no names are present in the matrix)
|
12
|
137
|
1
|
138 --sname_row SNAME_ROW
|
11
|
139 column number containing the names of the samples (default 0, specify -1 if no names are present in the matrix)
|
1
|
140 --metadata_rows METADATA_ROWS
|
|
141 Row numbers to use as metadata[default None, meaning
|
|
142 no metadata
|
|
143 --skip_rows SKIP_ROWS
|
|
144 Row numbers to skip (0-indexed, comma separated) from
|
|
145 the input file[default None, meaning no rows skipped
|
|
146 --sperc SPERC Percentile of sample value distribution for sample
|
|
147 selection
|
|
148 --fperc FPERC Percentile of feature value distribution for sample
|
|
149 selection
|
|
150 --stop STOP Number of top samples to select (ordering based on
|
|
151 percentile specified by --sperc)
|
|
152 --ftop FTOP Number of top features to select (ordering based on
|
|
153 percentile specified by --fperc)
|
|
154 --def_na DEF_NA Set the default value for missing values [default None
|
|
155 which means no replacement]
|
|
156
|
|
157 Integration
|
|
158 ===========
|
|
159
|
|
160 A graphical representation of how **export2graphlan** can be integrated in the analysis pipeline:
|
0
|
161
|
|
162 .. image:: https://bitbucket.org/repo/oL6bEG/images/3364692296-graphlan_integration.png
|
1
|
163 :height: 672
|
|
164 :width: 800
|
0
|
165
|
1
|
166 Want to know more?
|
|
167 ==================
|
0
|
168
|
2
|
169 If you want to know more about **export2graphlan** please have a look at the tutorial
|
0
|
170 </help>
|
|
171 </tool>
|