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