0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_emperor_procrustes-plot" name="qiime emperor procrustes-plot" version="2019.4">
|
|
3 <description> - Visualize and Interact with a procrustes plot</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime emperor procrustes-plot
|
|
9
|
|
10 --i-reference-pcoa=$ireferencepcoa
|
4
|
11
|
0
|
12 --i-other-pcoa=$iotherpcoa
|
|
13
|
|
14
|
|
15 #if $input_files_mmetadatafile:
|
|
16 #def list_dict_to_string(list_dict):
|
|
17 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
|
|
18 #for d in list_dict[1:]:
|
|
19 #set $file_list = $file_list + ' --m-metadata-file=' + d['additional_input'].__getattr__('file_name')
|
|
20 #end for
|
|
21 #return $file_list
|
|
22 #end def
|
|
23 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile)
|
|
24 #end if
|
|
25
|
|
26
|
|
27
|
4
|
28 #if '__sq__' in str($pcustomaxes):
|
|
29 #set $pcustomaxes_temp = $pcustomaxes.replace('__sq__', "'")
|
|
30 #set $pcustomaxes = $pcustomaxes_temp
|
|
31 #end if
|
|
32
|
|
33 #if '__cb__' in str($pcustomaxes):
|
|
34 #set $pcustomaxes_temp = $pcustomaxes.replace('__cb__', "]")
|
|
35 #set $pcustomaxes = $pcustomaxes_temp
|
|
36 #end if
|
|
37
|
0
|
38 #if str($pcustomaxes):
|
|
39 --p-custom-axes="$pcustomaxes"
|
|
40 #end if
|
|
41
|
4
|
42
|
|
43
|
|
44
|
0
|
45 #if $pignoremissingsamples:
|
|
46 --p-ignore-missing-samples
|
|
47 #end if
|
|
48
|
|
49 --o-visualization=ovisualization
|
|
50 ;
|
|
51 qiime tools export --input-path ovisualization.qzv --output-path out && mkdir -p '$ovisualization.files_path'
|
|
52 && cp -r out/* '$ovisualization.files_path'
|
|
53 && mv '$ovisualization.files_path/index.html' '$ovisualization'
|
|
54 ]]></command>
|
|
55 <inputs>
|
|
56 <param format="qza,no_unzip.zip" label="--i-reference-pcoa: ARTIFACT PCoAResults The reference ordination matrix to be plotted. [required]" name="ireferencepcoa" optional="False" type="data"/>
|
|
57 <param format="qza,no_unzip.zip" label="--i-other-pcoa: ARTIFACT PCoAResults The 'other' ordination matrix to be plotted (the one that was fitted to the reference). [required]" name="iotherpcoa" optional="False" type="data"/>
|
|
58 <param label="--p-custom-axes: TEXT... List[Str] Numeric sample metadata columns that should be included as axes in the Emperor plot. [optional]" name="pcustomaxes" optional="True" type="text"/>
|
|
59 <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"/>
|
|
60
|
4
|
61 <repeat name="input_files_mmetadatafile" optional="True" title="--m-metadata-file [required]">
|
0
|
62 <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" />
|
|
63 </repeat>
|
|
64
|
|
65 </inputs>
|
|
66 <outputs>
|
|
67 <data format="html" label="${tool.name} on ${on_string}: visualization.qzv" name="ovisualization"/>
|
|
68 </outputs>
|
|
69 <help><![CDATA[
|
|
70 Visualize and Interact with a procrustes plot
|
|
71 #############################################
|
|
72
|
|
73 Plot two procrustes-fitted matrices
|
|
74
|
|
75 Parameters
|
|
76 ----------
|
|
77 reference_pcoa : PCoAResults
|
|
78 The reference ordination matrix to be plotted.
|
|
79 other_pcoa : PCoAResults
|
|
80 The "other" ordination matrix to be plotted (the one that was fitted to
|
|
81 the reference).
|
|
82 metadata : Metadata
|
|
83 The sample metadata.
|
|
84 custom_axes : List[Str], optional
|
|
85 Numeric sample metadata columns that should be included as axes in the
|
|
86 Emperor plot.
|
|
87 ignore_missing_samples : Bool, optional
|
|
88 This will suppress the error raised when the coordinates matrix
|
|
89 contains samples that are not present in the metadata. Samples without
|
|
90 metadata are included by setting all metadata values to: "This sample
|
|
91 has no metadata". This flag is only applied if at least one sample is
|
|
92 present in both the coordinates matrix and the metadata.
|
|
93
|
|
94 Returns
|
|
95 -------
|
|
96 visualization : Visualization
|
|
97 ]]></help>
|
|
98 <macros>
|
|
99 <import>qiime_citation.xml</import>
|
|
100 </macros>
|
|
101 <expand macro="qiime_citation"/>
|
|
102 </tool>
|