comparison qiime2-2020.8/qiime_sample-classifier_confusion-matrix.xml @ 20:d93d8888f0b0 draft

Uploaded
author florianbegusch
date Fri, 04 Sep 2020 12:44:24 +0000
parents
children
comparison
equal deleted inserted replaced
19:6c48f8d82424 20:d93d8888f0b0
1 <?xml version="1.0" ?>
2 <tool id="qiime_sample-classifier_confusion-matrix" name="qiime sample-classifier confusion-matrix"
3 version="2020.8">
4 <description>Make a confusion matrix from sample classifier predictions.</description>
5 <requirements>
6 <requirement type="package" version="2020.8">qiime2</requirement>
7 </requirements>
8 <command><![CDATA[
9 qiime sample-classifier confusion-matrix
10
11 --i-predictions=$ipredictions
12
13 #if str($iprobabilities) != 'None':
14 --i-probabilities=$iprobabilities
15 #end if
16
17 #if str($mtruthfile) != 'None':
18 --m-truth-file=$mtruthfile
19 #end if
20
21 #if '__ob__' in str($mtruthcolumn):
22 #set $mtruthcolumn_temp = $mtruthcolumn.replace('__ob__', '[')
23 #set $mtruthcolumn = $mtruthcolumn_temp
24 #end if
25 #if '__cb__' in str($mtruthcolumn):
26 #set $mtruthcolumn_temp = $mtruthcolumn.replace('__cb__', ']')
27 #set $mtruthcolumn = $mtruthcolumn_temp
28 #end if
29 #if 'X' in str($mtruthcolumn):
30 #set $mtruthcolumn_temp = $mtruthcolumn.replace('X', '\\')
31 #set $mtruthcolumn = $mtruthcolumn_temp
32 #end if
33 #if '__sq__' in str($mtruthcolumn):
34 #set $mtruthcolumn_temp = $mtruthcolumn.replace('__sq__', "'")
35 #set $mtruthcolumn = $mtruthcolumn_temp
36 #end if
37 #if '__db__' in str($mtruthcolumn):
38 #set $mtruthcolumn_temp = $mtruthcolumn.replace('__db__', '"')
39 #set $mtruthcolumn = $mtruthcolumn_temp
40 #end if
41
42 --m-truth-column=$mtruthcolumn
43
44
45 #if str($pmissingsamples) != 'None':
46 --p-missing-samples=$pmissingsamples
47 #end if
48
49 #if str($pvmin) != 'None':
50 --p-vmin=$pvmin
51 #end if
52
53 #if str($pvmax) != 'None':
54 --p-vmax=$pvmax
55 #end if
56
57 #if str($ppalette) != 'None':
58 --p-palette=$ppalette
59 #end if
60
61 --o-visualization=ovisualization
62
63 #if str($examples) != 'None':
64 --examples=$examples
65 #end if
66
67 ;
68 cp oprobabilities.qza $oprobabilities
69
70 ;
71 qiime tools export ovisualization.qzv --output-path out
72 && mkdir -p '$ovisualization.files_path'
73 && cp -r out/* '$ovisualization.files_path'
74 && mv '$ovisualization.files_path/index.html' '$ovisualization'
75
76 ]]></command>
77 <inputs>
78 <param format="qza,no_unzip.zip" label="--i-predictions: ARTIFACT SampleData[ClassifierPredictions] Predicted values to plot on x axis. Should be predictions of categorical data produced by a sample classifier. [required]" name="ipredictions" optional="False" type="data" />
79 <param format="qza,no_unzip.zip" label="--i-probabilities: ARTIFACT SampleData[Probabilities] Predicted class probabilities for each input sample. [optional]" name="iprobabilities" optional="False" type="data" />
80 <param label="--m-truth-file: METADATA" name="mtruthfile" optional="False" type="data" />
81 <param label="--m-truth-column: COLUMN MetadataColumn[Categorical] Metadata column (true values) to plot on y axis. [required]" name="mtruthcolumn" optional="False" type="text" />
82 <param label="--p-missing-samples: " name="pmissingsamples" optional="True" type="select">
83 <option selected="True" value="None">Selection is Optional</option>
84 <option value="error">error</option>
85 <option value="ignore">ignore</option>
86 </param>
87 <param label="--p-vmin: " name="pvmin" optional="True" type="select">
88 <option selected="True" value="None">Selection is Optional</option>
89 <option value="auto">auto</option>
90 </param>
91 <param label="--p-vmax: " name="pvmax" optional="True" type="select">
92 <option selected="True" value="None">Selection is Optional</option>
93 <option value="auto">auto</option>
94 </param>
95 <param label="--p-palette: " name="ppalette" optional="True" type="select">
96 <option selected="True" value="None">Selection is Optional</option>
97 <option value="YellowOrangeBrown">YellowOrangeBrown</option>
98 <option value="YellowOrangeRed">YellowOrangeRed</option>
99 <option value="OrangeRed">OrangeRed</option>
100 <option value="PurpleRed">PurpleRed</option>
101 <option value="RedPurple">RedPurple</option>
102 <option value="BluePurple">BluePurple</option>
103 <option value="GreenBlue">GreenBlue</option>
104 <option value="PurpleBlue">PurpleBlue</option>
105 <option value="YellowGreen">YellowGreen</option>
106 <option value="summer">summer</option>
107 <option value="copper">copper</option>
108 <option value="viridis">viridis</option>
109 <option value="cividis">cividis</option>
110 <option value="plasma">plasma</option>
111 <option value="inferno">inferno</option>
112 <option value="magma">magma</option>
113 <option value="sirocco">sirocco</option>
114 <option value="drifting">drifting</option>
115 <option value="melancholy">melancholy</option>
116 <option value="enigma">enigma</option>
117 <option value="eros">eros</option>
118 <option value="spectre">spectre</option>
119 <option value="ambition">ambition</option>
120 <option value="mysteriousstains">mysteriousstains</option>
121 <option value="daydream">daydream</option>
122 <option value="solano">solano</option>
123 <option value="navarro">navarro</option>
124 <option value="dandelions">dandelions</option>
125 <option value="deepblue">deepblue</option>
126 <option value="verve">verve</option>
127 <option value="greyscale">greyscale</option>
128 </param>
129 <param label="--examples: Show usage examples and exit." name="examples" optional="False" type="data" />
130
131 </inputs>
132
133 <outputs>
134 <data format="html" label="${tool.name} on ${on_string}: visualization.html" name="ovisualization" />
135
136 </outputs>
137
138 <help><![CDATA[
139 Make a confusion matrix from sample classifier predictions.
140 ###############################################################
141
142 Make a confusion matrix and calculate accuracy of predicted vs. true values
143 for a set of samples classified using a sample classifier. If per-sample
144 class probabilities are provided, will also generate Receiver Operating
145 Characteristic curves and calculate area under the curve for each class.
146
147 Parameters
148 ----------
149 predictions : SampleData[ClassifierPredictions]
150 Predicted values to plot on x axis. Should be predictions of
151 categorical data produced by a sample classifier.
152 truth : MetadataColumn[Categorical]
153 Metadata column (true values) to plot on y axis.
154 probabilities : SampleData[Probabilities], optional
155 Predicted class probabilities for each input sample.
156 missing_samples : Str % Choices('error', 'ignore'), optional
157 How to handle missing samples in metadata. "error" will fail if missing
158 samples are detected. "ignore" will cause the feature table and
159 metadata to be filtered, so that only samples found in both files are
160 retained.
161 vmin : Float | Str % Choices('auto'), optional
162 The minimum value to use for anchoring the colormap. If "auto", vmin is
163 set to the minimum value in the data.
164 vmax : Float | Str % Choices('auto'), optional
165 The maximum value to use for anchoring the colormap. If "auto", vmax is
166 set to the maximum value in the data.
167 palette : Str % Choices('YellowOrangeBrown', 'YellowOrangeRed', 'OrangeRed', 'PurpleRed', 'RedPurple', 'BluePurple', 'GreenBlue', 'PurpleBlue', 'YellowGreen', 'summer', 'copper', 'viridis', 'cividis', 'plasma', 'inferno', 'magma', 'sirocco', 'drifting', 'melancholy', 'enigma', 'eros', 'spectre', 'ambition', 'mysteriousstains', 'daydream', 'solano', 'navarro', 'dandelions', 'deepblue', 'verve', 'greyscale'), optional
168 The color palette to use for plotting.
169
170 Returns
171 -------
172 visualization : Visualization
173 ]]></help>
174 <macros>
175 <import>qiime_citation.xml</import>
176 </macros>
177 <expand macro="qiime_citation"/>
178 </tool>