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