annotate blat.xml @ 12:e79965d0351c draft default tip

planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
author iuc
date Sat, 03 Dec 2022 10:38:40 +0000
parents 2a89f630fa85
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
1 <tool id="ucsc_blat" name="UCSC BLAT Alignment Tool" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
2 <description>BLAST-like sequence alignment tool</description>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
3 <macros>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
4 <token name="@TOOL_VERSION@">377</token>
12
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
5 <token name="@VERSION_SUFFIX@">1</token>
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
6
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
7 <xml name="mask_cond" tokens="maskarg,label,help">
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
8 <conditional name="@MASKARG@_type">
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
9 <param argument="-@MASKARG@" type="select" label="@LABEL@" help="@HELP@">
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
10 <option value="" selected="true">No masking</option>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
11 <option value="lower">lower - mask out lower-cased sequence</option>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
12 <option value="upper">upper - mask out upper-cased sequence</option>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
13 <option value="file.out">out - mask database according to RepeatMasker out</option>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
14 </param>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
15 <when value="" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
16 <when value="lower" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
17 <when value="upper" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
18 <when value="file.out">
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
19 <param name="@MASKARG@_file" type="data" format="txt" label="RepeatMasker file.out" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
20 </when>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
21 </conditional>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
22 </xml>
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
23 </macros>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
24 <xrefs>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
25 <xref type="bio.tools">blat</xref>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
26 </xrefs>
0
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
27 <requirements>
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
28 <requirement type="package" version="@TOOL_VERSION@">ucsc-blat</requirement>
0
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
29 </requirements>
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
30 <command detect_errors="exit_code"><![CDATA[
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
31 #if str($reference_source.reference_source_selector) == "history":
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
32 ## blat depends on file extension
12
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
33 #if $reference_source.database.is_of_type("fasta.gz"):
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
34 #set $reference_fasta_filename = "localref.fa.gz"
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
35 #elif $reference_source.database.is_of_type("fasta"):
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
36 #set $reference_fasta_filename = "localref.fa"
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
37 #elif $reference_source.database.is_of_type("twobit"):
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
38 #set $reference_fasta_filename = "localref.2bit"
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
39 #else
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
40 #set $reference_fasta_filename = "localref"
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
41 #end if
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
42 ln -s '$reference_source.database' '$reference_fasta_filename' &&
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
43 #else:
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
44 #set $reference_fasta_filename = str($reference_source.database.fields.path)
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
45 #end if
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
46
12
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
47 ## blat depends on file extension
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
48 #if $query.is_of_type("fasta.gz"):
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
49 #set $query_filename = "query.fa.gz"
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
50 #elif $query.is_of_type("fasta"):
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
51 #set $query_filename = "query.fa"
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
52 #elif $query.is_of_type("twobit"):
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
53 #set $query_filename = "query.2bit"
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
54 #else
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
55 #set $query_filename = "query"
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
56 #end if
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
57 ln -s '$query' '$query_filename' &&
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
58
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
59 blat
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
60 -q=$query_type
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
61 -t=$database_type
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
62 ## Basic alignment parameters
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
63 #if str($basic_align.minScore)
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
64 -minScore=$basic_align.minScore
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
65 #end if
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
66 #if str($basic_align.minIdentity)
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
67 -minIdentity=$basic_align.minIdentity
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
68 #end if
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
69 $basic_align.trimT
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
70 $basic_align.noTrimA
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
71 $basic_align.trimHardA
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
72 $basic_align.fastMap
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
73 $basic_align.fine
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
74 #if str($basic_align.maxIntron)
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
75 -maxIntron=$basic_align.maxIntron
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
76 #end if
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
77 $basic_align.extendThroughN
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
78 ## Advanced alignment parameters
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
79 #if str($adv_align.tileSize)
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
80 -tileSize=$adv_align.tileSize
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
81 #end if
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
82 #if str($adv_align.stepSize)
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
83 -stepSize=$adv_align.stepSize
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
84 #end if
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
85 $adv_align.oneOff
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
86 #if str($adv_align.minMatch)
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
87 -minMatch=$adv_align.minMatch
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
88 #end if
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
89 -maxGap=$adv_align.maxGap
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
90 #if str($adv_align.repMatch)
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
91 -repMatch=$adv_align.repMatch
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
92 #end if
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
93 ## Repeat masking parameters
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
94 #if $repeat.mask_type.mask == "file.out":
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
95 -mask='$repeat.mask_type.mask_file'
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
96 #elif $repeat.mask_type.mask:
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
97 -mask=$repeat.mask_type.mask
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
98 #end if
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
99 #if $repeat.qMask_type.qMask == "file.out":
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
100 -qMask='$repeat.qMask_type.qMask_file'
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
101 #elif $repeat.qMask_type.qMask:
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
102 -qmask=$repeat.qMask_type.qMask
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
103 #end if
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
104 #if $repeat.repeats_type.repeats == "file.out":
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
105 -repeats='$repeat.repeats_type.repeats_file'
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
106 #elif $repeat.repeats_type.repeats:
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
107 -repeats=$repeat.repeats_type.repeats
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
108 #end if
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
109 #if str($repeat.minRepDivergence)
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
110 -minRepDivergence=$repeat.minRepDivergence
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
111 #end if
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
112
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
113 #if str($dots)
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
114 -dots=$dots
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
115 #end if
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
116 '$reference_fasta_filename'
12
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
117 '$query_filename'
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
118 -out=$out
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
119 '$output'
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
120 ]]></command>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
121 <inputs>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
122 <conditional name="reference_source">
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
123 <param name="reference_source_selector" type="select" label="Choose the source for the database">
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
124 <option value="cached">Locally cached</option>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
125 <option value="history">History</option>
0
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
126 </param>
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
127 <when value="cached">
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
128 <param name="database" type="select" label="Select database">
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
129 <options from_data_table="all_fasta">
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
130 <!-- <column name="name" index="0"/>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
131 <column name="value" index="2"/> -->
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
132 <filter type="sort_by" column="2" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
133 </options>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
134 <validator type="no_options" message="A built-in database is not available" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
135 </param>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
136 </when>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
137 <when value="history">
12
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
138 <param name="database" type="data" format="fasta,fasta.gz,twobit" label="Using database file, either a fasta, fasta.gz or twobit dataset" />
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
139 </when>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
140 </conditional>
12
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
141 <param name="query" type="data" format="fasta,fasta.gz,twobit" label="Query data, either a fasta, fasta.gz or twobit dataset"/>
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
142 <param argument="-t" name="database_type" type="select" format="txt" multiple="false" label="database type" help="Choose your database type, the default is dnax">
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
143 <option value="dna" selected="true">dna - DNA sequence</option>
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
144 <option value="prot">prot - protein sequence</option>
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
145 <option value="dnax">dnax - DNA sequence translated in six frames to protein</option>
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
146 </param>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
147 <param argument="-q" name="query_type" type="select" format="txt" multiple="false" label="query type" help="Choose your query type, the default is rnax">
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
148 <option value="dna" selected="true">dna - DNA sequence </option>
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
149 <option value="rna">rna - RNA sequence</option>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
150 <option value="prot">prot - protein sequence</option>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
151 <option value="dnax">dnax - DNA sequence translated in six frames to protein</option>
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
152 <option value="rnax">rnax - DNA sequence translated in three frames to protein</option>
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
153 </param>
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
154 <section name="basic_align" title="Alignment parameters" expanded="true">
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
155 <param argument="-minScore" type="integer" value="30" label="Minimum score" help="It is the matches minus the mismatches minus some sort of gap penalty" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
156 <param argument="-minIdentity" type="integer" value="" optional="true" min="0" max="100" label="Minimum sequence identity (in percent)" help="Default is 90 for nucleotide searches, 25 for protein or translated protein searches" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
157 <param argument="-trimT" type="boolean" truevalue="-trimT" falsevalue="" label="Trim leading poly-T" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
158 <param argument="-noTrimA" type="boolean" truevalue="-noTrimA" falsevalue="" label="Don't trim trailing poly-A" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
159 <param argument="-trimHardA" type="boolean" truevalue="-trimHardA" falsevalue="" label="Remove poly-A tail from qSize and alignments in .psl output" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
160 <param argument="-fastMap" type="boolean" truevalue="-fastMap" falsevalue="" label="Run for fast DNA/DNA remapping" help="It does not allow introns and require high %ID. Query sizes must not exceed 5000" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
161 <param argument="-fine" type="boolean" truevalue="-fine" falsevalue="" label="Refine search for small initial and terminal exons" help="For high-quality mRNAs. Not recommended for ESTs" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
162 <param argument="-maxIntron" type="integer" value="750000" optional="true" label="Maximum intron size" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
163 <param argument="-extendThroughN" type="boolean" truevalue="-extendThroughN" falsevalue="" label="Allow extension of alignment through large blocks of N's" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
164 </section>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
165 <section name="adv_align" title="Advanced alignment parameters" expanded="false">
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
166 <param argument="-tileSize" type="integer" value="" optional="true" min="1" label="Tile size" help="Sets the size of match that triggers an alignment. Usually between 8 and 12. Default is 11 for DNA and 5 for protein" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
167 <param argument="-stepSize" type="integer" value="" optional="true" min="1" label="Spacing between tiles" help="Default is tileSize" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
168 <param argument="-oneOff" type="boolean" truevalue="-oneOff=1" falsevalue="" label="If set, this allows one mismatch in tile and still triggers an alignments" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
169 <param argument="-minMatch" type="integer" value="" optional="true" min="1" label="Minimum number of tile matches" help="Usually set from 2 to 4. Default is 2 for nucleotide, 1 for protein." />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
170 <param argument="-maxGap" type="integer" value="2" min="0" max="3" label="Maximum gap between tiles in a clump" help="Usually set from 0 to 3. Only relevant for minMatch > 1" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
171 <param argument="-repMatch" type="integer" value="" optional="true" label="Number of repetitions of a tile allowed before it is marked as overused" help="Typically this is 256 for tileSize 12, 1024 for tileSize 11, 4096 for tileSize 10. Also affected by stepSize. When stepSize is halved repMatch is doubled to compensate" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
172 </section>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
173 <section name="repeat" title="Repeat masking parameters" expanded="true">
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
174 <expand macro="mask_cond" maskarg="mask" label="Mask out repeats" help="Alignments won't be started in masked region but may extend through it in nucleotide searches. Masked areas are ignored entirely in protein or translated searches. Default is no masking"/>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
175 <expand macro="mask_cond" maskarg="qMask" label="Mask out repeats in query sequence" help="Analoguous to -mask, but for the query sequence"/>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
176 <expand macro="mask_cond" maskarg="repeats" label="Report matches in repeats separately" help="Repeat bases will not be masked in any way, but matches in repeat areas will be reported separately from matches in other areas in the output"/>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
177 <param argument="-minRepDivergence" type="integer" value="" min="0" max="100" optional="true" label="Minimum divergence of repeats (percent)" help="to allow them to be unmasked. Default is 15. Only relevant for masking using RepeatMasker .out files" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
178 </section>
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
179 <param argument="-dots" type="integer" value="" optional="true" label="Output a dot every N sequences in log" help="Dots show program's progress" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
180 <param name="out" type="select" label="Select output file format (-out)">
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
181 <option value="psl">Tab-separated format, no sequence (psl)</option>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
182 <option value="psl -noHead">Tab-separated format, no sequence, no header (psl -noHead)</option>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
183 <option value="axt">Blastz-associated axt format (axt)</option>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
184 <option value="maf">Multiz-associated maf format (maf)</option>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
185 <option value="sim4">Similar to sim4 format (sim4)</option>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
186 <option value="wublast">Similar to WU-BLAST format (wublast)</option>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
187 <option value="blast">Similar to NCBI BLAST format (blast)</option>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
188 <option value="blast8">NCBI BLAST tabular format (blast8)</option>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
189 <option value="blast9">NCBI BLAST tabular format with comments (blast9)</option>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
190 </param>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
191 </inputs>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
192 <outputs>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
193 <data name="output" format="tabular" label="${tool.name} on ${on_string}">
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
194 <change_format><!-- add test -->
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
195 <when input="out" value="axt" format="axt" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
196 <when input="out" value="maf" format="maf" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
197 <when input="out" value="sim4" format="txt" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
198 </change_format>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
199 </data>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
200 </outputs>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
201 <tests>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
202 <!-- test on query of GenBank RefSeq records for Gallus gallus and database of Amazona vittata -->
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
203 <test>
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
204 <conditional name="reference_source">
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
205 <param name="reference_source_selector" value="history" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
206 <param name="database" value="amaVit1_Gallus/amaVit1.fa" ftype="fasta" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
207 </conditional>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
208 <param name="query" value="amaVit1_Gallus/Gallus_gallus_RefSeq.fa" ftype="fasta" />
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
209 <param name="database_type" value="dnax" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
210 <param name="query_type" value="rnax" />
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
211 <conditional name="mask_type">
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
212 <param name="mask" value="lower" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
213 </conditional>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
214 <param name="out" value="maf" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
215 <output name="output" value="amaVit1_Gallus/amaVit1_Gallus_gallus_sorted.maf" ftype="maf"/>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
216 <assert_command>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
217 <has_text text="-tileSize=" negate="true"/>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
218 <has_text text="-stepSize=" negate="true"/>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
219 <has_text text="-mask=lower"/>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
220 </assert_command>
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
221 </test>
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
222 <!-- test on query of partial mRNA of Drosophila melanogaster and the
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
223 database of Drosophila biamipes dot chromosome
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
224 - also test cached reference -->
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
225 <test>
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
226 <conditional name="reference_source">
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
227 <param name="reference_source_selector" value="cached"/>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
228 <param name="database" value="dbdia display name"/>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
229 </conditional>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
230 <param name="query" value="dbia3/dmel-transcript.fa" ftype="fasta" />
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
231 <param name="database_type" value="dnax" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
232 <param name="query_type" value="rnax" />
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
233 <section name="basic_align">
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
234 <param name="maxIntron" value="" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
235 </section>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
236 <section name="adv_align">
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
237 <param name="tileSize" value="5"/><!--explicitly set default .. to check if it is on the CL-->
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
238 <param name="stepSize" value="5"/><!--explicitly set default .. to check if it is on the CL-->
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
239 </section>
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
240 <param name="out" value="psl -noHead" />
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
241 <output name="output" value="dbia3/dbia3.sorted.psl" ftype="tabular" sort="true"/>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
242 <assert_command>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
243 <has_text text="-tileSize=5"/>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
244 <has_text text="-mask" negate="true"/>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
245 </assert_command>
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
246 </test>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
247 <!-- test on the database masked by repeat masker -->
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
248 <test>
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
249 <conditional name="reference_source">
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
250 <param name="reference_source_selector" value="history" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
251 <param name="database" value="dbia3/dbia3_masked.2bit" ftype="twobit" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
252 </conditional>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
253 <param name="query" value="dbia3/dmel-transcript.fa" ftype="fasta"/>
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
254 <param name="database_type" value="dnax" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
255 <param name="query_type" value="rnax" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
256 <param name="oneOff" value="false" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
257 <param name="minScore" value="30" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
258 <param name="maxGap" value="2" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
259 <param name="trimT" value="false" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
260 <param name="noTrimA" value="false" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
261 <param name="fine" value="false" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
262 <param name="maxIntron" value="750000" />
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
263 <param name="extendThroughN" value="false" />
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
264 <conditional name="mask_type">
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
265 <param name="mask" value="file.out" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
266 <param name="mask_file" value="dbia3/dbia3_RM.out" />
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
267 </conditional>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
268 <param name="out" value="psl" ftype="tabular" />
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
269 <output name="output" value="dbia3/dbia3_masked.sorted.psl"/>
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
270 <assert_command>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
271 <has_text text="-tileSize=" negate="true"/>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
272 <has_text text="-stepSize=" negate="true"/>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
273 <has_text text="-mask='/"/>
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
274 </assert_command>
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
275 </test>
12
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
276 <!-- tiny test data from https://davetang.org/muse/2012/05/15/using-blat/ -->
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
277 <test>
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
278 <conditional name="reference_source">
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
279 <param name="reference_source_selector" value="history" />
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
280 <param name="database" value="mini-db.fa.gz" ftype="fasta.gz" />
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
281 </conditional>
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
282 <param name="query" value="mini-query.fa.gz" ftype="fasta.gz"/>
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
283 <param name="minScore" value="0" />
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
284 <section name="adv_align">
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
285 <param name="stepSize" value="1"/>
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
286 </section>
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
287 <param name="out" value="psl" ftype="tabular" />
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
288 <output name="output">
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
289 <assert_contents>
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
290 <has_n_lines n="7"/>
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
291 </assert_contents>
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
292 </output>
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
293 <assert_command>
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
294 <has_text text="-minScore=0"/>
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
295 <has_text text="-stepSize=1"/>
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
296 </assert_command>
e79965d0351c planemo upload commit 6358ce7c332f42526423d365f06516983ca677a0
iuc
parents: 11
diff changeset
297 </test> </tests>
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
298 <help>
0
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
299 <![CDATA[
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
300 BLAT
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
301 ====
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
302 BLAT is a bioinformatics software a tool which performs rapid sequence alignments (mRNA/DNA and cross-species protein).
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
303 It is designed to find sequences of high similarity and have a certain minimum length. With the default setting this is
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
304
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
305 - >95% similarity and a minimum length of 25 bases for nucleotide sequences
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
306 - >80% similarity and a minimum lenth of 20 amino acids for proteins
0
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
307
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
308 More divergent or shorter sequence alignments may be missed.
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
309 The algorithm works in two phases:
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
310
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
311 1. Search phase: find regions of probable homology using an index of the reference sequence
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
312 2. Alignment phase: Detailed Alignment of the sequences in these regions
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
313
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
314 Search phase
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
315 ++++++++++++
0
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
316
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
317 Builds an index of the reference containing the nonoverlapping K-mers and their
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
318 positions (by default, can be changed using `-tileSize` and `-stepSize`). Hits,
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
319 i.e. exactly matching k-mers in query and reference, are then found by looking
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
320 up each overlapping K-mer of the query sequence. By enabling `-oneOff` the
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
321 algorithm allows for a single substitition. Note that this increases the run
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
322 time of this phase significantly.
0
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
323
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
324 The hits are then split into buckets of 64k (based on the database position)
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
325 and sorted on the diagonal (database minus query positions). Hits within the
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
326 gap limit form so called proto-clumps. Those are then sorted by database position
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
327 and put into clumps if they are within the window limit (wrt database coordinate).
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
328
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
329 Clumps with less than the minimum number of hits are discarded (-minMatch) and
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
330 those within 300 bases or 100 amino acids in the database are merged together.
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
331 The resulting clumps define regions of the database which are homologous to the
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
332 query sequence which are then aligned.
0
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
333
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
334 Alignment phase
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
335 +++++++++++++++
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
336
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
337 The alignment is performed differently for nucleotide and
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
338 aminoacid sequences.
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
339
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
340 **Alignment for nucleotide sequences**: A hit list (exactly matching k-mers) for
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
341 the query and the homologous region of the database is generated. If necessary
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
342 hits are mode unique by extending them until they are unique or have a maximum
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
343 size. The hits are then extended maximally allowing no mismatches, and overlapping
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
344 hits are merged.
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
345 Subsequent (wrt query and reference) extended hits are then linked in an
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
346 alignment. If there are gaps in query and reference, the algorithm recurses
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
347 using a smaller value for k until no additional hits are found or gaps are
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
348 smaller than 6 bases.
0
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
349
11
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
350 **Protein Alignments**: The hits from the search stage are extended into maximally
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
351 scoring ungapped alignments (HSPs) (match cost 2 and mismatch cost 1). The HSPs
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
352 are organized in a directed graph where an edge connect HSPs A and B if A starts
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
353 before B wrt query and database coordinates. The weight of the edge is then
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
354 defined as the score of B minus a gap penalty based on the distance between A
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
355 and B (overlapping HSPs are treated differently, see Kent 2002). The maximal
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
356 scoring alignment is then determined as the maximum weight path through the
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
357 graph and the HSPs of this path are removed. This is repeated until no HSPs are
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
358 left.
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
359
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
360 **Stitching and Filling In**:
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
361 In order to find also alignments of genes scattered across multiple homologous
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
362 regions that have been determined in the search phase a variation of the
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
363 alignment algorithm for proteins is employed. For details see Kent 2002.
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
364
2a89f630fa85 planemo upload commit 3bb07d25ab817c936018d57b6d81f728915cfadf
iuc
parents: 10
diff changeset
365 Documentation:
0
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
366 ++++++++++++++
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
367
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
368 See Blat documentation (http://genome.ucsc.edu/goldenPath/help/blatSpec.html)
0
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
369
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
370 Source code:
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
371 ++++++++++++
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
372
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
373 http://hgdownload.cse.ucsc.edu/admin/exe/
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
374
10
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
375 ]]></help>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
376 <citations>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
377 <citation type="doi">10.1101/gr.229202</citation>
c449963debd5 planemo upload commit c5f669e334bf65c1158855bd1eef88df78a8028c
iuc
parents: 9
diff changeset
378 </citations>
0
951076264957 planemo upload commit 9e778f6145837bd749e60913d184d3d90e2677df
yating-l
parents:
diff changeset
379 </tool>