comparison qiime2/qiime_feature-table_filter-features.xml @ 0:370e0b6e9826 draft

Uploaded
author florianbegusch
date Wed, 17 Jul 2019 03:05:17 -0400
parents
children 558645416841
comparison
equal deleted inserted replaced
-1:000000000000 0:370e0b6e9826
1 <?xml version="1.0" ?>
2 <tool id="qiime_feature-table_filter-features" name="qiime feature-table filter-features" version="2019.4">
3 <description> - Filter features from table</description>
4 <requirements>
5 <requirement type="package" version="2019.4">qiime2</requirement>
6 </requirements>
7 <command><![CDATA[
8 qiime feature-table filter-features
9
10 --i-table=$itable
11
12
13 #if $input_files_mmetadatafile:
14 #def list_dict_to_string(list_dict):
15 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
16 #for d in list_dict[1:]:
17 #set $file_list = $file_list + ' --m-metadata-file=' + d['additional_input'].__getattr__('file_name')
18 #end for
19 #return $file_list
20 #end def
21 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile)
22 #end if
23
24
25 #if $pminfrequency:
26 --p-min-frequency=$pminfrequency
27 #end if
28
29 #if str($pmaxfrequency):
30 --p-max-frequency="$pmaxfrequency"
31 #end if
32
33 #if $pminsamples:
34 --p-min-samples=$pminsamples
35 #end if
36
37 #if str($pmaxsamples):
38 --p-max-samples="$pmaxsamples"
39 #end if
40 --m-metadata-file=mmetadatafile
41 #if '__sq__' in str($pwhere):
42 #set $pwhere_temp = $pwhere.replace('__sq__', "'")
43 #set $pwhere = $pwhere_temp
44 #end if
45
46 #if str($pwhere):
47 --p-where="$pwhere"
48 #end if
49
50 #if $pexcludeids:
51 --p-exclude-ids
52 #end if
53
54 --o-filtered-table=ofilteredtable
55 ;
56 cp ofilteredtable.qza $ofilteredtable
57 ]]></command>
58 <inputs>
59 <param format="qza,no_unzip.zip" label="--i-table: ARTIFACT FeatureTable[Frequency] The feature table from which features should be filtered. [required]" name="itable" optional="False" type="data"/>
60 <param label="--p-min-frequency: INTEGER The minimum total frequency that a feature must have to be retained. [default: 0]" name="pminfrequency" optional="True" type="integer" value="0"/>
61 <param label="--p-max-frequency: INTEGER The maximum total frequency that a feature can have to be retained. If no value is provided this will default to infinity (i.e., no maximum frequency filter will be applied). [optional]" name="pmaxfrequency" optional="True" type="integer"/>
62 <param label="--p-min-samples: INTEGER The minimum number of samples that a feature must be observed in to be retained. [default: 0]" name="pminsamples" optional="True" type="integer" value="0"/>
63 <param label="--p-max-samples: INTEGER The maximum number of samples that a feature can be observed in to be retained. If no value is provided this will default to infinity (i.e., no maximum sample filter will be applied). [optional]" name="pmaxsamples" optional="True" type="integer"/>
64 <param label="--p-where: TEXT SQLite WHERE clause specifying feature metadata criteria that must be met to be included in the filtered feature table. If not provided, all features in `metadata` that are also in the feature table will be retained. [optional]" name="pwhere" optional="True" type="text"/>
65 <param label="--p-exclude-ids: --p-no-exclude-ids If true, the features selected by `metadata` or `where` parameters will be excluded from the filtered table instead of being retained. [default: False]" name="pexcludeids" selected="False" type="boolean"/>
66
67 <repeat name="input_files_mmetadatafile" optional="True" title="--m-metadata-file">
68 <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" />
69 </repeat>
70
71 </inputs>
72 <outputs>
73 <data format="qza" label="${tool.name} on ${on_string}: filteredtable.qza" name="ofilteredtable"/>
74 </outputs>
75 <help><![CDATA[
76 Filter features from table
77 ##########################
78
79 Filter features from table based on frequency and/or metadata. Any samples
80 with a frequency of zero after feature filtering will also be removed. See
81 the filtering tutorial on https://docs.qiime2.org for additional details.
82
83 Parameters
84 ----------
85 table : FeatureTable[Frequency]
86 The feature table from which features should be filtered.
87 min_frequency : Int, optional
88 The minimum total frequency that a feature must have to be retained.
89 max_frequency : Int, optional
90 The maximum total frequency that a feature can have to be retained. If
91 no value is provided this will default to infinity (i.e., no maximum
92 frequency filter will be applied).
93 min_samples : Int, optional
94 The minimum number of samples that a feature must be observed in to be
95 retained.
96 max_samples : Int, optional
97 The maximum number of samples that a feature can be observed in to be
98 retained. If no value is provided this will default to infinity (i.e.,
99 no maximum sample filter will be applied).
100 metadata : Metadata, optional
101 Feature metadata used with `where` parameter when selecting features to
102 retain, or with `exclude_ids` when selecting features to discard.
103 where : Str, optional
104 SQLite WHERE clause specifying feature metadata criteria that must be
105 met to be included in the filtered feature table. If not provided, all
106 features in `metadata` that are also in the feature table will be
107 retained.
108 exclude_ids : Bool, optional
109 If true, the features selected by `metadata` or `where` parameters will
110 be excluded from the filtered table instead of being retained.
111
112 Returns
113 -------
114 filtered_table : FeatureTable[Frequency]
115 The resulting feature table filtered by feature.
116 ]]></help>
117 <macros>
118 <import>qiime_citation.xml</import>
119 </macros>
120 <expand macro="qiime_citation"/>
121 </tool>