Mercurial > repos > bgruening > bionano_scaffold
comparison bionano_scaffold_edited.xml @ 0:fec6a0b53189 draft
"planemo upload for repository https://bionanogenomics.com/support/software-downloads/ commit 1d3a1a449c7398c8fad07663224738265f77c0be"
author | bgruening |
---|---|
date | Mon, 17 May 2021 15:07:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:fec6a0b53189 |
---|---|
1 <tool id="bionano_scaffold" name="Bionano Hybrid Scaffold" version="@TOOL_VERSION@+@GALAXY_TOOL_VERSION@" profile="20.01"> | |
2 <description>automates the scaffolding process</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="edam_ontology"/> | |
7 <expand macro="requirements"/> | |
8 <version_command>perl /HybridScaffold/hybridScaffold.pl --version</version_command> | |
9 <command detect_errors="exit_code"><![CDATA[ | |
10 #set RefAligner = '/usr/local/bin/RefAligner' | |
11 ## softlinks do not work | |
12 cp '${ngs_fasta}' ./ngs.fasta | |
13 && cp '${bionano_cmap}' ./bionano.cmap | |
14 #if $configuration_options.configuration == 'vgp' | |
15 && cp '${vgp_mode}' ./config.xml | |
16 #else | |
17 #import os | |
18 #set cores = os.environ.get('GALAXY_SLOTS', 2) | |
19 #set memory = os.environ.get('GALAXY_MEMORY_MB', 4000) / 1000 | |
20 && cp '${configuration_file}' ./config.xml | |
21 && sed -i 's|attr="maxmem" val0=.* display|attr="maxmem" val0="$memory" display|' ./config.xml | |
22 && sed -i 's|attr="maxthreads" val0=.* display|attr="maxthreads" val0="$cores" display|' ./config.xml | |
23 && sed -i 's|attr="maxvirtmem" val0=.*/>|attr="maxvirtmem" val0="$cores"/>|' ./config.xml | |
24 && sed -i 's|attr="insertThreads" val0=.*/>|attr="insertThreads" val0="$cores"/>|' ./config.xml | |
25 #end if | |
26 ## output the configuration file on stdout | |
27 && cat ./config.xml | |
28 && perl '/HybridScaffold/hybridScaffold.pl' | |
29 -n ./ngs.fasta | |
30 -b ./bionano.cmap | |
31 -c ./config.xml | |
32 -r $RefAligner | |
33 #if $conflict_resolution | |
34 -M '${conflict_resolution}' | |
35 #end if | |
36 #if not $conflict_resolution | |
37 -B $conflict_filter_genome | |
38 -N $conflict_filter_sequence | |
39 #end if | |
40 ##$align_molecules_options.align_molecules | |
41 ###if $align_molecules_options.align_molecules | |
42 ## -m $align_molecules_options.bionano_molecules | |
43 ## -q '${align_molecules_options.optarguments_xml}' | |
44 ## -p ##/home/bionano/tools/pipeline/1.0/Pipeline/1.0/ | |
45 ###end if | |
46 ##$quimeric_quality_options.quimeric_quality | |
47 ###if $quimeric_quality_options.quimeric_quality | |
48 ## -m $align_molecules_options.bionano_molecules | |
49 ## #if $quimeric_quality_conditional.noise_parameter | |
50 ## -e '${quimeric_quality_conditional.noise_parameter}' | |
51 ## #end if | |
52 ###end if | |
53 -f | |
54 $zip_file | |
55 -o ./ | |
56 ##; | |
57 ##sleep 1000000 | |
58 | |
59 ]]> </command> | |
60 <configfiles> | |
61 <configfile name="vgp_mode"><![CDATA[ | |
62 #if $configuration_options.configuration == 'vgp' | |
63 #import os | |
64 #set cores = os.environ.get('GALAXY_SLOTS', 2) | |
65 #set memory = os.environ.get('GALAXY_MEMORY_MB', 4000) / 1000 | |
66 <hybridScaffold> | |
67 <version> | |
68 <flag attr="version" val0="\$Id: hybridScaffold_DLE1_config.xml 7702 2018-06-25 20:53:51Z apang \$"/> | |
69 </version> | |
70 <global> | |
71 <flag attr="maxmem" val0="$memory" display="Maximum memory (GB)" group="Global options" description="Define the maximum amount of RAM in gigabytes to be used by each process."/> | |
72 <flag attr="maxthreads" val0="$cores" display="Max threads" group="Global options" description="Define maximum number of threads to be used by each process."/> | |
73 <flag attr="maxvirtmem" val0="$memory"/> | |
74 <flag attr="RAmem" val0="3" val1="1"/> | |
75 </global> | |
76 <fasta2cmap> | |
77 <flag attr="enzyme" val0="$configuration_options.enzyme" display="Enzyme" group="FASTA to CMAP digestion" description="Define single enzyme for in-silico FASTA to CMAP digestion. Avalible enzymes: BspQI, BbvCI, BsmI, BsrDI, BssSI, DLE1."/> | |
78 <flag attr="channelNum" val0="1" display="Channel number" group="FASTA to CMAP digestion" description="Specify the channel the enzyme was used."/> | |
79 <flag attr="minLabels" val0="0" display="Minimum label sites" group="FASTA to CMAP digestion" description="Specify minimum number of label sites per digested contig."/> | |
80 <flag attr="minLength" val0="0" display="Minimum length (Kb)" group="FASTA to CMAP digestion" description="Specify minimum length in Kb of each digested contig."/> | |
81 </fasta2cmap> | |
82 <align0> | |
83 <flag attr="M" val0="1" val1="3"/> | |
84 <flag attr="ScaleDelta" val0="0.02" val1="15"/> | |
85 <flag attr="ScaleDeltaBPP"/> | |
86 <flag attr="hashScaleDelta" val0="2"/> | |
87 <flag attr="res" val0="2.9"/> | |
88 <flag attr="FP" val0="0.6"/> | |
89 <flag attr="FN" val0="0.06"/> | |
90 <flag attr="sf" val0="0.20"/> | |
91 <flag attr="sd" val0="0.0"/> | |
92 <flag attr="sr" val0="0.01"/> | |
93 <flag attr="extend" val0="1"/> | |
94 <flag attr="outlier" val0="0.0001"/> | |
95 <flag attr="endoutlier" val0="0.001"/> | |
96 <flag attr="PVendoutlier"/> | |
97 <flag attr="deltaX" val0="12"/> | |
98 <flag attr="deltaY" val0="12"/> | |
99 <flag attr="xmapchim" val0="12"/> | |
100 <flag attr="hashgen" val0="5" val1="7" val2="2.4" val3="1.5" val4="0.05" val5="5.0" val6="1" val7="1" val8="4"/> | |
101 <flag attr="hash" val0="-hashdelta" val1="26" val2="10" val3="46"/> | |
102 <flag attr="hashMultiMatch" val0="30" val1="10"/> | |
103 <flag attr="insertThreads" val0="$cores"/> | |
104 <flag attr="nosplit" val0="2"/> | |
105 <flag attr="biaswt" val0="0"/> | |
106 <flag attr="T" val0="1e-10" display="P-value" group="Initial alignment" description="Minimum confidence value to output initial alignments. Recommended starting value of 1e-5/genome size in Mb."/> | |
107 <flag attr="S" val0="-1000"/> | |
108 <flag attr="indel"/> | |
109 <flag attr="PVres" val0="2"/> | |
110 <flag attr="rres" val0="0.9"/> | |
111 <flag attr="MaxSE" val0="0.5"/> | |
112 <flag attr="HSDrange" val0="1.0"/> | |
113 <flag attr="outlierBC"/> | |
114 <flag attr="xmapUnique" val0="12"/> | |
115 <flag attr="AlignRes" val0="2."/> | |
116 <flag attr="outlierExtend" val0="12" val1="24"/> | |
117 <flag attr="Kmax" val0="12"/> | |
118 <flag attr="resEstimate"/> | |
119 <flag attr="f"/> | |
120 <flag attr="mres" val0="0.9"/> | |
121 </align0> | |
122 <align1> | |
123 <flag attr="res" val0="2.9"/> | |
124 <flag attr="FP" val0="0.6"/> | |
125 <flag attr="FN" val0="0.06"/> | |
126 <flag attr="sf" val0="0.20"/> | |
127 <flag attr="sd" val0="0.0"/> | |
128 <flag attr="sr" val0="0.01"/> | |
129 <flag attr="extend" val0="1"/> | |
130 <flag attr="outlier" val0="0.0001"/> | |
131 <flag attr="endoutlier" val0="0.001"/> | |
132 <flag attr="PVendoutlier"/> | |
133 <flag attr="deltaX" val0="12"/> | |
134 <flag attr="deltaY" val0="12"/> | |
135 <flag attr="xmapchim" val0="12"/> | |
136 <flag attr="hashgen" val0="5" val1="7" val2="2.4" val3="1.5" val4="0.05" val5="5.0" val6="1" val7="1" val8="4"/> | |
137 <flag attr="hash" val0="-hashdelta" val1="26" val2="10" val3="46"/> | |
138 <flag attr="hashMultiMatch" val0="30" val1="10"/> | |
139 <flag attr="insertThreads" val0="$cores"/> | |
140 <flag attr="nosplit" val0="2"/> | |
141 <flag attr="biaswt" val0="0"/> | |
142 <flag attr="T" val0="1e-10" display="P-value" group="Initial alignment" description="Minimum confidence value to output initial alignments. Recommended starting value of 1e-5/genome size in Mb."/> | |
143 <flag attr="S" val0="-1000"/> | |
144 <flag attr="indel"/> | |
145 <flag attr="PVres" val0="2"/> | |
146 <flag attr="rres" val0="0.9"/> | |
147 <flag attr="MaxSE" val0="0.5"/> | |
148 <flag attr="HSDrange" val0="1.0"/> | |
149 <flag attr="outlierBC"/> | |
150 <flag attr="xmapUnique" val0="12"/> | |
151 <flag attr="AlignRes" val0="2."/> | |
152 <flag attr="outlierExtend" val0="12" val1="24"/> | |
153 <flag attr="Kmax" val0="12"/> | |
154 <flag attr="resEstimate"/> | |
155 <flag attr="f"/> | |
156 <flag attr="mres" val0="0.9"/> | |
157 </align1> | |
158 <assignAlignType> | |
159 <flag attr="T_cutoff" val0="1e-11" display="P-value" group="Chimeric/conflicting alignment flagging" description="Minimum confidence value used to flag chimeric/conflicting alignments. Recommand to set it to be the same as the merge_Tvalue below."/> | |
160 <flag attr="max_overhang" val0="5" display=""/> | |
161 </assignAlignType> | |
162 <cut_conflicts> | |
163 <flag attr="window_size" val0="10000" display="Distance (bp)" group="Conflict-cut" description="The distance (bp) from a conflicting site within which the chimeric quality score of BioNano genome map labels will be examined"/> | |
164 <flag attr="min_quality_score_threshold" val0="35" display="Percent (%)" group="Conflict-cut" description="The minimal percentage of molecules spanning to the left and right of a label of interest, thus supporting the BioNano assembly at that region"/> | |
165 <flag attr="min_coverage_threshold" val0="10" display="Coverage (X)" group="Conflict-cut" description="The minimal number of molecules aligning to a label of interest in the BioNano assembly"/> | |
166 </cut_conflicts> | |
167 <mergeNGS_BN> | |
168 <flag attr="merge_Tvalue" val0="1e-11" display="P-value" group="Merging" description="Minimum confidence value used to merge alignments. Recommand to set it to be the same as the assignAlignType T_cutoff above"/> | |
169 <flag attr="id_shift" val0="100000" display="BioNano cmap id shift" group="Merging" description="Value to shift the BioNano cmap id to distinguish the BioNano cmaps from sequence cmaps. Recommand to set it to be greater than the number of sequence entries."/> | |
170 <flag attr="max_merge_rounds" val0="40" display=""/> | |
171 <flag attr="endoutlier" val0="1e-4" display=""/> | |
172 <flag attr="outlier" val0="1e-4" display=""/> | |
173 <flag attr="biaswt" val0="0" display=""/> | |
174 <flag attr="sd" val0="0.1" display=""/> | |
175 <flag attr="res" val0="2.9" display=""/> | |
176 <flag attr="mres" val0="2.9" display=""/> | |
177 <flag attr="sf" val0="0.2" display=""/> | |
178 <flag attr="RepeatMask" val0="4" val1="0.01" display=""/> | |
179 <flag attr="RepeatRec" val0="0.7" val1="0.6" val2="1.4" display=""/> | |
180 <flag attr="pairmerge" val0="80" val1="0.2" display="Min alignment length and Max endoutlier" group="Merging" description="Minimum alignment length required for pair merge, and the maximum endoutlier allowed."/> | |
181 <flag attr="maxmem" val0="$memory" display=""/> | |
182 <flag attr="pairmergeRepeat"/> | |
183 <flag attr="NoBpp"/> | |
184 <flag attr="first" val0="-1" display=""/> | |
185 <flag attr="f"/> | |
186 </mergeNGS_BN> | |
187 <align_final_1st_pass> | |
188 <flag attr="res" val0="2.9"/> | |
189 <flag attr="FP" val0="0.6"/> | |
190 <flag attr="FN" val0="0.06"/> | |
191 <flag attr="sf" val0="0.20"/> | |
192 <flag attr="sd" val0="0.0"/> | |
193 <flag attr="sr" val0="0.01"/> | |
194 <flag attr="extend" val0="1"/> | |
195 <flag attr="outlier" val0="0.0001"/> | |
196 <flag attr="endoutlier" val0="0.001"/> | |
197 <flag attr="PVendoutlier"/> | |
198 <flag attr="deltaX" val0="12"/> | |
199 <flag attr="deltaY" val0="12"/> | |
200 <flag attr="xmapchim" val0="12"/> | |
201 <flag attr="hashgen" val0="5" val1="7" val2="2.4" val3="1.5" val4="0.05" val5="5.0" val6="1" val7="1" val8="4"/> | |
202 <flag attr="hash" val0="-hashdelta" val1="26" val2="10" val3="46"/> | |
203 <flag attr="hashMultiMatch" val0="30" val1="10"/> | |
204 <flag attr="insertThreads" val0="$cores"/> | |
205 <flag attr="nosplit" val0="2"/> | |
206 <flag attr="biaswt" val0="0"/> | |
207 <flag attr="T" val0="1e-10" display="P-value" group="Initial alignment" description="Minimum confidence value to output intial alignments. Recommended starting value of 1e-5/genome size in Mb."/> | |
208 <flag attr="S" val0="-1000"/> | |
209 <flag attr="indel"/> | |
210 <flag attr="PVres" val0="2"/> | |
211 <flag attr="rres" val0="0.9"/> | |
212 <flag attr="MaxSE" val0="0.5"/> | |
213 <flag attr="HSDrange" val0="1.0"/> | |
214 <flag attr="outlierBC"/> | |
215 <flag attr="xmapUnique" val0="12"/> | |
216 <flag attr="AlignRes" val0="2."/> | |
217 <flag attr="outlierExtend" val0="6" val1="24"/> | |
218 <flag attr="Kmax" val0="6"/> | |
219 <flag attr="resEstimate"/> | |
220 <flag attr="f"/> | |
221 <flag attr="mres" val0="0.9"/> | |
222 <flag attr="MultiMatches" val0="5"/> | |
223 </align_final_1st_pass> | |
224 <align_final_2nd_pass> | |
225 <flag attr="res" val0="2.9"/> | |
226 <flag attr="FP" val0="0.6"/> | |
227 <flag attr="FN" val0="0.06"/> | |
228 <flag attr="sf" val0="0.20"/> | |
229 <flag attr="sd" val0="0.0"/> | |
230 <flag attr="sr" val0="0.01"/> | |
231 <flag attr="extend" val0="1"/> | |
232 <flag attr="outlier" val0="0.0001"/> | |
233 <flag attr="endoutlier" val0="0.001"/> | |
234 <flag attr="PVendoutlier"/> | |
235 <flag attr="deltaX" val0="12"/> | |
236 <flag attr="deltaY" val0="12"/> | |
237 <flag attr="xmapchim" val0="12"/> | |
238 <flag attr="hashgen" val0="5" val1="3" val2="2.4" val3="1.5" val4="0.05" val5="5.0" val6="1" val7="1" val8="4"/> | |
239 <flag attr="hash" val0="-hashdelta" val1="50"/> | |
240 <flag attr="hashMultiMatch" val0="30" val1="10" val2="3"/> | |
241 <flag attr="insertThreads" val0="$cores"/> | |
242 <flag attr="nosplit" val0="2"/> | |
243 <flag attr="biaswt" val0="0"/> | |
244 <flag attr="T" val0="1e-10" display="P-value" group="Final alignment" description="Minimum confidence score used to align NGS contigs back to hybrid scaffold."/> | |
245 <flag attr="S" val0="-1000"/> | |
246 <flag attr="indel"/> | |
247 <flag attr="PVres" val0="2"/> | |
248 <flag attr="rres" val0="0.9"/> | |
249 <flag attr="MaxSE" val0="0.5"/> | |
250 <flag attr="HSDrange" val0="1.0"/> | |
251 <flag attr="outlierBC"/> | |
252 <flag attr="xmapUnique" val0="12"/> | |
253 <flag attr="AlignRes" val0="2."/> | |
254 <flag attr="outlierExtend" val0="12" val1="24"/> | |
255 <flag attr="Kmax" val0="12"/> | |
256 <flag attr="resEstimate"/> | |
257 <flag attr="f"/> | |
258 <flag attr="mres" val0="0.9"/> | |
259 <flag attr="MultiMatches" val0="5"/> | |
260 </align_final_2nd_pass> | |
261 <align_final_BNG> | |
262 <flag attr="res" val0="2.9"/> | |
263 <flag attr="FP" val0="0.6"/> | |
264 <flag attr="FN" val0="0.06"/> | |
265 <flag attr="sf" val0="0.20"/> | |
266 <flag attr="sd" val0="0.0"/> | |
267 <flag attr="sr" val0="0.01"/> | |
268 <flag attr="extend" val0="1"/> | |
269 <flag attr="outlier" val0="0.0001"/> | |
270 <flag attr="endoutlier" val0="0.001"/> | |
271 <flag attr="PVendoutlier"/> | |
272 <flag attr="deltaX" val0="6"/> | |
273 <flag attr="deltaY" val0="6"/> | |
274 <flag attr="xmapchim" val0="12"/> | |
275 <flag attr="hashgen" val0="5" val1="7" val2="2.4" val3="1.5" val4="0.05" val5="5.0" val6="1" val7="1" val8="4"/> | |
276 <flag attr="hash" val0="-hashdelta" val1="26" val2="10" val3="46"/> | |
277 <flag attr="hashMultiMatch" val0="30" val1="10"/> | |
278 <flag attr="insertThreads" val0="$cores"/> | |
279 <flag attr="nosplit" val0="2"/> | |
280 <flag attr="biaswt" val0="0"/> | |
281 <flag attr="T" val0="1e-10" display="P-value" group="Final alignment" description="Minimum confidence score used to align NGS contigs back to hybrid scaffold."/> | |
282 <flag attr="S" val0="-1000"/> | |
283 <flag attr="indel"/> | |
284 <flag attr="PVres" val0="2"/> | |
285 <flag attr="rres" val0="0.9"/> | |
286 <flag attr="MaxSE" val0="0.5"/> | |
287 <flag attr="HSDrange" val0="1.0"/> | |
288 <flag attr="outlierBC"/> | |
289 <flag attr="xmapUnique" val0="14"/> | |
290 <flag attr="AlignRes" val0="2."/> | |
291 <flag attr="outlierExtend" val0="6" val1="24"/> | |
292 <flag attr="Kmax" val0="6"/> | |
293 <flag attr="resEstimate"/> | |
294 <flag attr="BestRef" val0="1"/> | |
295 <flag attr="f"/> | |
296 <flag attr="mres" val0="0.9"/> | |
297 </align_final_BNG> | |
298 <refineFinal1> | |
299 <flag attr="refine" val0="1" display="Refine Map" group="Final Refinement" default0="3"/> | |
300 <flag attr="usecolor" val0="1" default0="1" display="Color Channel" group="Final Refinement"/> | |
301 <flag attr="A" val0="5" display="Aligned Sites Threshold" group="Final Refinement" default0="5"/> | |
302 <flat attr="S" val0="-9"/> | |
303 <flag attr="L" val0="130"/> | |
304 <flag attr="maptype" val0="0"/> | |
305 <flag attr="extend" val0="1" display="Allow Extended Molecule" group="Final Refinement" default0="1"/> | |
306 <flag attr="MaxCov" val0="100" display="Max Coverage" group="Final Refinement" default0="100"/> | |
307 <flag attr="Mprobeval" display="Fast Mode" group="Final Refinement"/> | |
308 <flag attr="splitcnt"/> | |
309 <flag attr="splitrev" val0="2"/> | |
310 <flag attr="CmapSNR"/> | |
311 <flag attr="splitsite"/> | |
312 <flag attr="MinSplitLen" val0="50.0"/> | |
313 <flag attr="MaxSE" val0="0.5"/> | |
314 <flag attr="outlier" val0="2e-2" display="Min Outliers P-value" group="Second Refinement" default0="1e-5"/> | |
315 <flag attr="outlierMax" val0="80."/> | |
316 <flag attr="outlierLambda" val0="20."/> | |
317 <flag attr="endoutlier" val0="1e-3" display="Molecule Ends P-value Cutoff" group="Second Refinement" default0="1e-4"/> | |
318 <flag attr="endoutlierRef" val0="1e-4" val1="1e-3"/> | |
319 <flag attr="skip_dist" val0="0.0" val2="0.0"/> | |
320 <flag attr="endoutlierFinal" val0="1"/> | |
321 <flag attr="maxEnd" val0="90."/> | |
322 <flag attr="RTHETA_FIX" val0="0"/> | |
323 <flag attr="TB" val0="1e-6" val1="1e-6" val2="-TBmult" val3="0.1"/> | |
324 <flag attr="nosplit" val0="2" display="Allow Chimeric Split" group="Final Refinement" default0="2"/> | |
325 <flag attr="EndTrim" val0="0.0" display="Min End Trim Coverage" group="Final Refinement" default0="4.99"/> | |
326 <flag attr="biaswt" val0="0.7" display="Bias" group="Final Refinement" default0="0"/> | |
327 <flag attr="biaswtEnd" val0="0.0"/> | |
328 <flag attr="biaswtRefine" val0="0.7" val2="1"/> | |
329 <flag attr="biaswtOutlier" val0="0.0"/> | |
330 <flag attr="LRbias" val0="1e0" display="Soft Threshold" group="Final Refinement" default0="1e2"/> | |
331 <flag attr="deltaX" val0="6" display="Molecule Labels Metric" group="Final Refinement" default0="4"/> | |
332 <flag attr="deltaY" val0="7" display="Mapped Labels Metric" group="Final Refinement" default0="6"/> | |
333 <flag attr="RepeatMask" val0="5" val1="0.01" display="Repeat Mask P-values" group="Final Refinement" default0="2" default1="0.01"/> | |
334 <flag attr="RepeatRec" val0="0.7" val1="0.6" val2="1.4"/> | |
335 <flag attr="CovTrim" val0="2"/> | |
336 <flag attr="CovTrimLen" val0="55"/> | |
337 <flag attr="TrimNorm" val0="0"/> | |
338 <flag attr="TrimNormMed" val0="100"/> | |
339 <flag attr="TrimNormChim" val0="2"/> | |
340 <flag attr="TrimNormMin" val0="2"/> | |
341 <flag attr="PVres" val0="2"/> | |
342 <flag attr="PVendoutlier"/> | |
343 <flag attr="AlignRes" val0="1.5"/> | |
344 <flag attr="rres" val0="1.2"/> | |
345 <flag attr="cres" val0="5.6" val1="3" val2="0.1"/> | |
346 <flag attr="hashgen" val00="5" val01="3" val02="2.4" val03="1.5" val04="0.05" val05="5.0" val06="1" val07="1" val08="3"/> | |
347 <flag attr="hash" val00="-hashdelta" val01="10" val02="10" val03="-mres" val04="0.9"/> | |
348 <flag attr="HSDrange" val0="1.0"/> | |
349 <flag attr="hashoffset" val0="1"/> | |
350 <flag attr="hashMultiMatch" val0="15"/> | |
351 <flag attr="insertThreads" val0="$cores"/> | |
352 <flag attr="BestRef" val0="1"/> | |
353 <flag attr="BestRefPV" val0="1"/> | |
354 <flag attr="ChimQuality"/> | |
355 <flag attr="f" display="Overwrite Output Files" group="Final Refinement"/> | |
356 <flag attr="T" val0="1e-11" display="P Value Cutoff Threshold"/> | |
357 </refineFinal1> | |
358 </hybridScaffold> | |
359 #end if | |
360 ]]></configfile> | |
361 </configfiles> | |
362 <inputs> | |
363 <param name="ngs_fasta" argument="-n" type="data" format="fasta" label="NGS FASTA" help="Input NGS FASTA"/> | |
364 <param name="bionano_cmap" argument="-b" type="data" format="cmap" label="BioNano CMAP" help="Input BioNano CMAP"/> | |
365 <conditional name="configuration_options"> | |
366 <param name="configuration" argument="-c" type="select" label="Configuration mode" help="It defines the parameters used in each step of hybrid scaffold"> | |
367 <option value="vgp">VGP mode</option> | |
368 <option value="file">Select a configuration file</option> | |
369 </param> | |
370 <when value="vgp"> | |
371 <param name="enzyme" type="text" value="CTTAAG" label="Restriction enzyme" help="Define single enzyme for in-silico FASTA to CMAP digestion. Avalible enzymes: BspQI, BbvCI, BsmI, BsrDI, BssSI, DLE1."> | |
372 <expand macro="sanitize_string" /> | |
373 </param> | |
374 </when> | |
375 <when value="file"> | |
376 <param name="configuration_file" type="data" format="xml" label="Configuration file" help="Depending on the complexity of the genome of interest, the values of certain parameters could be adjusted accordingly."/> | |
377 </when> | |
378 </conditional> | |
379 <param name="conflict_resolution" argument="-M" type="data" format="txt" optional="True" label="Conflict resolution file" help="Input a conflict resolution file indicating which NGS and BioNano conflicting contigs to be cut [optional]"/> | |
380 <param name="conflict_filter_genome" argument="-B" type="select" label="Genome maps conflict filter" help="Conflict filter level genome maps [required if not using -M option]"> | |
381 <option value="1">No filter</option> | |
382 <option value="2">Cut contig at conflict</option> | |
383 <option value="3">Exclude conflicting contig</option> | |
384 </param> | |
385 <param name="conflict_filter_sequence" argument="-N" type="select" label="Sequences conflict filter" help="Conflict filter level for sequences [required if not using -M option]"> | |
386 <option value="1">No filter</option> | |
387 <option value="2">Cut contig at conflict</option> | |
388 <option value="3">Exclude conflicting contig</option> | |
389 </param> | |
390 <param name="zip_file" argument="-z" type="boolean" truevalue="-z results.zip" falsevalue="" checked="false" label="Generate an output package in ZIP format" help="The hybrid scaffold output package (.zip) can be imported into Access for visualization" /> | |
391 <!-- | |
392 | |
393 Those options have been disabled because the Docker container doesn't include the required packages | |
394 | |
395 <conditional name="align_molecules_options"> | |
396 <param name="align_molecules" type="select" label="Align molecules to hybrid scaffolds and genome maps" help="Flag to generate molecules to hybrid scaffold alignment and molecules to genome map alignment"> | |
397 <option value="-x">True</option> | |
398 <option value="" selected="True">False</option> | |
399 </param> | |
400 <when value="-x"> | |
401 <param name="bionano_molecules" type="data" format="bnx" label="Bionano molecules" help="Input BioNano molecules BNX [optional; only required for either the -x or -y option]"/> | |
402 <param name="optarguments_xml" type="data" format="xml" label="OptArguments XML script" help="Input de novo assembly pipeline optArguments XML script [optional; only required for -x option]"/> | |
403 </when> | |
404 <when value=""> | |
405 </when> | |
406 </conditional> | |
407 <conditional name="quimeric_quality_options"> | |
408 <param name="quimeric_quality" type="select" label="Generate quimeric quality score" help="Flag to generate chimeric quality score for the Input BioNano CMAP"> | |
409 <option value="-y">True</option> | |
410 <option value="" selected="True">False</option> | |
411 </param> | |
412 <when value="-y"> | |
413 <param name="bionano_molecules" type="data" format="bnx" label="Bionano molecules" help="Input BioNano molecules BNX [optional; only required for either the -x or -y option]"/> | |
414 <param name="noise_parameter" type="data" format="txt" optional="True" label="Noise parameter file" help="Input de novo assembly noise parameter .errbin or .err file [optional; recommended for -y option but not required]"/> | |
415 </when> | |
416 <when value=""> | |
417 </when> | |
418 </conditional> | |
419 --> | |
420 </inputs> | |
421 <outputs> | |
422 <data name="ngs_contigs_scaffold_fasta" format="fasta" from_work_dir="hybrid_scaffolds/bionano_bppAdjust_cmap_ngs_fasta_NGScontigs_HYBRID_SCAFFOLD.fasta" label="${tool.name} on ${on_string}: NGScontigs hybrid scaffold (fasta)"/> | |
423 <data name="ngs_contigs_scaffold_agp" format="txt" from_work_dir="hybrid_scaffolds/bionano_bppAdjust_cmap_ngs_fasta_NGScontigs_HYBRID_SCAFFOLD.agp" label="${tool.name} on ${on_string}: NGScontigs hybrid scaffold (agp)"/> | |
424 <data name="ngs_contigs_scaffold_gap" format="txt" from_work_dir="hybrid_scaffolds/bionano_bppAdjust_cmap_ngs_fasta_NGScontigs_HYBRID_SCAFFOLD.gap" label="${tool.name} on ${on_string}: NGScontigs hybrid scaffold (gap)"/> | |
425 <data name="report" format="txt" from_work_dir="hybrid_scaffolds/hybrid_scaffold_informatics_report.txt" label="${tool.name} on ${on_string}: hybrid scaffold report"/> | |
426 <data name="results" format="zip" from_work_dir="results.zip" label="${tool.name} on ${on_string}: results"> | |
427 <filter>zip_file</filter> | |
428 </data> | |
429 </outputs> | |
430 <tests> | |
431 <test expect_num_outputs="5"> | |
432 <param name="ngs_fasta" value="assembly.fasta.gz"/> | |
433 <param name="bionano_cmap" value="colormap_assembly.cmap"/> | |
434 <param name="conflict_filter_genome" value="3"/> | |
435 <param name="conflict_filter_sequence" value="3"/> | |
436 <conditional name="configuration_options"> | |
437 <param name="configuration" value="file"/> | |
438 <param name="configuration_file" value="configuration.xml"/> | |
439 </conditional> | |
440 <param name="zip_file" value="true"/> | |
441 <output name="ngs_contigs_scaffold_fasta" ftype="fasta"> | |
442 <assert_contents> | |
443 <has_size value="4753369" delta="300" /> | |
444 </assert_contents> | |
445 </output> | |
446 <output name="ngs_contigs_scaffold_agp" file="test_01.agp" ftype="txt"/> | |
447 <output name="ngs_contigs_scaffold_gap" file="test_01.gap" ftype="txt"/> | |
448 <output name="report" file="test_01_report.txt" ftype="txt"/> | |
449 <output name="results" ftype="zip"> | |
450 <assert_contents> | |
451 <!--<has_size value="4231746" delta="300" />--> | |
452 <has_archive_member path=".*/status.txt"/> | |
453 </assert_contents> | |
454 </output> | |
455 <assert_stdout> | |
456 <has_text text='attr="maxmem" val0="4.0"'/> | |
457 </assert_stdout> | |
458 <assert_stdout> | |
459 <has_text text='attr="maxthreads" val0="2"'/> | |
460 </assert_stdout> | |
461 <assert_stdout> | |
462 <has_text text='attr="insertThreads" val0="2"'/> | |
463 </assert_stdout> | |
464 <assert_stdout> | |
465 <has_text text='attr="maxvirtmem" val0="4.0"'/> | |
466 </assert_stdout> | |
467 <assert_stdout> | |
468 <has_text text="hybridScaffold"/> | |
469 </assert_stdout> | |
470 </test> | |
471 <test expect_num_outputs="4"> | |
472 <param name="ngs_fasta" value="assembly.fasta.gz"/> | |
473 <param name="bionano_cmap" value="colormap_assembly.cmap"/> | |
474 <param name="conflict_filter_genome" value="2"/> | |
475 <param name="conflict_filter_sequence" value="2"/> | |
476 <conditional name="configuration_options"> | |
477 <param name="configuration" value="file"/> | |
478 <param name="configuration_file" value="configuration.xml"/> | |
479 </conditional> | |
480 <output name="ngs_contigs_scaffold_fasta" ftype="fasta"> | |
481 <assert_contents> | |
482 <has_size value="4753369" delta="100" /> | |
483 <has_n_lines n="2"/> | |
484 <has_line line=">Super-Scaffold_1"/> | |
485 </assert_contents> | |
486 </output> | |
487 <output name="ngs_contigs_scaffold_agp" file="test_02.agp" ftype="txt"/> | |
488 <output name="ngs_contigs_scaffold_gap" file="test_02.gap" ftype="txt"/> | |
489 <output name="report" file="test_02_report.txt" ftype="txt"/> | |
490 <assert_stdout> | |
491 <has_text text='attr="maxmem" val0="4.0"'/> | |
492 </assert_stdout> | |
493 <assert_stdout> | |
494 <has_text text='attr="maxthreads" val0="2"'/> | |
495 </assert_stdout> | |
496 <assert_stdout> | |
497 <has_text text='attr="insertThreads" val0="2"'/> | |
498 </assert_stdout> | |
499 <assert_stdout> | |
500 <has_text text='attr="maxvirtmem" val0="4.0"'/> | |
501 </assert_stdout> | |
502 <assert_stdout> | |
503 <has_text text="hybridScaffold"/> | |
504 <!--attribute_is path="hybridScaffold/global/flag[@attr='maxthreads']" attribute="val0" text="2"/--> | |
505 </assert_stdout> | |
506 </test> | |
507 <test expect_num_outputs="5"> | |
508 <param name="ngs_fasta" value="assembly.fasta.gz"/> | |
509 <param name="bionano_cmap" value="colormap_assembly.cmap"/> | |
510 <param name="conflict_filter_genome" value="2"/> | |
511 <param name="conflict_filter_sequence" value="3"/> | |
512 <conditional name="configuration_options"> | |
513 <param name="configuration" value="file"/> | |
514 <param name="configuration_file" value="configuration.xml"/> | |
515 </conditional> | |
516 <param name="zip_file" value="true"/> | |
517 <output name="ngs_contigs_scaffold_fasta" ftype="fasta"> | |
518 <assert_contents> | |
519 <has_size value="4753369" delta="100" /> | |
520 <has_n_lines n="2"/> | |
521 <has_line line=">Super-Scaffold_1"/> | |
522 </assert_contents> | |
523 </output> | |
524 <output name="ngs_contigs_scaffold_agp" file="test_03.agp" ftype="txt"/> | |
525 <output name="ngs_contigs_scaffold_gap" file="test_03.gap" ftype="txt"/> | |
526 <output name="report" file="test_03_report.txt" ftype="txt"/> | |
527 <output name="results" ftype="zip"> | |
528 <assert_contents> | |
529 <!--<has_size value="4231908" delta="300" />--> | |
530 <has_archive_member path=".*/status.txt"/> | |
531 </assert_contents> | |
532 </output> | |
533 <assert_stdout> | |
534 <has_text text='attr="maxmem" val0="4.0"'/> | |
535 </assert_stdout> | |
536 <assert_stdout> | |
537 <has_text text='attr="maxthreads" val0="2"'/> | |
538 </assert_stdout> | |
539 <assert_stdout> | |
540 <has_text text='attr="insertThreads" val0="2"'/> | |
541 </assert_stdout> | |
542 <assert_stdout> | |
543 <has_text text='attr="maxvirtmem" val0="4.0"'/> | |
544 </assert_stdout> | |
545 <assert_stdout> | |
546 <has_text text="hybridScaffold"/> | |
547 </assert_stdout> | |
548 </test> | |
549 <test expect_num_outputs="5"> | |
550 <param name="ngs_fasta" value="assembly.fasta.gz"/> | |
551 <param name="bionano_cmap" value="colormap_assembly.cmap"/> | |
552 <param name="conflict_filter_genome" value="2"/> | |
553 <param name="conflict_filter_sequence" value="3"/> | |
554 <conditional name="configuration_options"> | |
555 <param name="configuration" value="vgp"/> | |
556 <param name="enzyme" value="BspQI"/> | |
557 </conditional> | |
558 <param name="zip_file" value="true"/> | |
559 <output name="ngs_contigs_scaffold_fasta" ftype="fasta"> | |
560 <assert_contents> | |
561 <has_size value="4753369" delta="100" /> | |
562 <has_n_lines n="2"/> | |
563 <has_line line=">Super-Scaffold_1"/> | |
564 </assert_contents> | |
565 </output> | |
566 <output name="ngs_contigs_scaffold_agp" file="test_04.agp" ftype="txt"/> | |
567 <output name="ngs_contigs_scaffold_gap" file="test_04.gap" ftype="txt"/> | |
568 <output name="report" file="test_04_report.txt" ftype="txt"/> | |
569 <output name="results" ftype="zip"> | |
570 <assert_contents> | |
571 <has_archive_member path=".*/status.txt"/> | |
572 </assert_contents> | |
573 </output> | |
574 <assert_stdout> | |
575 <has_text text='attr="maxmem" val0="4.0"'/> | |
576 </assert_stdout> | |
577 <assert_stdout> | |
578 <has_text text='attr="maxthreads" val0="2"'/> | |
579 </assert_stdout> | |
580 <assert_stdout> | |
581 <has_text text='attr="insertThreads" val0="2"'/> | |
582 </assert_stdout> | |
583 <assert_stdout> | |
584 <has_text text='attr="maxvirtmem" val0="4.0"'/> | |
585 </assert_stdout> | |
586 <assert_stdout> | |
587 <has_text text="hybridScaffold"/> | |
588 </assert_stdout> | |
589 </test> | |
590 </tests> | |
591 <help><![CDATA[ | |
592 .. class:: infomark | |
593 | |
594 **Purpose** | |
595 | |
596 The Hybrid Scaffold pipeline automates the comprehensive scaffolding process and is consisted of five major steps: 1) generate in silico maps for sequence assembly; 2) align in silico sequence maps against Bionano genome maps to identify and resolve potential conflicts in either data set; 3) merge the non-conflicting maps into hybrid scaffolds; 4) align sequence maps to the hybrid scaffolds; and 5) generate AGP and FASTA files for the scaffolds. | |
597 | |
598 ---- | |
599 | |
600 .. class:: infomark | |
601 | |
602 **Coverage** | |
603 | |
604 For Hybrid Scaffold, we recommend using as input a minimum of 80X effective molecule coverage in order to build an accurate and contiguous consensus genome map assembly for each enzyme. When using nickases, using more coverage does not significantly improve map contiguity. When using a DLS enzyme such as DLE-1, effective coverage up to and beyond 100X has shown improved map contiguities for some plants and animals. | |
605 | |
606 ---- | |
607 | |
608 .. class:: infomark | |
609 | |
610 **Input Bionano assembly** | |
611 | |
612 When running the de novo assembly pipeline for hybrid scaffolding applications, users are recommended to use assembly parameters for non-haplotype-aware assembly. The current Hybrid Scaffold pipeline does not explicitly handle haplotype information and assumes there is only one genome map or NGS sequence contig covering a given genomic region. If multiple haplotypes are present, the pipeline may make false positive conflict cuts and incorrectly mix haplotypes in the final scaffolds. We understand that haplotype information is important in many applications, and a fully haplotype-aware Hybrid Scaffold pipeline is in our roadmap for a future release. | |
613 | |
614 | |
615 ]]> </help> | |
616 <expand macro="citations"/> | |
617 </tool> |