annotate qiime2/qiime_quality-control_evaluate-composition.xml @ 0:370e0b6e9826 draft

Uploaded
author florianbegusch
date Wed, 17 Jul 2019 03:05:17 -0400
parents
children 51025741f326
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
1 <?xml version="1.0" ?>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
2 <tool id="qiime_quality-control_evaluate-composition" name="qiime quality-control evaluate-composition" version="2019.4">
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
3 <description> - Evaluate expected vs. observed taxonomic composition of samples</description>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
4 <requirements>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
5 <requirement type="package" version="2019.4">qiime2</requirement>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
6 </requirements>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
7 <command><![CDATA[
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
8 qiime quality-control evaluate-composition
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
9
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
10 --i-expected-features=$iexpectedfeatures
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
11 --i-observed-features=$iobservedfeatures
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
12
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
13 #if $input_files_mmetadatafile:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
14 #def list_dict_to_string(list_dict):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
15 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
16 #for d in list_dict[1:]:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
17 #set $file_list = $file_list + ' --m-metadata-file=' + d['additional_input'].__getattr__('file_name')
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
18 #end for
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
19 #return $file_list
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
20 #end def
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
21 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile)
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
22 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
23
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
24
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
25 #if $pdepth:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
26 --p-depth=$pdepth
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
27 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
28
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
29 #if str($ppalette) != 'None':
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
30 --p-palette=$ppalette
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
31 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
32
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
33 #if $pplottar:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
34 --p-plot-tar
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
35 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
36
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
37 #if $pplottdr:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
38 --p-plot-tdr
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
39 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
40
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
41 #if $pplotrvalue:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
42 --p-plot-r-value
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
43 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
44
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
45 #if $pnoplotrsquared:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
46 --p-no-plot-r-squared
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
47 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
48
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
49 #if $pplotbraycurtis:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
50 --p-plot-bray-curtis
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
51 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
52
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
53 #if $pplotjaccard:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
54 --p-plot-jaccard
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
55 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
56
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
57 #if $pplotobservedfeatures:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
58 --p-plot-observed-features
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
59 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
60
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
61 #if $pplotobservedfeaturesratio:
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
62 --p-plot-observed-features-ratio
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
63 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
64
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
65 #if str($mmetadatacolumn):
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
66 --m-metadata-column="$mmetadatacolumn"
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
67 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
68
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
69 --o-visualization=ovisualization
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
70 ;
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
71 qiime tools export --input-path ovisualization.qzv --output-path out && mkdir -p '$ovisualization.files_path'
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
72 && cp -r out/* '$ovisualization.files_path'
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
73 && mv '$ovisualization.files_path/index.html' '$ovisualization'
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
74 ]]></command>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
75 <inputs>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
76 <param format="qza,no_unzip.zip" label="--i-expected-features: ARTIFACT FeatureTable[RelativeFrequency] Expected feature compositions [required]" name="iexpectedfeatures" optional="False" type="data"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
77 <param format="qza,no_unzip.zip" label="--i-observed-features: ARTIFACT FeatureTable[RelativeFrequency] Observed feature compositions [required]" name="iobservedfeatures" optional="False" type="data"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
78 <param label="--p-depth: INTEGER Maximum depth of semicolon-delimited taxonomic ranks to test (e.g., 1 = root, 7 = species for the greengenes reference sequence database). [default: 7]" name="pdepth" optional="True" type="integer" value="7"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
79 <param label="--p-palette: " name="ppalette" optional="True" type="select">
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
80 <option selected="True" value="None">Selection is Optional</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
81 <option value="Set1">Set1</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
82 <option value="Set2">Set2</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
83 <option value="Set3">Set3</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
84 <option value="Pastel1">Pastel1</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
85 <option value="Pastel2">Pastel2</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
86 <option value="Paired">Paired</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
87 <option value="Accent">Accent</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
88 <option value="Dark2">Dark2</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
89 <option value="tab10">tab10</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
90 <option value="tab20">tab20</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
91 <option value="tab20b">tab20b</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
92 <option value="tab20c">tab20c</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
93 <option value="viridis">viridis</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
94 <option value="plasma">plasma</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
95 <option value="inferno">inferno</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
96 <option value="magma">magma</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
97 <option value="terrain">terrain</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
98 <option value="rainbow">rainbow</option>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
99 </param>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
100 <param label="--p-plot-tar: --p-no-plot-tar Plot taxon accuracy rate (TAR) on score plot. TAR is the number of true positive features divided by the total number of observed features (TAR = true positives " name="pplottar" selected="False" type="boolean"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
101 <param label="--p-plot-tdr: --p-no-plot-tdr Plot taxon detection rate (TDR) on score plot. TDR is the number of true positive features divided by the total number of expected features (TDR = true positives " name="pplottdr" selected="False" type="boolean"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
102 <param label="--p-plot-r-value: --p-no-plot-r-value Plot expected vs. observed linear regression r value on score plot. [default: False]" name="pplotrvalue" selected="False" type="boolean"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
103 <param label="--p-no-plot-r-squared: Do not plot expected vs. observed linear regression r-squared value on score plot. [default: False]" name="pnoplotrsquared" selected="False" type="boolean"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
104 <param label="--p-plot-bray-curtis: --p-no-plot-bray-curtis Plot expected vs. observed Bray-Curtis dissimilarity scores on score plot. [default: False]" name="pplotbraycurtis" selected="False" type="boolean"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
105 <param label="--p-plot-jaccard: --p-no-plot-jaccard Plot expected vs. observed Jaccard distances scores on score plot. [default: False]" name="pplotjaccard" selected="False" type="boolean"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
106 <param label="--p-plot-observed-features: --p-no-plot-observed-features Plot observed features count on score plot. [default: False]" name="pplotobservedfeatures" selected="False" type="boolean"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
107 <param label="--p-no-plot-observed-features-ratio: Do not plot ratio of observed:expected features on score plot. [default: False]" name="pnoplotobservedfeaturesratio" selected="False" type="boolean"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
108 <param label="--m-metadata-column: COLUMN MetadataColumn[Categorical] Optional sample metadata that maps observed-features sample IDs to expected-features sample IDs. [optional]" name="mmetadatacolumn" optional="True" type="text"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
109
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
110 <repeat name="input_files_mmetadatafile" optional="True" title="--m-metadata-file">
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
111 <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" />
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
112 </repeat>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
113
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
114 </inputs>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
115 <outputs>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
116 <data format="html" label="${tool.name} on ${on_string}: visualization.qzv" name="ovisualization"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
117 </outputs>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
118 <help><![CDATA[
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
119 Evaluate expected vs. observed taxonomic composition of samples
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
120 ###############################################################
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
121
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
122 This visualizer compares the feature composition of pairs of observed and
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
123 expected samples containing the same sample ID in two separate feature
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
124 tables. Typically, feature composition will consist of taxonomy
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
125 classifications or other semicolon-delimited feature annotations. Taxon
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
126 accuracy rate, taxon detection rate, and linear regression scores between
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
127 expected and observed observations are calculated at each semicolon-
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
128 delimited rank, and plots of per-level accuracy and observation
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
129 correlations are plotted. A histogram of distance between false positive
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
130 observations and the nearest expected feature is also generated, where
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
131 distance equals the number of rank differences between the observed feature
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
132 and the nearest common lineage in the expected feature. This visualizer is
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
133 most suitable for testing per-run data quality on sequencing runs that
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
134 contain mock communities or other samples with known composition. Also
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
135 suitable for sanity checks of bioinformatics pipeline performance.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
136
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
137 Parameters
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
138 ----------
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
139 expected_features : FeatureTable[RelativeFrequency]
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
140 Expected feature compositions
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
141 observed_features : FeatureTable[RelativeFrequency]
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
142 Observed feature compositions
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
143 depth : Int, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
144 Maximum depth of semicolon-delimited taxonomic ranks to test (e.g., 1 =
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
145 root, 7 = species for the greengenes reference sequence database).
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
146 palette : Str % Choices('Set1', 'Set2', 'Set3', 'Pastel1', 'Pastel2', 'Paired', 'Accent', 'Dark2', 'tab10', 'tab20', 'tab20b', 'tab20c', 'viridis', 'plasma', 'inferno', 'magma', 'terrain', 'rainbow'), optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
147 Color palette to utilize for plotting.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
148 plot_tar : Bool, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
149 Plot taxon accuracy rate (TAR) on score plot. TAR is the number of true
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
150 positive features divided by the total number of observed features (TAR
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
151 = true positives / (true positives + false positives)).
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
152 plot_tdr : Bool, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
153 Plot taxon detection rate (TDR) on score plot. TDR is the number of
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
154 true positive features divided by the total number of expected features
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
155 (TDR = true positives / (true positives + false negatives)).
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
156 plot_r_value : Bool, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
157 Plot expected vs. observed linear regression r value on score plot.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
158 plot_r_squared : Bool, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
159 Plot expected vs. observed linear regression r-squared value on score
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
160 plot.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
161 plot_bray_curtis : Bool, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
162 Plot expected vs. observed Bray-Curtis dissimilarity scores on score
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
163 plot.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
164 plot_jaccard : Bool, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
165 Plot expected vs. observed Jaccard distances scores on score plot.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
166 plot_observed_features : Bool, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
167 Plot observed features count on score plot.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
168 plot_observed_features_ratio : Bool, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
169 Plot ratio of observed:expected features on score plot.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
170 metadata : MetadataColumn[Categorical], optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
171 Optional sample metadata that maps observed_features sample IDs to
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
172 expected_features sample IDs.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
173
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
174 Returns
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
175 -------
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
176 visualization : Visualization
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
177 ]]></help>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
178 <macros>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
179 <import>qiime_citation.xml</import>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
180 </macros>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
181 <expand macro="qiime_citation"/>
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
182 </tool>