0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_metadata_tabulate" name="qiime metadata tabulate" version="2019.4">
|
|
3 <description> - Interactively explore Metadata in an HTML table</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime metadata tabulate
|
|
9
|
|
10
|
3
|
11 #if $input_files_minputfile:
|
0
|
12 #def list_dict_to_string(list_dict):
|
|
13 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
|
|
14 #for d in list_dict[1:]:
|
|
15 #set $file_list = $file_list + ' --m-input-file=' + d['additional_input'].__getattr__('file_name')
|
|
16 #end for
|
|
17 #return $file_list
|
|
18 #end def
|
|
19 --m-input-file=$list_dict_to_string($input_files_minputfile)
|
2
|
20 #end if
|
0
|
21
|
|
22
|
6
|
23 #if str($ppagesize):
|
0
|
24 --p-page-size=$ppagesize
|
|
25 #end if
|
|
26
|
|
27 --o-visualization=ovisualization
|
|
28 ;
|
|
29 qiime tools export --input-path ovisualization.qzv --output-path out && mkdir -p '$ovisualization.files_path'
|
|
30 && cp -r out/* '$ovisualization.files_path'
|
|
31 && mv '$ovisualization.files_path/index.html' '$ovisualization'
|
|
32 ]]></command>
|
|
33 <inputs>
|
|
34 <param label="--p-page-size: INTEGER The maximum number of Metadata records to display per page [default: 100]" name="ppagesize" optional="True" type="integer" value="100"/>
|
|
35
|
|
36 <repeat name="input_files_minputfile" optional="False" title="--m-input-file">
|
|
37 <param label="--m-input-file: Metadata file or artifact viewable as metadata. This option may be supplied multiple times to merge metadata. The metadata to tabulate. [required]" name="additional_input" type="data" format="tabular,qza,no_unzip.zip" />
|
|
38 </repeat>
|
|
39
|
|
40 </inputs>
|
|
41 <outputs>
|
|
42 <data format="html" label="${tool.name} on ${on_string}: visualization.qzv" name="ovisualization"/>
|
|
43 </outputs>
|
|
44 <help><![CDATA[
|
|
45 Interactively explore Metadata in an HTML table
|
|
46 ###############################################
|
|
47
|
|
48 Generate a tabular view of Metadata. The output visualization supports
|
|
49 interactive filtering, sorting, and exporting to common file formats.
|
|
50
|
|
51 Parameters
|
|
52 ----------
|
|
53 input : Metadata
|
|
54 The metadata to tabulate.
|
|
55 page_size : Int, optional
|
|
56 The maximum number of Metadata records to display per page
|
|
57
|
|
58 Returns
|
|
59 -------
|
|
60 visualization : Visualization
|
|
61 ]]></help>
|
|
62 <macros>
|
|
63 <import>qiime_citation.xml</import>
|
|
64 </macros>
|
|
65 <expand macro="qiime_citation"/>
|
|
66 </tool>
|