annotate ngs-tools_sample.xml @ 1:c72bbd681253 draft default tip

Updated to use ngs-tools 0.1.8.
author cjav
date Mon, 14 Oct 2013 14:45:04 -0400
parents ce82ef822782
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ce82ef822782 Initial release.
cjav
parents:
diff changeset
1 <tool id="ngs-tools_sample" name="Sample (ngs-tools)" version="1.0.0">
ce82ef822782 Initial release.
cjav
parents:
diff changeset
2 <description></description>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
3 <requirements>
1
c72bbd681253 Updated to use ngs-tools 0.1.8.
cjav
parents: 0
diff changeset
4 <requirement type="package" version="0.1.8">ngs-tools</requirement>
0
ce82ef822782 Initial release.
cjav
parents:
diff changeset
5 </requirements>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
6 <command>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
7 ngs-tools sample
ce82ef822782 Initial release.
cjav
parents:
diff changeset
8 --input-format $input_format.format
ce82ef822782 Initial release.
cjav
parents:
diff changeset
9 --sample-size $size
ce82ef822782 Initial release.
cjav
parents:
diff changeset
10 --output $output_file
ce82ef822782 Initial release.
cjav
parents:
diff changeset
11 #if str($input_format.paired.paired_selector) == "True"
ce82ef822782 Initial release.
cjav
parents:
diff changeset
12 --output-pair $output_file_pair
ce82ef822782 Initial release.
cjav
parents:
diff changeset
13 #end if
ce82ef822782 Initial release.
cjav
parents:
diff changeset
14 $input_format.paired.input_file
ce82ef822782 Initial release.
cjav
parents:
diff changeset
15 #if str($input_format.paired.paired_selector) == "True"
ce82ef822782 Initial release.
cjav
parents:
diff changeset
16 $input_format.paired.input_file_pair
ce82ef822782 Initial release.
cjav
parents:
diff changeset
17 #end if
ce82ef822782 Initial release.
cjav
parents:
diff changeset
18 </command>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
19 <inputs>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
20 <conditional name="input_format">
ce82ef822782 Initial release.
cjav
parents:
diff changeset
21 <param name="format" type="select" label="Input format">
ce82ef822782 Initial release.
cjav
parents:
diff changeset
22 <option value="fastq" selected="true">Fastq</option>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
23 </param>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
24 <when value="fastq">
ce82ef822782 Initial release.
cjav
parents:
diff changeset
25 <conditional name="paired">
ce82ef822782 Initial release.
cjav
parents:
diff changeset
26 <param name="paired_selector" type="select" label="Paired data?">
ce82ef822782 Initial release.
cjav
parents:
diff changeset
27 <option value="True">Yes</option>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
28 <option value="False" selected="true">No</option>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
29 </param>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
30 <when value="True">
ce82ef822782 Initial release.
cjav
parents:
diff changeset
31 <param name="input_file" type="data" format="fastq" label="FASTQ File to sample from" />
ce82ef822782 Initial release.
cjav
parents:
diff changeset
32 <param name="input_file_pair" type="data" format="fastq" label="FASTQ Paired File to sample from" />
ce82ef822782 Initial release.
cjav
parents:
diff changeset
33 </when>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
34 <when value="False">
ce82ef822782 Initial release.
cjav
parents:
diff changeset
35 <param name="input_file" type="data" format="fastq" label="FASTQ File to sample from" />
ce82ef822782 Initial release.
cjav
parents:
diff changeset
36 </when>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
37 </conditional>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
38 </when>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
39 </conditional>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
40 <param name="size" type="integer" size="6" value="100" label="Number of records to sample" />
ce82ef822782 Initial release.
cjav
parents:
diff changeset
41 </inputs>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
42 <outputs>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
43 <data name="output_file" format="input" />
ce82ef822782 Initial release.
cjav
parents:
diff changeset
44 <data name="output_file_pair" format="input">
ce82ef822782 Initial release.
cjav
parents:
diff changeset
45 <filter>input_format['paired']['paired_selector'] == "True"</filter>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
46 </data>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
47 </outputs>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
48 <help>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
49
ce82ef822782 Initial release.
cjav
parents:
diff changeset
50 **What it does**
ce82ef822782 Initial release.
cjav
parents:
diff changeset
51
ce82ef822782 Initial release.
cjav
parents:
diff changeset
52 This tool samples a random number of records from the input file(s). Supports
ce82ef822782 Initial release.
cjav
parents:
diff changeset
53 paired data assuming paired files are in sync.
ce82ef822782 Initial release.
cjav
parents:
diff changeset
54
ce82ef822782 Initial release.
cjav
parents:
diff changeset
55 Supported formats: FASTQ.
ce82ef822782 Initial release.
cjav
parents:
diff changeset
56
ce82ef822782 Initial release.
cjav
parents:
diff changeset
57 --------
ce82ef822782 Initial release.
cjav
parents:
diff changeset
58
ce82ef822782 Initial release.
cjav
parents:
diff changeset
59 This tool is based on `ngs-tools`__ by Carlos Borroto &lt;carlos.borroto@gmail.com&gt;.
ce82ef822782 Initial release.
cjav
parents:
diff changeset
60
ce82ef822782 Initial release.
cjav
parents:
diff changeset
61 .. __: https://github.com/cjav/ngs-tools/
ce82ef822782 Initial release.
cjav
parents:
diff changeset
62
ce82ef822782 Initial release.
cjav
parents:
diff changeset
63 </help>
ce82ef822782 Initial release.
cjav
parents:
diff changeset
64 </tool>