0
|
1 <tool id="PHYLO_bootstrap" name="Prepare data" version="1.1.0">
|
|
2 <description>for analysis</description>
|
6
|
3 <macros>
|
|
4 <import>macros.xml</import>
|
|
5 </macros>
|
0
|
6 <requirements>
|
|
7 <requirement type="package">yapp_env</requirement>
|
|
8 </requirements>
|
6
|
9 <stdio>
|
|
10 <expand macro="basic_errors"/>
|
|
11 </stdio>
|
0
|
12 <version_command>echo "bootstrap script 1.1.0"</version_command>
|
|
13 <command interpreter="bash">
|
|
14 bootstrap-wrapper.sh $config
|
|
15 </command>
|
|
16 <inputs>
|
|
17 <param name="plate_id" type="integer" value="1" label="Plate number"/>
|
|
18 <conditional name="run_type">
|
|
19 <param name="run_type_select" type="select" label="Run type">
|
|
20 <option value="junior">Junior</option>
|
|
21 <option value="senior">Senior</option>
|
|
22 </param>
|
|
23 <when value="junior"></when>
|
|
24 <when value="senior">
|
|
25 <param name="zone_id" type="integer" value="1" label="Zone number"/>
|
|
26 </when>
|
|
27 </conditional>
|
|
28 <param name="sample_info" type="data" format="csv" label="Sample information"/>
|
|
29 </inputs>
|
|
30 <outputs>
|
|
31 <data format="csv" name="barcodes" label="Specimen-to-barcode map"/>
|
|
32 <data format="csv" name="labels" label="Specimen-to-label map"/>
|
|
33 <data format="csv" name="metadata" label="Metadata template"/>
|
|
34 </outputs>
|
|
35 <configfiles>
|
|
36 <configfile name="config">
|
|
37 PLATE_ID="${plate_id}"
|
|
38 #if $run_type.run_type_select == "senior"
|
|
39 JUNIOR=""
|
|
40 ZONE_ID="${run_type.zone_id}"
|
|
41 #else
|
|
42 JUNIOR="--junior"
|
|
43 ZONE_ID="1"
|
|
44 #end if
|
|
45 SAMPLE_INFO="${sample_info}"
|
|
46
|
|
47 BARCODES="${barcodes}"
|
|
48 LABELS="${labels}"
|
|
49 METADATA="${metadata}"
|
|
50 </configfile>
|
|
51 </configfiles>
|
|
52 <!-- The contents of the help tag is parsed as reStructuredText. Please see
|
|
53 help-template.rst for examples of commonly-used sections in other Galaxy
|
|
54 tools. -->
|
|
55 <help>
|
|
56
|
|
57 .. class:: infomark
|
|
58
|
|
59 **What it does**
|
|
60
|
|
61 This tool parses sample information and creates a mapping of samples to
|
|
62 barcodes. The sample information file must contain the columns ``sampleid``,
|
|
63 ``barcode``, and ``reverse``, and can optionally contain a ``zone`` column
|
|
64 also.
|
|
65
|
|
66 </help>
|
|
67 </tool>
|