5
|
1 <tool id="yac" name="Clip adapter" version="1.0.0">
|
|
2 <description></description>
|
|
3 <command interpreter="python">yac.py $input $output $clip_source.clip_sequence $min $max $Nmode</command>
|
|
4 <inputs>
|
|
5 <param format="fastq" name="input" type="data" label="Source file"/>
|
|
6 <param name="min" type="integer" size="4" value="15" label="min size"/>
|
|
7 <param name="max" type="integer" size="4" value="36" label="max size"/>
|
|
8 <param name="Nmode" type="select" label="Reads containing Nst">
|
|
9 <option value="accept" selected="True">accept</option>
|
|
10 <option value="reject">reject</option>
|
|
11 </param>
|
|
12 <conditional name="clip_source">
|
|
13 <param name="clip_source_list" type="select" label="Source" help="Built-in adapters or User-provided">
|
|
14 <option value="prebuilt" selected="True">Use a built-in adapter (select from the list below)</option>
|
|
15 <option value="user">Use custom sequence</option>
|
|
16 </param>
|
|
17 <when value="prebuilt">
|
|
18 <param name="clip_sequence" type="select" label="Select Adapter to clip" help="if your adapter is not listed, input your own sequence">
|
|
19 <option value="TCGTATGCCGTCTTCTGCTTG">Solexa TCGTATGCCGTCTTCTGCTTG</option>
|
|
20 <option value="ATCTCGTATGCCGTCTTCTGCTT">Illumina ATCTCGTATGCCGTCTTCTGCTT</option>
|
|
21 <option value="TGGAATTCTCGGGTGCCAAG" selected="True">Illumina TruSeq TGGAATTCTCGGGTGCCAAG</option>
|
|
22 <option value="CTGTAGGCACCATCAATCGT">IdT CTGTAGGCACCATCAATCGT</option>
|
|
23 </param>
|
|
24 </when>
|
|
25 <when value="user">
|
|
26 <param name="clip_sequence" type="text" size="35" label="Enter your Sequence" value="GAATCC"/>
|
|
27 </when>
|
|
28 </conditional>
|
|
29 </inputs>
|
|
30 <outputs>
|
|
31 <data format="fasta" name="output" metadata="input" />
|
|
32 </outputs>
|
|
33
|
|
34 <help>
|
|
35 <!-- write a decent doc ! -->
|
|
36 This tool clips adapter sequences from a fastq file and fasta file of clipped reads with renumbered fasta headers.
|
|
37
|
|
38 Clipped sequences with Ns can be discarded.
|
|
39
|
|
40 Min size and max size filter clipped reads on their size.
|
|
41
|
|
42 Note that unclipped reads that satisfy the min and max size conditions are kept.
|
|
43 </help>
|
|
44
|
|
45 <!-- write a <test> section -->
|
|
46 <tests>
|
|
47 <test>
|
|
48 <param name="input" value="yac.fastq" ftype="fastqsanger"/>
|
|
49 <param name="min" value="18" />
|
|
50 <param name="max" value="29" />
|
|
51 <param name="clip_source_list" value="prebuilt" />
|
|
52 <param name="clip_sequence" value="ATCTCGTATGCCGTCTTCTGCTT" />
|
|
53 <param name="Nmode" value="accept" />
|
|
54 <output name="output" file="yac.out" />
|
|
55 </test>
|
|
56 </tests>
|
|
57
|
|
58 </tool>
|