Mercurial > repos > thondeboer > neat_genreads
comparison genSeqErrorModel.xml @ 0:6e75a84e9338 draft
planemo upload commit e96b43f96afce6a7b7dfd4499933aad7d05c955e-dirty
author | thondeboer |
---|---|
date | Tue, 15 May 2018 02:39:53 -0400 |
parents | |
children | 362e0b0f7024 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6e75a84e9338 |
---|---|
1 <tool id="genSeqErrorModel" | |
2 name="genSeqErrorModel" | |
3 version="1.0.0" | |
4 profile="16.04"> | |
5 <description>generates sequence error model for genReads. Creates model file for use in NEAT-genReads</description> | |
6 <requirements> | |
7 <requirement type="package" version="1.9.1">numpy</requirement> | |
8 <requirement type="package">matplotlib</requirement> | |
9 </requirements> | |
10 <command detect_errors="exit_code"> | |
11 <![CDATA[ | |
12 #if $lib_type_cond.read1.ext == "fastqsanger.gz": | |
13 ln -s $lib_type_cond.read1 read1.fq.gz | |
14 #set $read1="read1.fq.gz" | |
15 #if $lib_type_cond.lib_type == 'paired': | |
16 && ln -s $lib_type_cond.read2 read2.fq.gz | |
17 #set $read2="read2.fq.gz" | |
18 #end if | |
19 #else | |
20 ln -s $lib_type_cond.read1 read1.fq | |
21 #set $read1="read1.fq" | |
22 #if $lib_type_cond.lib_type == 'paired': | |
23 && ln -s $lib_type_cond.read2 read2.fq | |
24 #set $read2="read2.fq" | |
25 #end if | |
26 #end if | |
27 && python2 $__tool_directory__/utilities/genSeqErrorModel.py | |
28 -i $read1 | |
29 #if $lib_type_cond.lib_type == 'paired': | |
30 -i2 $read2 | |
31 #end if | |
32 #if $stats.simulations != '': | |
33 -s ${stats.simulations} | |
34 #end if | |
35 #if $stats.score_offset != '': | |
36 -q ${stats.score_offset} | |
37 #end if | |
38 #if $stats.max_qualscore != '': | |
39 -s ${stats.max_qualscore} | |
40 #end if | |
41 #if $stats.process_cond.process == 'max': | |
42 -n ${stats.process_cond.max_reads} | |
43 #end if | |
44 -o $genSeqErrorModel_modelfile | |
45 ]]> | |
46 </command> | |
47 <inputs> | |
48 | |
49 <conditional name="lib_type_cond"> | |
50 <param name="lib_type" | |
51 type="select" | |
52 label="Single-end or paired-end sequencing library?" | |
53 > | |
54 <option value="paired">Paired-end</option> | |
55 <option value="single">Single-end</option> | |
56 </param> | |
57 <when value="paired"> | |
58 <param name="read1" | |
59 type="data" | |
60 format="fastqsanger,fastqsanger.gz" | |
61 label="The first read" | |
62 help="" | |
63 /> | |
64 <param name="read2" | |
65 type="data" | |
66 format="fastqsanger,fastqsanger.gz" | |
67 label="The second read" | |
68 help="" | |
69 /> | |
70 </when> | |
71 <when value="single"> | |
72 <param name="read1" | |
73 type="data" | |
74 format="fastqsanger,fastqsanger.gz" | |
75 label="The first read" | |
76 help="" | |
77 /> | |
78 </when> | |
79 </conditional> | |
80 | |
81 <section name="stats" | |
82 title="Miscellanous settings" | |
83 expanded="false" | |
84 help="The settings for the error rates etc. for the model" | |
85 > | |
86 <param name="simulations" | |
87 type="integer" | |
88 value="1000000" | |
89 min="1000" | |
90 optional="true" | |
91 label="Number of simulation iterations [-s]" | |
92 help="Default is 1,000,000" | |
93 /> | |
94 <conditional name="process_cond"> | |
95 <param name="process" type="select" label="Maximum number of reads to process"> | |
96 <option value="all">All</option> | |
97 <option value="max">Set a maximum number</option> | |
98 </param> | |
99 <when value="max"> | |
100 <param name="max_reads" | |
101 optional="true" | |
102 type="integer" | |
103 value="1000000" | |
104 min="1" | |
105 label="Maximum number of reads to process" | |
106 help="Processing all reads is the default [-n]" | |
107 /> | |
108 </when> | |
109 </conditional> | |
110 | |
111 | |
112 <param name="score_offset" | |
113 optional="true" | |
114 type="integer" | |
115 label="Quality score offset (Default = 33)" | |
116 help="There are different quality score offsets (depends on provider). When in doubt, leave at default (33) which is typical for modern Illumina sequencing runs [-q]" | |
117 /> | |
118 <param name="max_qualscore" | |
119 type="integer" | |
120 min="1" | |
121 optional="true" | |
122 label="Maximum quality score (Default = 41)" | |
123 help="Setting the maximum quality score may have an effect on the accuracy of the error model [-Q]" | |
124 /> | |
125 | |
126 </section> | |
127 | |
128 </inputs> | |
129 <outputs> | |
130 <data format="txt" | |
131 name="genSeqErrorModel_modelfile" | |
132 label="${os.path.splitext($lib_type_cond.read1.name)[0]}_genSeqErrorModel.p" | |
133 metadata_source="in_type.reference"> | |
134 </data> | |
135 </outputs> | |
136 <help> | |
137 </help> | |
138 <tests> | |
139 | |
140 <test> | |
141 <conditional name="lib_type_cond"> | |
142 <param name="lib_type" value="single"/> | |
143 <param name="read1" value="chrMT_read1.fq" format="fastqsanger"/> | |
144 </conditional> | |
145 <section name="stats"> | |
146 <param name="simulations" value="100000"/> | |
147 </section> | |
148 <assert_stdout has_text="saving model..."/> | |
149 </test> | |
150 | |
151 <test> | |
152 <conditional name="lib_type_cond"> | |
153 <param name="lib_type" value="paired"/> | |
154 <param name="read1" value="chrMT-PE_read1.fq" format="fastqsanger"/> | |
155 <param name="read2" value="chrMT-PE_read2.fq" format="fastqsanger"/> | |
156 </conditional> | |
157 <section name="stats"> | |
158 <param name="simulations" value="100000"/> | |
159 </section> | |
160 <assert_stdout has_text="saving model..."/> | |
161 </test> | |
162 | |
163 <test> | |
164 <conditional name="lib_type_cond"> | |
165 <param name="lib_type" value="paired"/> | |
166 <param name="read1" value="chrMT-PE_read1.fq" format="fastqsanger"/> | |
167 <param name="read2" value="chrMT-PE_read2.fq" format="fastqsanger"/> | |
168 </conditional> | |
169 <section name="stats"> | |
170 <param name="simulations" value="100000"/> | |
171 <conditional name="process_cond"> | |
172 <param name="process" value="max"/> | |
173 <param name="max_reads" value="100"/> | |
174 </conditional> | |
175 </section> | |
176 <assert_stdout has_text="saving model..."/> | |
177 </test> | |
178 | |
179 </tests> | |
180 </tool> |