Mercurial > repos > florianbegusch > qiime2_suite
comparison qiime2/qiime_sample-classifier_classify-samples-from-dist.xml @ 0:370e0b6e9826 draft
Uploaded
author | florianbegusch |
---|---|
date | Wed, 17 Jul 2019 03:05:17 -0400 |
parents | |
children | a025a4a89e07 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:370e0b6e9826 |
---|---|
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 | |
13 #if $pk: | |
14 --p-k=$pk | |
15 #end if | |
16 | |
17 #if str($ppalette) != 'None': | |
18 --p-palette=$ppalette | |
19 #end if | |
20 | |
21 | |
22 #if $input_files_mmetadatafile: | |
23 #def list_dict_to_string(list_dict): | |
24 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name') | |
25 #for d in list_dict[1:]: | |
26 #set $file_list = $file_list + ' --m-metadata-file=' + d['additional_input'].__getattr__('file_name') | |
27 #end for | |
28 #return $file_list | |
29 #end def | |
30 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile) | |
31 #end if | |
32 | |
33 | |
34 --o-predictions=opredictions | |
35 --o-accuracy-results=oaccuracyresults | |
36 ; | |
37 cp opredictions.qza $opredictions; | |
38 qiime tools export --input-path oaccuracyresults.qzv --output-path out && mkdir -p '$oaccuracyresults.files_path' | |
39 && cp -r out/* '$oaccuracyresults.files_path' | |
40 && mv '$oaccuracyresults.files_path/index.html' '$oaccuracyresults' | |
41 ]]></command> | |
42 <inputs> | |
43 <param format="qza,no_unzip.zip" label="--i-distance-matrix: ARTIFACT DistanceMatrix a distance matrix [required]" name="idistancematrix" optional="False" type="data"/> | |
44 <param label="--m-metadata-column: COLUMN MetadataColumn[Categorical] Categorical metadata column to use as prediction target. [required]" name="mmetadatacolumn" optional="False" type="text"/> | |
45 <param label="--p-k: INTEGER Number of nearest neighbors [default: 1]" name="pk" optional="True" type="integer" value="1"/> | |
46 <param label="--p-palette: " name="ppalette" optional="True" type="select"> | |
47 <option selected="True" value="None">Selection is Optional</option> | |
48 <option value="YellowOrangeBrown">YellowOrangeBrown</option> | |
49 <option value="YellowOrangeRed">YellowOrangeRed</option> | |
50 <option value="OrangeRed">OrangeRed</option> | |
51 <option value="PurpleRed">PurpleRed</option> | |
52 <option value="RedPurple">RedPurple</option> | |
53 <option value="BluePurple">BluePurple</option> | |
54 <option value="GreenBlue">GreenBlue</option> | |
55 <option value="PurpleBlue">PurpleBlue</option> | |
56 <option value="YellowGreen">YellowGreen</option> | |
57 <option value="summer">summer</option> | |
58 <option value="copper">copper</option> | |
59 <option value="viridis">viridis</option> | |
60 <option value="plasma">plasma</option> | |
61 <option value="inferno">inferno</option> | |
62 <option value="magma">magma</option> | |
63 <option value="sirocco">sirocco</option> | |
64 <option value="drifting">drifting</option> | |
65 <option value="melancholy">melancholy</option> | |
66 <option value="enigma">enigma</option> | |
67 <option value="eros">eros</option> | |
68 <option value="spectre">spectre</option> | |
69 <option value="ambition">ambition</option> | |
70 <option value="mysteriousstains">mysteriousstains</option> | |
71 <option value="daydream">daydream</option> | |
72 <option value="solano">solano</option> | |
73 <option value="navarro">navarro</option> | |
74 <option value="dandelions">dandelions</option> | |
75 <option value="deepblue">deepblue</option> | |
76 <option value="verve">verve</option> | |
77 <option value="greyscale">greyscale</option> | |
78 </param> | |
79 | |
80 <repeat name="input_files_mmetadatafile" optional="True" title="--m-metadata-file"> | |
81 <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" /> | |
82 </repeat> | |
83 | |
84 </inputs> | |
85 <outputs> | |
86 <data format="qza" label="${tool.name} on ${on_string}: predictions.qza" name="opredictions"/> | |
87 <data format="html" label="${tool.name} on ${on_string}: accuracyresults.qzv" name="oaccuracyresults"/> | |
88 </outputs> | |
89 <help><![CDATA[ | |
90 Run k-nearest-neighbors on a labeled distance matrix. | |
91 ##################################################### | |
92 | |
93 Run k-nearest-neighbors on a labeled distance matrix. Return cross- | |
94 validated (leave one out) predictions and accuracy. k = 1 by default | |
95 | |
96 Parameters | |
97 ---------- | |
98 distance_matrix : DistanceMatrix | |
99 a distance matrix | |
100 metadata : MetadataColumn[Categorical] | |
101 Categorical metadata column to use as prediction target. | |
102 k : Int, optional | |
103 Number of nearest neighbors | |
104 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 | |
105 The color palette to use for plotting. | |
106 | |
107 Returns | |
108 ------- | |
109 predictions : SampleData[ClassifierPredictions] | |
110 leave one out predictions for each sample | |
111 accuracy_results : Visualization | |
112 Accuracy results visualization. | |
113 ]]></help> | |
114 <macros> | |
115 <import>qiime_citation.xml</import> | |
116 </macros> | |
117 <expand macro="qiime_citation"/> | |
118 </tool> |