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