Mercurial > repos > matthias > stacks2_clonefilter
comparison stacks_clonefilter.xml @ 0:a46a0b4b297d draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 8b047549e9e8791a5ca9424b1ef391e8980aba79-dirty
author | matthias |
---|---|
date | Thu, 29 Nov 2018 12:28:26 -0500 |
parents | |
children | 223e7778451a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a46a0b4b297d |
---|---|
1 <tool id="stacks2_clonefilter" name="Stacks2: clone filter" version="@WRAPPER_VERSION@"> | |
2 <description>Identify PCR clones</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements"/> | |
7 <expand macro="stdio"/> | |
8 <expand macro="version_cmd"/> | |
9 <command><![CDATA[ | |
10 | |
11 #if $data_type.dt_select == "single" | |
12 | |
13 #if $data_type.fname.is_of_type('fastqsanger') | |
14 #set $ext = ".fq" | |
15 #set inputype = "fastq" | |
16 #else | |
17 #set $ext = ".fq.gz" | |
18 #set inputype = "gzfastq" | |
19 #end if | |
20 | |
21 ln -s '$data_type.fname' R1$ext && | |
22 #else | |
23 | |
24 #if $data_type.fwd.is_of_type('fastqsanger') | |
25 #set $ext = ".fq" | |
26 #set inputype = "fastq" | |
27 #else | |
28 #set $ext = ".fq.gz" | |
29 #set inputype = "gzfastq" | |
30 #end if | |
31 | |
32 ln -s '$data_type.fwd' R1$ext && | |
33 ln -s '$data_type.rev' R2$ext && | |
34 #end if | |
35 | |
36 | |
37 mkdir clone_outputs | |
38 | |
39 && | |
40 | |
41 clone_filter | |
42 #if $data_type.dt_select == 'single': | |
43 -f R1$ext | |
44 #else | |
45 -1 R1$ext | |
46 -2 R2$ext | |
47 #end if | |
48 | |
49 -i $inputype | |
50 | |
51 -o clone_outputs | |
52 $capture | |
53 | |
54 #if $oligo_len_1 | |
55 --oligo_len_1 $oligo_len_1 | |
56 $data_type.barcode_encoding | |
57 #end if | |
58 #if $oligo_len_2 | |
59 --oligo_len_2 $oligo_len_2 | |
60 #end if | |
61 $retain_oligo | |
62 ## only supports fastq.gz output since the | |
63 ## the program outputs empty files for fasta/fastq | |
64 -y gzfastq | |
65 | |
66 ]]></command> | |
67 <inputs> | |
68 <conditional name="data_type"> | |
69 <param name="dt_select" type="select" label="Single or Paired-end"> | |
70 <option value="single">Single</option> | |
71 <option value="pair">Pair</option> | |
72 </param> | |
73 <when value="single"> | |
74 <param name="fname" type="data" format="fastqsanger,fastqsanger.gz" label="FASTQ" /> | |
75 <param name="barcode_encoding" type="select" label="Barcode location"> | |
76 <expand macro="barcode_encoding_single" /> | |
77 </param> | |
78 | |
79 </when> | |
80 <when value="pair"> | |
81 <param name="fwd" type="data" format="fastqsanger,fastqsanger.gz" label="Forward FASTQ" /> | |
82 <param name="rev" type="data" format="fastqsanger,fastqsanger.gz" label="Reverse FASTQ" /> | |
83 <param name="barcode_encoding" type="select" label="Barcode location"> | |
84 <expand macro="barcode_encoding_pair" /> | |
85 </param> | |
86 </when> | |
87 </conditional> | |
88 <param name="capture" type="boolean" checked="false" truevalue="-D" falsevalue="" argument="-D" label="Capture discarded reads to a file" /> | |
89 <param name="oligo_len_1" optional="true" type="integer" label="length of the single-end oligo sequence in data set"/> | |
90 <param name="oligo_len_2" optional="true" type="integer" label="length of the paired-end oligo sequence in data set"/> | |
91 <param argument="--retain_oligo" type="boolean" checked="false" truevalue="--retain_oligo" falsevalue="" label="do not trim off the random oligo sequence (if oligo is inline)" /> | |
92 | |
93 </inputs> | |
94 <outputs> | |
95 <data format="fastqsanger.gz" name="clean" from_work_dir="clone_outputs/R1.fq.gz" label="${tool.name} on ${on_string}"> | |
96 <filter>data_type['dt_select'] == 'single'</filter> | |
97 </data> | |
98 | |
99 <data format="fastqsanger.gz" name="clean_fwd" from_work_dir="clone_outputs/R1.1.fq.gz" label="${tool.name} on ${on_string} Forward reads"> | |
100 <filter>data_type['dt_select'] == 'pair'</filter> | |
101 </data> | |
102 <data format="fastqsanger.gz" name="clean_rev" from_work_dir="clone_outputs/R2.2.fq.gz" label="${tool.name} on ${on_string} Reverse reads"> | |
103 <filter>data_type['dt_select'] == 'pair'</filter> | |
104 </data> | |
105 </outputs> | |
106 <tests> | |
107 <test> | |
108 <conditional name="data_type"> | |
109 <param name="dt_select" value="single" /> | |
110 <param name="fname" ftype="fastqsanger.gz" value="clonefilter/R1_0001.1.fq.gz" /> | |
111 </conditional> | |
112 <param name="oligo_len_1" value="6" /> | |
113 <output name="clean" compare="sim_size" file="clonefilter/Removed1_0001.1.1.fq.single.gz"/> | |
114 </test> | |
115 <test> | |
116 <conditional name="data_type"> | |
117 <param name="dt_select" value="single" /> | |
118 <param name="fname" ftype="fastqsanger.gz" value="clonefilter/R1_0001.1.fq.gz" /> | |
119 <param name="barcode_encoding" value="--index_null" /> | |
120 </conditional> | |
121 <output name="clean" compare="sim_size" file="clonefilter/Removed1_0001.1.1.fq.gz"/> | |
122 </test> | |
123 <test> | |
124 <conditional name="data_type"> | |
125 <param name="dt_select" value="pair" /> | |
126 <param name="fwd" ftype="fastqsanger" value="clonefilter/R1_0001.1.fq.gz" /> | |
127 <param name="rev" ftype="fastqsanger" value="clonefilter/R2_0001.2.fq.gz" /> | |
128 </conditional> | |
129 <output name="clean_fwd" compare="sim_size" file="clonefilter/Removed1_0001.1.1.fq.gz"/> | |
130 <output name="clean_rev" compare="sim_size" file="clonefilter/Removed2_0001.2.2.fq.gz"/> | |
131 </test> | |
132 <test> | |
133 <conditional name="data_type"> | |
134 <param name="dt_select" value="pair" /> | |
135 <param name="fwd" ftype="fastqsanger.gz" value="clonefilter/R1_0001.1.fq.gz" /> | |
136 <param name="rev" ftype="fastqsanger.gz" value="clonefilter/R2_0001.2.fq.gz" /> | |
137 </conditional> | |
138 <output name="clean_fwd" compare="sim_size" file="clonefilter/Removed1_0001.1.1.fq.gz"/> | |
139 <output name="clean_rev" compare="sim_size" file="clonefilter/Removed2_0001.2.2.fq.gz"/> | |
140 </test> | |
141 </tests> | |
142 <help> | |
143 <![CDATA[ | |
144 .. class:: infomark | |
145 | |
146 | |
147 The clone_filter program is designed to identify PCR clones. | |
148 | |
149 @STACKS_INFOS@ | |
150 ]]> | |
151 </help> | |
152 <expand macro="citation" /> | |
153 </tool> |