Mercurial > repos > florianbegusch > qiime2_suite
comparison qiime2/qiime_taxa_filter-table.xml @ 14:a0a8d77a991c draft
Uploaded
author | florianbegusch |
---|---|
date | Thu, 03 Sep 2020 09:51:29 +0000 |
parents | f190567fe3f6 |
children |
comparison
equal
deleted
inserted
replaced
13:887cd4ad8e16 | 14:a0a8d77a991c |
---|---|
1 <?xml version="1.0" ?> | 1 <?xml version="1.0" ?> |
2 <tool id="qiime_taxa_filter-table" name="qiime taxa filter-table" version="2019.7"> | 2 <tool id="qiime_taxa_filter-table" name="qiime taxa filter-table" |
3 <description> - Taxonomy-based feature table filter.</description> | 3 version="2020.8"> |
4 <requirements> | 4 <description>Taxonomy-based feature table filter.</description> |
5 <requirement type="package" version="2019.7">qiime2</requirement> | 5 <requirements> |
6 </requirements> | 6 <requirement type="package" version="2020.8">qiime2</requirement> |
7 <command><![CDATA[ | 7 </requirements> |
8 <command><![CDATA[ | |
8 qiime taxa filter-table | 9 qiime taxa filter-table |
9 | |
10 | |
11 #if str( $id_to_taxonomy_fp.selector ) == 'history' | |
12 #set $tax = $id_to_taxonomy_fp.taxonomy_fp | |
13 --i-taxonomy '$tax' | |
14 #else: | |
15 #set $tax = $id_to_taxonomy_fp.taxonomy_fp.fields.path | |
16 --i-taxonomy '$tax' | |
17 #end if | |
18 | |
19 | 10 |
20 --i-table=$itable | 11 --i-table=$itable |
21 | 12 |
13 --i-taxonomy=$itaxonomy | |
14 | |
22 #if str($pinclude): | 15 #if str($pinclude): |
23 --p-include="$pinclude" | 16 --p-include=$pinclude |
24 #end if | 17 #end if |
25 | |
26 #if str($pexclude): | 18 #if str($pexclude): |
27 --p-exclude="$pexclude" | 19 --p-exclude=$pexclude |
28 #end if | 20 #end if |
29 | |
30 #if str($pquerydelimiter): | 21 #if str($pquerydelimiter): |
31 --p-query-delimiter="$pquerydelimiter" | 22 --p-query-delimiter=$pquerydelimiter |
32 #end if | 23 #end if |
33 | |
34 #if str($pmode) != 'None': | 24 #if str($pmode) != 'None': |
35 --p-mode=$pmode | 25 --p-mode=$pmode |
36 #end if | 26 #end if |
37 | 27 |
38 --o-filtered-table=ofilteredtable | 28 --o-filtered-table=ofilteredtable |
29 | |
30 #if str($examples) != 'None': | |
31 --examples=$examples | |
32 #end if | |
33 | |
39 ; | 34 ; |
40 cp ofilteredtable.qza $ofilteredtable | 35 cp ofilteredtable.qza $ofilteredtable |
41 ]]></command> | |
42 <inputs> | |
43 <param format="qza,no_unzip.zip" label="--i-table: ARTIFACT FeatureTable[Frequency] Feature table to be filtered. [required]" name="itable" optional="False" type="data"/> | |
44 | 36 |
45 <conditional name="id_to_taxonomy_fp" optional="True"> | 37 ]]></command> |
46 <param name="selector" type="select" label="Reference taxonomy to query"> | 38 <inputs> |
47 <option value="cached">Public databases</option> | 39 <param format="qza,no_unzip.zip" label="--i-table: ARTIFACT FeatureTable[Frequency] Feature table to be filtered. [required]" name="itable" optional="False" type="data" /> |
48 <option value="history">Databases from your history</option> | 40 <param format="qza,no_unzip.zip" label="--i-taxonomy: ARTIFACT FeatureData[Taxonomy] Taxonomic annotations for features in the provided feature table. All features in the feature table must have a corresponding taxonomic annotation. Taxonomic annotations for features that are not present in the feature table will be ignored. [required]" name="itaxonomy" optional="False" type="data" /> |
49 </param> | 41 <param label="--p-include: TEXT One or more search terms that indicate which taxa should be included in the resulting table. If providing more than one term, terms should be delimited by the query-delimiter character. By default, all taxa will be included. [optional]" name="pinclude" optional="False" type="text" /> |
50 <when value="cached"> | 42 <param label="--p-exclude: TEXT One or more search terms that indicate which taxa should be excluded from the resulting table. If providing more than one term, terms should be delimited by the query-delimiter character. By default, no taxa will be excluded. [optional]" name="pexclude" optional="False" type="text" /> |
51 <param argument="--taxonomy_fp" label="Reference taxonomy" type="select" optional="True"> | 43 <param label="--p-query-delimiter: TEXT The string used to delimit multiple search terms provided to include or exclude. This parameter should only need to be modified if the default delimiter (a comma) is used in the provided taxonomic annotations. [default: \',\']" name="pquerydelimiter" optional="False" type="text" value="\',\'" /> |
52 <options from_data_table="qiime_taxonomy" /> | 44 <param label="--p-mode: " name="pmode" optional="True" type="select"> |
53 </param> | 45 <option selected="True" value="None">Selection is Optional</option> |
54 </when> | 46 <option value="exact">exact</option> |
55 <when value="history"> | 47 <option value="contains">contains</option> |
56 <param argument="--taxonomy_fp" type="data" format="qza,no_unzip.zip" label="Reference databases" optional="True" /> | 48 </param> |
57 </when> | 49 <param label="--examples: Show usage examples and exit." name="examples" optional="False" type="data" /> |
58 </conditional> | 50 |
51 </inputs> | |
59 | 52 |
60 <param label="--p-include: TEXT One or more search terms that indicate which taxa should be included in the resulting table. If providing more than one term, terms should be delimited by the query-delimiter character. By default, all taxa will be included. [optional]" name="pinclude" optional="True" type="text"/> | 53 <outputs> |
61 <param label="--p-exclude: TEXT One or more search terms that indicate which taxa should be excluded from the resulting table. If providing more than one term, terms should be delimited by the query-delimiter character. By default, no taxa will be excluded. [optional]" name="pexclude" optional="True" type="text"/> | 54 <data format="qza" label="${tool.name} on ${on_string}: filteredtable.qza" name="ofilteredtable" /> |
62 <param label="--p-query-delimiter: TEXT The string used to delimit multiple search terms provided to include or exclude. This parameter should only need to be modified if the default delimiter (a comma) is used in the provided taxonomic annotations. [default: ',']" name="pquerydelimiter" optional="True" type="text" value=","/> | 55 |
63 <param label="--p-mode: " name="pmode" optional="True" type="select"> | 56 </outputs> |
64 <option selected="True" value="None">Selection is Optional</option> | 57 |
65 <option value="exact">exact</option> | 58 <help><![CDATA[ |
66 <option value="contains">contains</option> | |
67 </param> | |
68 </inputs> | |
69 <outputs> | |
70 <data format="qza" label="${tool.name} on ${on_string}: filteredtable.qza" name="ofilteredtable"/> | |
71 </outputs> | |
72 <help><![CDATA[ | |
73 Taxonomy-based feature table filter. | 59 Taxonomy-based feature table filter. |
74 #################################### | 60 ############################################################### |
75 | 61 |
76 This method filters features from a table based on their taxonomic | 62 This method filters features from a table based on their taxonomic |
77 annotations. Features can be retained in the resulting table by specifying | 63 annotations. Features can be retained in the resulting table by specifying |
78 one or more include search terms, and can be filtered out of the resulting | 64 one or more include search terms, and can be filtered out of the resulting |
79 table by specifying one or more exclude search terms. If both include and | 65 table by specifying one or more exclude search terms. If both include and |
113 | 99 |
114 Returns | 100 Returns |
115 ------- | 101 ------- |
116 filtered_table : FeatureTable[Frequency] | 102 filtered_table : FeatureTable[Frequency] |
117 The taxonomy-filtered feature table. | 103 The taxonomy-filtered feature table. |
118 ]]></help> | 104 ]]></help> |
119 <macros> | 105 <macros> |
120 <import>qiime_citation.xml</import> | 106 <import>qiime_citation.xml</import> |
121 </macros> | 107 </macros> |
122 <expand macro="qiime_citation"/> | 108 <expand macro="qiime_citation"/> |
123 </tool> | 109 </tool> |