comparison subset_data.xml @ 1:2e7d47c0b027 draft

"planemo upload for repository https://malex@toolshed.g2.bx.psu.edu/repos/malex/secimtools"
author malex
date Mon, 08 Mar 2021 22:04:06 +0000
parents
children caba07f41453
comparison
equal deleted inserted replaced
0:b54326490b4d 1:2e7d47c0b027
1 <tool id="secimtools_subset_data" name="Subset Wide Data and Design File" version="@WRAPPER_VERSION@">
2 <description>- Based on groups.</description>
3 <requirements>
4 <requirement type="python-module">os</requirement>
5 <requirement type="python-module">pandas</requirement>
6 <requirement type="python-module">interface</requirement>
7 </requirements>
8 <command detect_errors="exit_code"><![CDATA[
9 subset_data.py
10 --input $input
11 --design $design
12 --uniqID $uniqID
13 #if $group
14 --group $group
15 #end if
16 --drops $toDrop
17 --out $out
18 ]]></command>
19 <inputs>
20 <param name="input" type="data" format="tabular" label="Wide Dataset" help="Input your tab-separated wide format dataset. If not tab separated see TIP below."/>
21 <param name="design" type="data" format="tabular" label="Design File" help="Input your design file (tab-separated). Note you need a 'sampleID' column. If not tab separated see TIP below."/>
22 <param name="uniqID" type="text" size="30" value="" label="Unique Feature ID" help="Name of the column in your wide dataset that has unique identifiers."/>
23 <param name="group" type="text" size="30" value="" optional="false" label="Group/Treatment [Optional]" help="Name of the column in your design file that contains group classifications. If not provided, the drop will be performed by 'sampleID'."/>
24 <param name="toDrop" type="text" size="30" optional="false" label="Group(s)/Sample(s) to drop" help="Name of the Group(s)/Sample(s), comma separated, that will be removed from your wide datset."/>
25 </inputs>
26 <outputs>
27 <data format="tabular" name="out" label="${tool.name} on ${on_string}: Value"/>
28 </outputs>
29 <macros>
30 <import>macros.xml</import>
31 </macros>
32 <tests>
33 <test>
34 <param name="input" value="ST000006_data.tsv"/>
35 <param name="design" value="ST000006_design_names_underscore.tsv"/>
36 <param name="uniqID" value="Retention_Index" />
37 <param name="group" value="White_wine_type_and_source" />
38 <param name="drops" value="Chardonnay_ Napa_ CA 2003,Riesling_ CA 2004" />
39 <output name="out" file="ST000006_subset_data_output.tsv" />
40 </test>
41 </tests>
42 <help>
43
44 @TIP_AND_WARNING@
45
46 **Tool Description**
47
48 The tool creates new wide format dataset and design dataset based on the existing wide and design datasets where only groups specified by the user are present.
49 The user chooses which group(s) to include in the new datasets.
50
51 --------------------------------------------------------------------------------
52
53 **Input**
54
55 - Two input datasets are required.
56
57 @WIDE@
58
59 **NOTE:** The sample IDs must match the sample IDs in the Design File
60 (below). Extra columns will automatically be ignored.
61
62 @METADATA@
63
64 @UNIQID@
65
66 **Group/Treatment [Optional]**
67
68 - Name of the column in your Design File that contains group classifications. If none provided the drop will be performed by 'sampleID'.
69
70 **Group(s)/Sample(s) to drop**
71
72 - Name of the Group(s)/Sample(s), comma separeted, that will be removed from your wide datset.
73
74 --------------------------------------------------------------------------------
75
76 **Output**
77
78 This tool will output two TSV files: a TSV file containing the subset of the original wide format dataset and a TSV file containing the subset of the original design dataset. Both datasets will contain only the samples belonging to groups selected by the user.
79
80 ]]></help>
81 <expand macro="citations"/>
82 </tool>