9
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_demux_filter-samples" name="qiime demux filter-samples" version="2019.7">
|
|
3 <description> - Filter samples out of demultiplexed data.</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.7">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime demux filter-samples
|
|
9
|
|
10 --i-demux=$idemux
|
|
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
|
|
26 #if '__sq__' in str($pwhere):
|
|
27 #set $pwhere_temp = $pwhere.replace('__sq__', "'")
|
|
28 #set $pwhere = $pwhere_temp
|
|
29 #end if
|
|
30
|
|
31
|
|
32 #if str($pwhere):
|
|
33 --p-where="$pwhere"
|
|
34 #end if
|
|
35
|
|
36
|
|
37 #if $pexcludeids:
|
|
38 --p-exclude-ids
|
|
39 #end if
|
|
40
|
|
41
|
|
42 --o-filtered-demux=ofiltereddemux
|
|
43
|
|
44 ;
|
|
45 cp ofiltereddemux.qza $ofiltereddemux
|
|
46 ]]></command>
|
|
47 <inputs>
|
|
48
|
|
49 <repeat name="input_files_mmetadatafile" optional="False" title="--m-metadata-file">
|
|
50 <param label="--m-metadata-file: Metadata file or artifact viewable as metadata. This option may be supplied multiple times to merge metadata. Sample metadata file containing individual_id_column. [required]" name="additional_input" type="data" format="tabular,qza,no_unzip.zip" />
|
|
51 </repeat>
|
|
52
|
|
53 <param format="qza,no_unzip.zip" label="--i-demux: ARTIFACT SampleData[SequencesWithQuality¹ | PairedEndSequencesWithQuality² | JoinedSequencesWithQuality³] The demultiplexed data from which samples should be filtered. [required]" name="idemux" optional="False" type="data"/>
|
|
54 <param label="--p-where: TEXT Optional SQLite WHERE clause specifying sample metadata criteria that must be met to be included in the filtered data. If not provided, all samples in `metadata` that are also in the demultiplexed data will be retained. [optional]" name="pwhere" optional="True" type="text"/>
|
|
55 <param label="--p-exclude-ids: --p-no-exclude-ids Defaults to False. If True, the samples selected by the `metadata` and optional `where` parameter will be excluded from the filtered data. [default: False]" name="pexcludeids" selected="False" type="boolean"/>
|
|
56 </inputs>
|
|
57 <outputs>
|
|
58 <data format="qza" label="${tool.name} on ${on_string}: filtereddemux.qza" name="ofiltereddemux"/>
|
|
59 </outputs>
|
|
60 <help><![CDATA[
|
|
61 Filter samples out of demultiplexed data.
|
|
62 #########################################
|
|
63
|
|
64 Filter samples indicated in given metadata out of demultiplexed data.
|
|
65 Specific samples can be further selected with the WHERE clause, and the
|
|
66 `exclude_ids` parameter allows for filtering of all samples not specified.
|
|
67
|
|
68 Parameters
|
|
69 ----------
|
|
70 demux : SampleData[SequencesWithQuality¹ | PairedEndSequencesWithQuality² | JoinedSequencesWithQuality³]
|
|
71 The demultiplexed data from which samples should be filtered.
|
|
72 metadata : Metadata
|
|
73 Sample metadata indicating which sample ids to filter. The optional
|
|
74 `where` parameter may be used to filter ids based on specified
|
|
75 conditions in the metadata. The optional `exclude_ids` parameter may be
|
|
76 used to exclude the ids specified in the metadata from the filter.
|
|
77 where : Str, optional
|
|
78 Optional SQLite WHERE clause specifying sample metadata criteria that
|
|
79 must be met to be included in the filtered data. If not provided, all
|
|
80 samples in `metadata` that are also in the demultiplexed data will be
|
|
81 retained.
|
|
82 exclude_ids : Bool, optional
|
|
83 Defaults to False. If True, the samples selected by the `metadata` and
|
|
84 optional `where` parameter will be excluded from the filtered data.
|
|
85
|
|
86 Returns
|
|
87 -------
|
|
88 filtered_demux : SampleData[SequencesWithQuality¹ | PairedEndSequencesWithQuality² | JoinedSequencesWithQuality³]
|
|
89 Filtered demultiplexed data.
|
|
90 ]]></help>
|
|
91 <macros>
|
|
92 <import>qiime_citation.xml</import>
|
|
93 </macros>
|
|
94 <expand macro="qiime_citation"/>
|
|
95 </tool>
|