0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_sample-classifier_split-table" name="qiime sample-classifier split-table" version="2019.4">
|
|
3 <description> - Split a feature table into training and testing sets.</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime sample-classifier split-table
|
|
9
|
|
10 --i-table=$itable
|
|
11 --m-metadata-column="$mmetadatacolumn"
|
|
12
|
|
13
|
|
14
|
5
|
15 #if $metadatafile:
|
|
16 --m-metadata-file=$metadatafile
|
0
|
17 #end if
|
|
18
|
|
19
|
|
20
|
5
|
21
|
|
22 #if str($ptestsize):
|
0
|
23 --p-test-size=$ptestsize
|
|
24 #end if
|
|
25
|
|
26 #if str($prandomstate):
|
|
27 --p-random-state="$prandomstate"
|
|
28 #end if
|
|
29
|
|
30 #if $pnostratify:
|
|
31 --p-no-stratify
|
|
32 #end if
|
|
33
|
|
34 #if str($pmissingsamples) != 'None':
|
|
35 --p-missing-samples=$pmissingsamples
|
|
36 #end if
|
|
37
|
|
38 --o-training-table=otrainingtable
|
|
39 --o-test-table=otesttable
|
|
40 ;
|
|
41 cp otrainingtable.qza $otrainingtable;
|
|
42 cp otesttable.qza $otesttable;
|
|
43 ]]></command>
|
|
44 <inputs>
|
|
45 <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"/>
|
|
46 <param label="--m-metadata-column: COLUMN MetadataColumn[Numeric | Categorical] Numeric metadata column to use as prediction target. [required]" name="mmetadatacolumn" optional="False" type="text"/>
|
|
47 <param label="--p-test-size: PROPORTION Range(0.0, 1.0, inclusive_start=False) Fraction of input samples to exclude from training set and use for classifier testing. [default: 0.2]" name="ptestsize" optional="True" type="float" value="0.2" min="0" max="1" exclusive_end="True"/>
|
|
48 <param label="--p-random-state: INTEGER Seed used by random number generator. [optional]" name="prandomstate" optional="True" type="integer"/>
|
|
49 <param label="--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="pnostratify" selected="False" type="boolean"/>
|
|
50 <param label="--p-missing-samples: " name="pmissingsamples" optional="True" type="select">
|
|
51 <option selected="True" value="None">Selection is Optional</option>
|
|
52 <option value="error">error</option>
|
|
53 <option value="ignore">ignore</option>
|
|
54 </param>
|
|
55
|
5
|
56 <param label="--m-metadata-file METADATA" name="metadatafile" type="data" format="tabular,qza,no_unzip.zip" />
|
0
|
57
|
|
58 </inputs>
|
|
59 <outputs>
|
|
60 <data format="qza" label="${tool.name} on ${on_string}: trainingtable.qza" name="otrainingtable"/>
|
|
61 <data format="qza" label="${tool.name} on ${on_string}: testtable.qza" name="otesttable"/>
|
|
62 </outputs>
|
|
63 <help><![CDATA[
|
|
64 Split a feature table into training and testing sets.
|
|
65 #####################################################
|
|
66
|
|
67 Split a feature table into training and testing sets. By default stratifies
|
|
68 training and test sets on a metadata column, such that values in that
|
|
69 column are evenly represented across training and test sets.
|
|
70
|
|
71 Parameters
|
|
72 ----------
|
|
73 table : FeatureTable[Frequency]
|
|
74 Feature table containing all features that should be used for target
|
|
75 prediction.
|
|
76 metadata : MetadataColumn[Numeric | Categorical]
|
|
77 Numeric metadata column to use as prediction target.
|
|
78 test_size : Float % Range(0.0, 1.0, inclusive_start=False), optional
|
|
79 Fraction of input samples to exclude from training set and use for
|
|
80 classifier testing.
|
|
81 random_state : Int, optional
|
|
82 Seed used by random number generator.
|
|
83 stratify : Bool, optional
|
|
84 Evenly stratify training and test data among metadata categories. If
|
|
85 True, all values in column must match at least two samples.
|
|
86 missing_samples : Str % Choices('error', 'ignore'), optional
|
|
87 How to handle missing samples in metadata. "error" will fail if missing
|
|
88 samples are detected. "ignore" will cause the feature table and
|
|
89 metadata to be filtered, so that only samples found in both files are
|
|
90 retained.
|
|
91
|
|
92 Returns
|
|
93 -------
|
|
94 training_table : FeatureTable[Frequency]
|
|
95 Feature table containing training samples
|
|
96 test_table : FeatureTable[Frequency]
|
|
97 Feature table containing test samples
|
|
98 ]]></help>
|
|
99 <macros>
|
|
100 <import>qiime_citation.xml</import>
|
|
101 </macros>
|
|
102 <expand macro="qiime_citation"/>
|
|
103 </tool>
|