20
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_feature-table_subsample" name="qiime feature-table subsample"
|
|
3 version="2020.8">
|
|
4 <description>Subsample table</description>
|
|
5 <requirements>
|
|
6 <requirement type="package" version="2020.8">qiime2</requirement>
|
|
7 </requirements>
|
|
8 <command><![CDATA[
|
|
9 qiime feature-table subsample
|
|
10
|
|
11 --i-table=$itable
|
|
12
|
|
13 --p-subsampling-depth=$psubsamplingdepth
|
|
14
|
|
15 --p-axis=$paxis
|
|
16
|
|
17 --o-sampled-table=osampledtable
|
|
18
|
|
19 #if str($examples) != 'None':
|
|
20 --examples=$examples
|
|
21 #end if
|
|
22
|
|
23 ;
|
|
24 cp osampledtable.qza $osampledtable
|
|
25
|
|
26 ]]></command>
|
|
27 <inputs>
|
|
28 <param format="qza,no_unzip.zip" label="--i-table: ARTIFACT FeatureTable[Frequency] The feature table to be sampled. [required]" name="itable" optional="False" type="data" />
|
|
29 <param label="--p-subsampling-depth: INTEGER Range(1, None) The total number of samples or features to be randomly sampled. Samples or features that are reduced to a zero sum will not be included in the resulting table. [required]" name="psubsamplingdepth" optional="False" type="text" />
|
|
30 <param label="--p-axis: " name="paxis" optional="False" type="select">
|
|
31 <option value="sample">sample</option>
|
|
32 <option value="feature">feature</option>
|
|
33 </param>
|
|
34 <param label="--examples: Show usage examples and exit." name="examples" optional="False" type="data" />
|
|
35
|
|
36 </inputs>
|
|
37
|
|
38 <outputs>
|
|
39 <data format="qza" label="${tool.name} on ${on_string}: sampledtable.qza" name="osampledtable" />
|
|
40
|
|
41 </outputs>
|
|
42
|
|
43 <help><![CDATA[
|
|
44 Subsample table
|
|
45 ###############################################################
|
|
46
|
|
47 Randomly pick samples or features, without replacement, from the table.
|
|
48
|
|
49 Parameters
|
|
50 ----------
|
|
51 table : FeatureTable[Frequency]
|
|
52 The feature table to be sampled.
|
|
53 subsampling_depth : Int % Range(1, None)
|
|
54 The total number of samples or features to be randomly sampled. Samples
|
|
55 or features that are reduced to a zero sum will not be included in the
|
|
56 resulting table.
|
|
57 axis : Str % Choices('sample', 'feature')
|
|
58 The axis to sample over. If "sample" then samples will be randomly
|
|
59 selected to be retained. If "feature" then a random set of features
|
|
60 will be selected to be retained.
|
|
61
|
|
62 Returns
|
|
63 -------
|
|
64 sampled_table : FeatureTable[Frequency]
|
|
65 The resulting subsampled feature table.
|
|
66 ]]></help>
|
|
67 <macros>
|
|
68 <import>qiime_citation.xml</import>
|
|
69 </macros>
|
|
70 <expand macro="qiime_citation"/>
|
|
71 </tool> |