0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_sample-classifier_classify-samples-from-dist" name="qiime sample-classifier classify-samples-from-dist" version="2019.4">
|
|
3 <description> - Run k-nearest-neighbors on a labeled distance matrix.</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime sample-classifier classify-samples-from-dist
|
|
9
|
|
10 --i-distance-matrix=$idistancematrix
|
|
11 --m-metadata-column="$mmetadatacolumn"
|
|
12
|
5
|
13 #if str($pk):
|
0
|
14 --p-k=$pk
|
|
15 #end if
|
|
16
|
|
17 #if str($ppalette) != 'None':
|
|
18 --p-palette=$ppalette
|
|
19 #end if
|
|
20
|
|
21
|
5
|
22 #if $metadatafile:
|
|
23 --m-metadata-file=$metadatafile
|
0
|
24 #end if
|
|
25
|
|
26
|
|
27 --o-predictions=opredictions
|
|
28 --o-accuracy-results=oaccuracyresults
|
|
29 ;
|
|
30 cp opredictions.qza $opredictions;
|
|
31 qiime tools export --input-path oaccuracyresults.qzv --output-path out && mkdir -p '$oaccuracyresults.files_path'
|
|
32 && cp -r out/* '$oaccuracyresults.files_path'
|
|
33 && mv '$oaccuracyresults.files_path/index.html' '$oaccuracyresults'
|
|
34 ]]></command>
|
|
35 <inputs>
|
|
36 <param format="qza,no_unzip.zip" label="--i-distance-matrix: ARTIFACT DistanceMatrix a distance matrix [required]" name="idistancematrix" optional="False" type="data"/>
|
|
37 <param label="--m-metadata-column: COLUMN MetadataColumn[Categorical] Categorical metadata column to use as prediction target. [required]" name="mmetadatacolumn" optional="False" type="text"/>
|
|
38 <param label="--p-k: INTEGER Number of nearest neighbors [default: 1]" name="pk" optional="True" type="integer" value="1"/>
|
|
39 <param label="--p-palette: " name="ppalette" optional="True" type="select">
|
|
40 <option selected="True" value="None">Selection is Optional</option>
|
|
41 <option value="YellowOrangeBrown">YellowOrangeBrown</option>
|
|
42 <option value="YellowOrangeRed">YellowOrangeRed</option>
|
|
43 <option value="OrangeRed">OrangeRed</option>
|
|
44 <option value="PurpleRed">PurpleRed</option>
|
|
45 <option value="RedPurple">RedPurple</option>
|
|
46 <option value="BluePurple">BluePurple</option>
|
|
47 <option value="GreenBlue">GreenBlue</option>
|
|
48 <option value="PurpleBlue">PurpleBlue</option>
|
|
49 <option value="YellowGreen">YellowGreen</option>
|
|
50 <option value="summer">summer</option>
|
|
51 <option value="copper">copper</option>
|
|
52 <option value="viridis">viridis</option>
|
|
53 <option value="plasma">plasma</option>
|
|
54 <option value="inferno">inferno</option>
|
|
55 <option value="magma">magma</option>
|
|
56 <option value="sirocco">sirocco</option>
|
|
57 <option value="drifting">drifting</option>
|
|
58 <option value="melancholy">melancholy</option>
|
|
59 <option value="enigma">enigma</option>
|
|
60 <option value="eros">eros</option>
|
|
61 <option value="spectre">spectre</option>
|
|
62 <option value="ambition">ambition</option>
|
|
63 <option value="mysteriousstains">mysteriousstains</option>
|
|
64 <option value="daydream">daydream</option>
|
|
65 <option value="solano">solano</option>
|
|
66 <option value="navarro">navarro</option>
|
|
67 <option value="dandelions">dandelions</option>
|
|
68 <option value="deepblue">deepblue</option>
|
|
69 <option value="verve">verve</option>
|
|
70 <option value="greyscale">greyscale</option>
|
|
71 </param>
|
|
72
|
5
|
73 <param label="--m-metadata-file METADATA" name="metadatafile" type="data" format="tabular,qza,no_unzip.zip" />
|
0
|
74
|
|
75 </inputs>
|
|
76 <outputs>
|
|
77 <data format="qza" label="${tool.name} on ${on_string}: predictions.qza" name="opredictions"/>
|
|
78 <data format="html" label="${tool.name} on ${on_string}: accuracyresults.qzv" name="oaccuracyresults"/>
|
|
79 </outputs>
|
|
80 <help><![CDATA[
|
|
81 Run k-nearest-neighbors on a labeled distance matrix.
|
|
82 #####################################################
|
|
83
|
|
84 Run k-nearest-neighbors on a labeled distance matrix. Return cross-
|
|
85 validated (leave one out) predictions and accuracy. k = 1 by default
|
|
86
|
|
87 Parameters
|
|
88 ----------
|
|
89 distance_matrix : DistanceMatrix
|
|
90 a distance matrix
|
|
91 metadata : MetadataColumn[Categorical]
|
|
92 Categorical metadata column to use as prediction target.
|
|
93 k : Int, optional
|
|
94 Number of nearest neighbors
|
|
95 palette : Str % Choices('YellowOrangeBrown', 'YellowOrangeRed', 'OrangeRed', 'PurpleRed', 'RedPurple', 'BluePurple', 'GreenBlue', 'PurpleBlue', 'YellowGreen', 'summer', 'copper', 'viridis', 'plasma', 'inferno', 'magma', 'sirocco', 'drifting', 'melancholy', 'enigma', 'eros', 'spectre', 'ambition', 'mysteriousstains', 'daydream', 'solano', 'navarro', 'dandelions', 'deepblue', 'verve', 'greyscale'), optional
|
|
96 The color palette to use for plotting.
|
|
97
|
|
98 Returns
|
|
99 -------
|
|
100 predictions : SampleData[ClassifierPredictions]
|
|
101 leave one out predictions for each sample
|
|
102 accuracy_results : Visualization
|
|
103 Accuracy results visualization.
|
|
104 ]]></help>
|
|
105 <macros>
|
|
106 <import>qiime_citation.xml</import>
|
|
107 </macros>
|
|
108 <expand macro="qiime_citation"/>
|
|
109 </tool>
|