0
|
1 <?xml version="1.0" ?>
|
9
|
2 <tool id="qiime_sample-classifier_classify-samples-ncv" name="qiime sample-classifier classify-samples-ncv" version="2019.7">
|
0
|
3 <description> - Nested cross-validated supervised learning classifier.</description>
|
|
4 <requirements>
|
9
|
5 <requirement type="package" version="2019.7">qiime2</requirement>
|
0
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime sample-classifier classify-samples-ncv
|
|
9
|
|
10 --i-table=$itable
|
|
11 --m-metadata-column="$mmetadatacolumn"
|
|
12
|
2
|
13
|
5
|
14
|
|
15 #if $metadatafile:
|
|
16 --m-metadata-file=$metadatafile
|
0
|
17 #end if
|
|
18
|
2
|
19
|
6
|
20 #if str($pcv):
|
0
|
21 --p-cv=$pcv
|
|
22 #end if
|
|
23
|
|
24 #if str($prandomstate):
|
|
25 --p-random-state="$prandomstate"
|
|
26 #end if
|
|
27
|
|
28 #set $pnjobs = '${GALAXY_SLOTS:-4}'
|
|
29
|
|
30 #if str($pnjobs):
|
|
31 --p-n-jobs="$pnjobs"
|
|
32 #end if
|
|
33
|
|
34
|
6
|
35 #if str($pnestimators):
|
0
|
36 --p-n-estimators=$pnestimators
|
|
37 #end if
|
|
38
|
|
39 #if str($pestimator) != 'None':
|
|
40 --p-estimator=$pestimator
|
|
41 #end if
|
|
42
|
|
43 #if $pparametertuning:
|
|
44 --p-parameter-tuning
|
|
45 #end if
|
|
46
|
|
47 #if str($pmissingsamples) != 'None':
|
|
48 --p-missing-samples=$pmissingsamples
|
|
49 #end if
|
|
50
|
9
|
51 --o-probabilities=oprobabilities
|
0
|
52 --o-predictions=opredictions
|
|
53 --o-feature-importance=ofeatureimportance
|
|
54 ;
|
9
|
55 cp oprobabilities.qza $oprobabilities;
|
0
|
56 cp opredictions.qza $opredictions;
|
|
57 cp ofeatureimportance.qza $ofeatureimportance
|
|
58 ]]></command>
|
|
59 <inputs>
|
|
60 <param format="qza,no_unzip.zip" label="--i-table: ARTIFACT FeatureTable[Frequency] Feature table containing all features that should be used for target prediction. [required]" name="itable" optional="False" type="data"/>
|
|
61 <param label="--m-metadata-column: COLUMN MetadataColumn[Categorical] Categorical metadata column to use as prediction target. [required]" name="mmetadatacolumn" optional="False" type="text"/>
|
|
62 <param label="--p-cv: INTEGER Number of k-fold cross-validations to perform. Range(1, None) [default: 5]" name="pcv" optional="True" type="integer" value="5" min="1"/>
|
|
63 <param label="--p-random-state: INTEGER Seed used by random number generator. [optional]" name="prandomstate" optional="True" type="integer"/>
|
|
64 <param label="--p-n-estimators: INTEGER Range(1, None) Number of trees to grow for estimation. More trees will improve predictive accuracy up to a threshold level, but will also increase time and memory requirements. This parameter only affects ensemble estimators, such as Random Forest, AdaBoost, ExtraTrees, and GradientBoosting. [default: 100]" name="pnestimators" optional="True" type="integer" value="100" min="1"/>
|
|
65 <param label="--p-estimator: " name="pestimator" optional="True" type="select">
|
|
66 <option selected="True" value="None">Selection is Optional</option>
|
|
67 <option value="RandomForestClassifier">RandomForestClassifier</option>
|
|
68 <option value="ExtraTreesClassifier">ExtraTreesClassifier</option>
|
|
69 <option value="GradientBoostingClassifier">GradientBoostingClassifier</option>
|
|
70 <option value="AdaBoostClassifier">AdaBoostClassifier</option>
|
|
71 <option value="KNeighborsClassifier">KNeighborsClassifier</option>
|
|
72 <option value="LinearSVC">LinearSVC</option>
|
|
73 <option value="SVC">SVC</option>
|
|
74 </param>
|
|
75 <param label="--p-parameter-tuning: --p-no-parameter-tuning Automatically tune hyperparameters using random grid search. [default: False]" name="pparametertuning" selected="False" type="boolean"/>
|
|
76 <param label="--p-missing-samples: " name="pmissingsamples" optional="True" type="select">
|
|
77 <option selected="True" value="None">Selection is Optional</option>
|
|
78 <option value="error">error</option>
|
|
79 <option value="ignore">ignore</option>
|
|
80 </param>
|
|
81
|
5
|
82 <param label="--m-metadata-file METADATA" name="metadatafile" type="data" format="tabular,qza,no_unzip.zip" />
|
|
83
|
0
|
84 </inputs>
|
|
85 <outputs>
|
9
|
86 <data format="qza" label="${tool.name} on ${on_string}: probabilities.qza" name="oprobabilities"/>
|
0
|
87 <data format="qza" label="${tool.name} on ${on_string}: predictions.qza" name="opredictions"/>
|
|
88 <data format="qza" label="${tool.name} on ${on_string}: featureimportance.qza" name="ofeatureimportance"/>
|
|
89 </outputs>
|
|
90 <help><![CDATA[
|
|
91 Nested cross-validated supervised learning classifier.
|
|
92 ######################################################
|
|
93
|
|
94 Predicts a categorical sample metadata column using a supervised learning
|
|
95 classifier. Uses nested stratified k-fold cross validation for automated
|
|
96 hyperparameter optimization and sample prediction. Outputs predicted values
|
|
97 for each input sample, and relative importance of each feature for model
|
|
98 accuracy.
|
|
99
|
|
100 Parameters
|
|
101 ----------
|
|
102 table : FeatureTable[Frequency]
|
|
103 Feature table containing all features that should be used for target
|
|
104 prediction.
|
|
105 metadata : MetadataColumn[Categorical]
|
|
106 Categorical metadata column to use as prediction target.
|
|
107 cv : Int % Range(1, None), optional
|
|
108 Number of k-fold cross-validations to perform.
|
|
109 random_state : Int, optional
|
|
110 Seed used by random number generator.
|
|
111 n_estimators : Int % Range(1, None), optional
|
|
112 Number of trees to grow for estimation. More trees will improve
|
|
113 predictive accuracy up to a threshold level, but will also increase
|
|
114 time and memory requirements. This parameter only affects ensemble
|
|
115 estimators, such as Random Forest, AdaBoost, ExtraTrees, and
|
|
116 GradientBoosting.
|
|
117 estimator : Str % Choices('RandomForestClassifier', 'ExtraTreesClassifier', 'GradientBoostingClassifier', 'AdaBoostClassifier', 'KNeighborsClassifier', 'LinearSVC', 'SVC'), optional
|
|
118 Estimator method to use for sample prediction.
|
|
119 parameter_tuning : Bool, optional
|
|
120 Automatically tune hyperparameters using random grid search.
|
|
121 missing_samples : Str % Choices('error', 'ignore'), optional
|
|
122 How to handle missing samples in metadata. "error" will fail if missing
|
|
123 samples are detected. "ignore" will cause the feature table and
|
|
124 metadata to be filtered, so that only samples found in both files are
|
|
125 retained.
|
|
126
|
|
127 Returns
|
|
128 -------
|
|
129 predictions : SampleData[ClassifierPredictions]
|
|
130 Predicted target values for each input sample.
|
|
131 feature_importance : FeatureData[Importance]
|
|
132 Importance of each input feature to model accuracy.
|
9
|
133 probabilities : SampleData[Probabilities]
|
|
134 Predicted class probabilities for each input sample.
|
0
|
135 ]]></help>
|
|
136 <macros>
|
|
137 <import>qiime_citation.xml</import>
|
|
138 </macros>
|
|
139 <expand macro="qiime_citation"/>
|
|
140 </tool>
|