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