annotate qiime2/qiime_taxa_barplot.xml @ 6:de4c22a52df4 draft

Fixes
author florianbegusch
date Tue, 13 Aug 2019 07:46:48 -0400
parents 914fa4daf16a
children f190567fe3f6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
1 <?xml version="1.0" ?>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
2 <tool id="qiime_taxa_barplot" name="qiime taxa barplot" version="2019.4">
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
3 <description> - Visualize taxonomy with an interactive bar plot</description>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
4 <requirements>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
5 <requirement type="package" version="2019.4">qiime2</requirement>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
6 </requirements>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
7 <command><![CDATA[
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
8 qiime taxa barplot
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
9
6
florianbegusch
parents: 4
diff changeset
10
florianbegusch
parents: 4
diff changeset
11 #if str( $id_to_taxonomy_fp.selector ) == 'history'
florianbegusch
parents: 4
diff changeset
12 #set $tax = $id_to_taxonomy_fp.taxonomy_fp
florianbegusch
parents: 4
diff changeset
13 --i-taxonomy '$tax'
florianbegusch
parents: 4
diff changeset
14 #else:
florianbegusch
parents: 4
diff changeset
15 #set $tax = $id_to_taxonomy_fp.taxonomy_fp.fields.path
florianbegusch
parents: 4
diff changeset
16 --i-taxonomy '$tax'
florianbegusch
parents: 4
diff changeset
17 #end if
florianbegusch
parents: 4
diff changeset
18
florianbegusch
parents: 4
diff changeset
19
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
20 --i-table=$itable
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
21
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
22 #if $input_files_mmetadatafile:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
23 #def list_dict_to_string(list_dict):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
24 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
25 #for d in list_dict[1:]:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
26 #set $file_list = $file_list + ' --m-metadata-file=' + d['additional_input'].__getattr__('file_name')
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
27 #end for
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
28 #return $file_list
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
29 #end def
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
30 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile)
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
31 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
32
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
33 --o-visualization=ovisualization
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
34 ;
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
35 qiime tools export --input-path ovisualization.qzv --output-path out && mkdir -p '$ovisualization.files_path'
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
36 && cp -r out/* '$ovisualization.files_path'
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
37 && mv '$ovisualization.files_path/index.html' '$ovisualization';
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
38 ]]></command>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
39 <inputs>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
40
6
florianbegusch
parents: 4
diff changeset
41 <conditional name="id_to_taxonomy_fp" optional="True">
florianbegusch
parents: 4
diff changeset
42 <param name="selector" type="select" label="Reference taxonomy to query">
florianbegusch
parents: 4
diff changeset
43 <option value="cached">Public databases</option>
florianbegusch
parents: 4
diff changeset
44 <option value="history">Databases from your history</option>
florianbegusch
parents: 4
diff changeset
45 </param>
florianbegusch
parents: 4
diff changeset
46 <when value="cached">
florianbegusch
parents: 4
diff changeset
47 <param argument="--taxonomy_fp" label="Reference taxonomy" type="select" optional="True">
florianbegusch
parents: 4
diff changeset
48 <options from_data_table="qiime_taxonomy" />
florianbegusch
parents: 4
diff changeset
49 </param>
florianbegusch
parents: 4
diff changeset
50 </when>
florianbegusch
parents: 4
diff changeset
51 <when value="history">
florianbegusch
parents: 4
diff changeset
52 <param argument="--taxonomy_fp" type="data" format="qza,no_unzip.zip" label="Reference databases" optional="True" />
florianbegusch
parents: 4
diff changeset
53 </when>
florianbegusch
parents: 4
diff changeset
54 </conditional>
florianbegusch
parents: 4
diff changeset
55
florianbegusch
parents: 4
diff changeset
56
florianbegusch
parents: 4
diff changeset
57 <param format="qza,no_unzip.zip" label="--i-table: ARTIFACT FeatureTable[Frequency] Feature table to visualize at various taxonomic levels. [required]" name="itable" optional="False" type="data"/>
florianbegusch
parents: 4
diff changeset
58
florianbegusch
parents: 4
diff changeset
59 <repeat name="input_files_mmetadatafile" optional="False" title="--m-metadata-file [required]">
florianbegusch
parents: 4
diff changeset
60 <param label="--m-metadata-file: Metadata file or artifact viewable as metadata. This option may be supplied multiple times to merge metadata. [optional]" name="additional_input" type="data" format="tabular,qza,no_unzip.zip" optional="False" />
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
61 </repeat>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
62
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
63 </inputs>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
64 <outputs>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
65 <data format="html" label="${tool.name} on ${on_string}: visualization.qzv" name="ovisualization"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
66 </outputs>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
67 <help><![CDATA[
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
68 Visualize taxonomy with an interactive bar plot
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
69 ###############################################
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
70
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
71 This visualizer produces an interactive barplot visualization of
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
72 taxonomies. Interactive features include multi-level sorting, plot
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
73 recoloring, sample relabeling, and SVG figure export.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
74
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
75 Parameters
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
76 ----------
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
77 table : FeatureTable[Frequency]
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
78 Feature table to visualize at various taxonomic levels.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
79 taxonomy : FeatureData[Taxonomy]
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
80 Taxonomic annotations for features in the provided feature table. All
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
81 features in the feature table must have a corresponding taxonomic
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
82 annotation. Taxonomic annotations that are not present in the feature
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
83 table will be ignored.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
84 metadata : Metadata
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
85 The sample metadata.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
86
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
87 Returns
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
88 -------
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
89 visualization : Visualization
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
90 ]]></help>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
91 <macros>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
92 <import>qiime_citation.xml</import>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
93 </macros>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
94 <expand macro="qiime_citation"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
95 </tool>