annotate export2graphlan.xml @ 9:cc25a2f6b1b9 draft

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