0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_emperor_biplot" name="qiime emperor biplot" version="2019.4">
|
|
3 <description> - Visualize and Interact with Principal Coordinates Analysis Biplot</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime emperor biplot
|
|
9
|
|
10 --i-biplot=$ibiplot
|
|
11
|
|
12
|
4
|
13 #if $m_sample_metadatafile:
|
|
14 #def list_dict_to_string_sample_mdata(list_dict):
|
0
|
15 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
|
|
16 #for d in list_dict[1:]:
|
4
|
17 #set $file_list = $file_list + ' --m-sample-metadata-file=' + d['additional_input'].__getattr__('file_name')
|
0
|
18 #end for
|
|
19 #return $file_list
|
|
20 #end def
|
4
|
21 --m-sample-metadata-file=$list_dict_to_string_sample_mdata($m_sample_metadatafile)
|
2
|
22 #end if
|
|
23
|
4
|
24
|
|
25
|
|
26 #if $m_feature_metadatafile:
|
|
27 #def list_dict_to_string_feature_mdata(list_dict):
|
|
28 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
|
|
29 #for d in list_dict[1:]:
|
|
30 #set $file_list = $file_list + ' --m-feature-metadata-file=' + d['additional_input'].__getattr__('file_name')
|
|
31 #end for
|
|
32 #return $file_list
|
|
33 #end def
|
|
34 --m-feature-metadata-file=$list_dict_to_string_feature_mdata($m_feature_metadatafile)
|
2
|
35 #end if
|
0
|
36
|
|
37
|
4
|
38
|
0
|
39 #if $pignoremissingsamples:
|
|
40 --p-ignore-missing-samples
|
|
41 #end if
|
|
42
|
6
|
43 #if str($pnumberoffeatures):
|
0
|
44 --p-number-of-features=$pnumberoffeatures
|
|
45 #end if
|
|
46
|
|
47 --o-visualization=ovisualization
|
|
48 ;
|
|
49 qiime tools export --input-path ovisualization.qzv --output-path out && mkdir -p '$ovisualization.files_path'
|
|
50 && cp -r out/* '$ovisualization.files_path'
|
|
51 && mv '$ovisualization.files_path/index.html' '$ovisualization'
|
|
52 ]]></command>
|
|
53 <inputs>
|
|
54 <param format="qza,no_unzip.zip" label="--i-biplot: ARTIFACT PCoAResults % Properties('biplot') The principal coordinates matrix to be plotted. [required]" name="ibiplot" optional="False" type="data"/>
|
|
55 <param label="--p-ignore-missing-samples: --p-no-ignore-missing-samples This will suppress the error raised when the coordinates matrix contains samples that are not present in the metadata. Samples without metadata are included by setting all metadata values to: 'This sample has no metadata'. This flag is only applied if at least one sample is present in both the coordinates matrix and the metadata. [default: False]" name="pignoremissingsamples" selected="False" type="boolean"/>
|
|
56 <param label="--p-number-of-features: INTEGER Range(1, None) The number of most important features (arrows) to display in the ordination. [default: 5]" name="pnumberoffeatures" optional="True" type="integer" min="1" value="5"/>
|
|
57
|
4
|
58 <repeat name="m_sample_metadatafile" optional="False" title="--m-sample-metadata-file [required]">
|
0
|
59 <param label="--m-sample-metadata-file: (multiple arguments will be merged) The sample metadata. [required]" name="additional_input" type="data" format="tabular,qza,no_unzip.zip" />
|
|
60 </repeat>
|
|
61
|
4
|
62 <repeat name="m_feature_metadatafile" optional="True" title="--m-feature-metadata-file">
|
0
|
63 <param label="--m-feature-metadata-file: (multiple arguments will be merged) The feature metadata (useful to manipulate the arrows in the plot). [optional]" name="additional_input" type="data" format="tabular,qza,no_unzip.zip" />
|
|
64 </repeat>
|
|
65
|
|
66 </inputs>
|
|
67 <outputs>
|
|
68 <data format="html" label="${tool.name} on ${on_string}: visualization.qzv" name="ovisualization"/>
|
|
69 </outputs>
|
|
70 <help><![CDATA[
|
|
71 Visualize and Interact with Principal Coordinates Analysis Biplot
|
|
72 #################################################################
|
|
73
|
|
74 Generates an interactive ordination biplot where the user can visually
|
|
75 integrate sample and feature metadata.
|
|
76
|
|
77 Parameters
|
|
78 ----------
|
|
79 biplot : PCoAResults % Properties('biplot')
|
|
80 The principal coordinates matrix to be plotted.
|
|
81 sample_metadata : Metadata
|
|
82 The sample metadata
|
|
83 feature_metadata : Metadata, optional
|
|
84 The feature metadata (useful to manipulate the arrows in the plot).
|
|
85 ignore_missing_samples : Bool, optional
|
|
86 This will suppress the error raised when the coordinates matrix
|
|
87 contains samples that are not present in the metadata. Samples without
|
|
88 metadata are included by setting all metadata values to: "This sample
|
|
89 has no metadata". This flag is only applied if at least one sample is
|
|
90 present in both the coordinates matrix and the metadata.
|
|
91 number_of_features : Int % Range(1, None), optional
|
|
92 The number of most important features (arrows) to display in the
|
|
93 ordination.
|
|
94
|
|
95 Returns
|
|
96 -------
|
|
97 visualization : Visualization
|
|
98 ]]></help>
|
|
99 <macros>
|
|
100 <import>qiime_citation.xml</import>
|
|
101 </macros>
|
|
102 <expand macro="qiime_citation"/>
|
|
103 </tool>
|