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