annotate tools/sr_mapping/bowtie_color_wrapper.xml @ 1:cdcb0ce84a1b

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:45:15 -0500
parents 9071e359b9a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="bowtie_color_wrapper" name="Map with Bowtie for SOLiD" version="1.1.2">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <requirements><requirement type='package'>bowtie</requirement></requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <description></description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <command interpreter="python">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 bowtie_wrapper.py
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 ## Hackish setting of number of threads
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 --threads="4"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 ## Outputs
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 --output=$output
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 #if str( $singlePaired.sPaired ) == "single"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 #if $output_unmapped_reads_l
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 --output_unmapped_reads=$output_unmapped_reads_l
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 #if $output_suppressed_reads_l
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 --output_suppressed_reads=$output_suppressed_reads_l
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 #else
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 #if $output_unmapped_reads_l and $output_unmapped_reads_r
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 --output_unmapped_reads_l=$output_unmapped_reads_l
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 --output_unmapped_reads_r=$output_unmapped_reads_r
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 #if $output_suppressed_reads_l and $output_suppressed_reads_l
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 --output_suppressed_reads_l=$output_suppressed_reads_l
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 --output_suppressed_reads_r=$output_suppressed_reads_r
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 ## Inputs
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 --dataType="solid"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 --suppressHeader=$suppressHeader
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 --genomeSource=$refGenomeSource.genomeSource
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 #if $refGenomeSource.genomeSource == "history":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 ##index already exists
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 #if $refGenomeSource.ownFile.extension.startswith( 'bowtie_' ):
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 ##user previously built
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 --ref="${refGenomeSource.ownFile.extra_files_path}/${refGenomeSource.ownFile.metadata.base_name}"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 --do_not_build_index
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 #else:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 ##build index on the fly
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 --ref=$refGenomeSource.ownFile
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 --indexSettings=$refGenomeSource.indexParams.indexSettings
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 #if $refGenomeSource.indexParams.indexSettings == "indexFull":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 --iautoB=$refGenomeSource.indexParams.autoBehavior.autoB
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 #if $refGenomeSource.indexParams.autoBehavior.autoB == "set":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 --ipacked=$refGenomeSource.indexParams.autoBehavior.packed
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 --ibmax=$refGenomeSource.indexParams.autoBehavior.bmax
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 --ibmaxdivn=$refGenomeSource.indexParams.autoBehavior.bmaxdivn
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 --idcv=$refGenomeSource.indexParams.autoBehavior.dcv
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 --inodc=$refGenomeSource.indexParams.nodc
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 --inoref=$refGenomeSource.indexParams.noref
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 --ioffrate=$refGenomeSource.indexParams.offrate
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 --iftab=$refGenomeSource.indexParams.ftab
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 --intoa=$refGenomeSource.indexParams.ntoa
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 --iendian=$refGenomeSource.indexParams.endian
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 --iseed=$refGenomeSource.indexParams.seed
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 --icutoff=$refGenomeSource.indexParams.cutoff
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 #else
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 ##use pre-built index
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 --ref="${ filter( lambda x: str( x[0] ) == str( $refGenomeSource.index ), $__app__.tool_data_tables[ 'bowtie_indexes_color' ].get_fields() )[0][-1] }"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 --paired=$singlePaired.sPaired
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 #if $singlePaired.sPaired == "single":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 --input1=$singlePaired.sInput1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 --params=$singlePaired.sParams.sSettingsType
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67 #if $singlePaired.sParams.sSettingsType == "full":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 --skip=$singlePaired.sParams.sSkip
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 --alignLimit=$singlePaired.sParams.sAlignLimit
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 --trimH=$singlePaired.sParams.sTrimH
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 --trimL=$singlePaired.sParams.sTrimL
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72 --mismatchSeed=$singlePaired.sParams.sMismatchSeed
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 --mismatchQual=$singlePaired.sParams.sMismatchQual
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 --seedLen=$singlePaired.sParams.sSeedLen
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75 --rounding=$singlePaired.sParams.sRounding
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76 --maqSoapAlign=$singlePaired.sParams.sMaqSoapAlign
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77 --tryHard=$singlePaired.sParams.sTryHard
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 --valAlign=$singlePaired.sParams.sValAlign
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79 --allValAligns=$singlePaired.sParams.sAllValAligns
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 --suppressAlign=$singlePaired.sParams.sSuppressAlign
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81 --best=$singlePaired.sParams.sBestOption.sBest
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
82 #if $singlePaired.sParams.sBestOption.sBest == "doBest":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
83 --maxBacktracks=$singlePaired.sParams.sBestOption.sdMaxBacktracks
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
84 --strata=$singlePaired.sParams.sBestOption.sdStrata
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
85 #else:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
86 --maxBacktracks=$singlePaired.sParams.sBestOption.snMaxBacktracks
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
87 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
88 --offrate=$singlePaired.sParams.sOffrate
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
89 --seed=$singlePaired.sParams.sSeed
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
90 --snpphred=$singlePaired.sParams.sSnpphred
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
91 --snpfrac=$singlePaired.sParams.sSnpfrac
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
92 --keepends=$singlePaired.sParams.sKeepends
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
93 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
94 #else:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
95 --input1=$singlePaired.pInput1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
96 --input2=$singlePaired.pInput2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
97 --maxInsert=$singlePaired.pMaxInsert
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
98 --mateOrient=$singlePaired.pMateOrient
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
99 --params=$singlePaired.pParams.pSettingsType
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
100 #if $singlePaired.pParams.pSettingsType == "full":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
101 --skip=$singlePaired.pParams.pSkip
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
102 --alignLimit=$singlePaired.pParams.pAlignLimit
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
103 --trimH=$singlePaired.pParams.pTrimH
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
104 --trimL=$singlePaired.pParams.pTrimL
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
105 --mismatchSeed=$singlePaired.pParams.pMismatchSeed
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
106 --mismatchQual=$singlePaired.pParams.pMismatchQual
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
107 --seedLen=$singlePaired.pParams.pSeedLen
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
108 --rounding=$singlePaired.pParams.pRounding
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
109 --maqSoapAlign=$singlePaired.pParams.pMaqSoapAlign
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
110 --minInsert=$singlePaired.pParams.pMinInsert
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
111 --maxAlignAttempt=$singlePaired.pParams.pMaxAlignAttempt
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
112 --forwardAlign=$singlePaired.pParams.pForwardAlign
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
113 --reverseAlign=$singlePaired.pParams.pReverseAlign
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
114 --tryHard=$singlePaired.pParams.pTryHard
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
115 --valAlign=$singlePaired.pParams.pValAlign
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
116 --allValAligns=$singlePaired.pParams.pAllValAligns
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
117 --suppressAlign=$singlePaired.pParams.pSuppressAlign
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
118 --best=$singlePaired.pParams.pBestOption.pBest
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
119 #if $singlePaired.pParams.pBestOption.pBest == "doBest":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
120 --maxBacktracks=$singlePaired.pParams.pBestOption.pdMaxBacktracks
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
121 --strata=$singlePaired.pParams.pBestOption.pdStrata
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
122 #else:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
123 --maxBacktracks=$singlePaired.pParams.pBestOption.pnMaxBacktracks
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
124 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
125 --offrate=$singlePaired.pParams.pOffrate
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
126 --seed=$singlePaired.pParams.pSeed
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
127 --snpphred=$singlePaired.pParams.pSnpphred
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
128 --snpfrac=$singlePaired.pParams.pSnpfrac
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
129 --keepends=$singlePaired.pParams.pKeepends
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
130 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
131 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
132 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
133 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
134 <conditional name="refGenomeSource">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
135 <param name="genomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
136 <option value="indexed">Use a built-in index</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
137 <option value="history">Use one from the history</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
138 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
139 <when value="indexed">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
140 <param name="index" type="select" label="Select the reference genome" help="if your genome of interest is not listed - contact Galaxy team">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
141 <options from_data_table="bowtie_indexes_color">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
142 <filter type="sort_by" column="2" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
143 <validator type="no_options" message="No indexes are available" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
144 </options>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
145 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
146 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
147 <when value="history">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
148 <param name="ownFile" type="data" format="bowtie_color_index,fasta" metadata_name="dbkey" label="Select the reference genome" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
149 <conditional name="indexParams">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
150 <param name="indexSettings" type="select" label="Choose whether to use Default options for building indices or to Set your own" help="These settings are ignored when using a prebuilt index">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
151 <option value="indexPreSet">Default</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
152 <option value="indexFull">Set your own</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
153 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
154 <when value="indexPreSet" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
155 <when value="indexFull">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
156 <conditional name="autoBehavior">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
157 <param name="autoB" type="select" label="Choose to use automatic or specified behavior for some parameters (-a)" help="Allows you to set --packed, --bmax, --bmaxdivn, and --dcv">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
158 <option value="auto">Automatic behavior</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
159 <option value="set">Set values (sets --noauto and allows others to be set)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
160 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
161 <when value="auto" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
162 <when value="set">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
163 <param name="packed" type="select" label="Whether or not to use a packed representation for DNA strings (--packed)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
164 <option value="unpacked">Use regular representation</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
165 <option value="packed">Use packed representation</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
166 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
167 <param name="bmax" type="integer" value="-1" label="Maximum number of suffixes allowed in a block (--bmax)" help="-1 for not specified. Must be at least 1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
168 <param name="bmaxdivn" type="integer" value="4" label="Maximum number of suffixes allowed in a block as a fraction of the length of the reference (--bmaxdivn)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
169 <param name="dcv" type="integer" value="1024" label="The period for the difference-cover sample (--dcv)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
170 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
171 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
172 <param name="nodc" type="select" label="Whether or not to disable the use of the difference-cover sample (--nodc)" help="Suffix sorting becomes quadratic-time in the worst case (with a very repetitive reference)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
173 <option value="dc">Use difference-cover sample</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
174 <option value="nodc">Disable difference-cover sample</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
175 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
176 <param name="noref" type="select" label="Whether or not to build the part of the reference index used only in paired-end alignment (-r)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
177 <option value="ref">Build all index files</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
178 <option value="noref">Do not build paired-end alignment index files</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
179 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
180 <param name="offrate" type="integer" value="5" label="How many rows get marked during annotation of some or all of the Burrows-Wheeler rows (-o)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
181 <param name="ftab" type="integer" value="10" label="The size of the lookup table used to calculate an initial Burrows-Wheeler range with respect to the first n characters of the query (-t)" help="ftab is 4^(n+1) bytes" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
182 <param name="ntoa" type="select" label="Whether or not to convert Ns in the reference sequence to As (--ntoa)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
183 <option value="no">Do not convert Ns</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
184 <option value="yes">Convert Ns to As</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
185 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
186 <param name="endian" type="select" label="Endianness to use when serializing integers to the index file (--big/--little)" help="Little is most appropriate for Intel- and AMD-based architecture">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
187 <option value="little">Little</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
188 <option value="big">Big</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
189 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
190 <param name="seed" type="integer" value="-1" label="Seed for the pseudorandom number generator (--seed)" help="Use -1 to use default" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
191 <param name="cutoff" type="integer" value="-1" label="Number of first bases of the reference sequence to index (--cutoff)" help="Use -1 to use default" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
192 </when> <!-- indexFull -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
193 </conditional> <!-- indexParams -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
194 </when> <!-- history -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
195 </conditional> <!-- refGenomeSource -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
196 <conditional name="singlePaired">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
197 <param name="sPaired" type="select" label="Is this library mate-paired?">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
198 <option value="single">Single-end</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
199 <option value="paired">Paired-end</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
200 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
201 <when value="single">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
202 <param name="sInput1" type="data" format="fastqcssanger" label="FASTQ file" help="Must have Sanger-scaled quality values with ASCII offset 33"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
203 <conditional name="sParams">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
204 <param name="sSettingsType" type="select" label="Bowtie settings to use" help="For most mapping needs use Commonly used settings. If you want full control use Full parameter list">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
205 <option value="preSet">Commonly used</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
206 <option value="full">Full parameter list</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
207 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
208 <when value="preSet" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
209 <when value="full">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
210 <param name="sSkip" type="integer" value="0" label="Skip the first n reads (-s)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
211 <param name="sAlignLimit" type="integer" value="-1" label="Only align the first n reads (-u)" help="-1 for off" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
212 <param name="sTrimH" type="integer" value="0" label="Trim n bases from high-quality (left) end of each read before alignment (-5)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
213 <param name="sTrimL" type="integer" value="0" label="Trim n bases from low-quality (right) end of each read before alignment (-3)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
214 <param name="sMismatchSeed" type="integer" value="2" label="Maximum number of mismatches permitted in the seed (-n)" help="May be 0, 1, 2, or 3" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
215 <param name="sMismatchQual" type="integer" value="70" label="Maximum permitted total of quality values at mismatched read positions (-e)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
216 <param name="sSeedLen" type="integer" value="28" label="Seed length (-l)" help="Minimum value is 5" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
217 <param name="sRounding" type="select" label="Whether or not to round to the nearest 10 and saturating at 30 (--nomaqround)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
218 <option value="round">Round to nearest 10</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
219 <option value="noRound">Do not round to nearest 10</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
220 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
221 <param name="sMaqSoapAlign" type="integer" value="-1" label="Number of mismatches for SOAP-like alignment policy (-v)" help="-1 for default MAQ-like alignment policy" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
222 <param name="sTryHard" type="select" label="Whether or not to try as hard as possible to find valid alignments when they exist (-y)" help="Tryhard mode is much slower than regular mode">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
223 <option value="noTryHard">Do not try hard</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
224 <option value="doTryHard">Try hard</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
225 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
226 <param name="sValAlign" type="integer" value="1" label="Report up to n valid alignments per read (-k)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
227 <param name="sAllValAligns" type="select" label="Whether or not to report all valid alignments per read (-a)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
228 <option value="noAllValAligns">Do not report all valid alignments</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
229 <option value="doAllValAligns">Report all valid alignments</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
230 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
231 <param name="sSuppressAlign" type="integer" value="-1" label="Suppress all alignments for a read if more than n reportable alignments exist (-m)" help="-1 for no limit" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
232 <param name="sMaxFile" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write all reads with a number of valid alignments exceeding the limit set with the -m option to a file (--max)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
233 <param name="sUnmappedFile" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write all reads that could not be aligned to a file (--un)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
234 <conditional name="sBestOption">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
235 <param name="sBest" type="select" label="Whether or not to make Bowtie guarantee that reported singleton alignments are 'best' in terms of stratum and in terms of the quality values at the mismatched positions (--best)" help="Removes all strand bias. Only affects which alignments are reported by Bowtie. Runs slower with best option">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
236 <option value="noBest">Do not use best</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
237 <option value="doBest">Use best</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
238 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
239 <when value="noBest">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
240 <param name="snMaxBacktracks" type="integer" value="125" label="Maximum number of backtracks permitted when aligning a read (--maxbts)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
241 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
242 <when value="doBest">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
243 <param name="sdMaxBacktracks" type="integer" value="800" label="Maximum number of backtracks permitted when aligning a read (--maxbts)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
244 <param name="sdStrata" type="select" label="Whether or not to report only those alignments that fall in the best stratum if many valid alignments exist and are reportable (--strata)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
245 <option value="noStrata">Do not use strata option</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
246 <option value="doStrata">Use strata option</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
247 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
248 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
249 </conditional> <!-- sBestOption -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
250 <param name="sOffrate" type="integer" value="-1" label="Override the offrate of the index to n (-o)" help="-1 for default" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
251 <param name="sSeed" type="integer" value="-1" label="Seed for pseudo-random number generator (--seed)" help="-1 for default" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
252 <param name="sSnpphred" type="integer" value="-1" label="SNP penalty (ratio of SNPs per base in the subject genome) (--snpphred)" help="Enter this OR Ratio of SNPs per base" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
253 <param name="sSnpfrac" type="float" value="0.001" label="Ratio of SNPs per base (estimated ratio for colorspace alignments) (--snpfrac)" help="Enter this OR SNP penalty" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
254 <param name="sKeepends" type="select" label="Keep the extreme-ends nucleotides and qualities rather than trimming them (--col-keepends)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
255 <option value="doKeepends">Keep ends</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
256 <option value="noKeepends">Trim ends</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
257 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
258 </when> <!-- full -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
259 </conditional> <!-- sParams -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
260 </when> <!-- single -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
261 <when value="paired">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
262 <param name="pInput1" type="data" format="fastqcssanger" label="FASTQ file" help="Must have Sanger-scaled quality values with ASCII offset 33"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
263 <param name="pInput2" type="data" format="fastqcssanger" label="Reverse FASTQ file" help="Must have Sanger-scaled quality values with ASCII offset 33"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
264 <param name="pMaxInsert" type="integer" value="1000" label="Maximum insert size for valid paired-end alignments (-X)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
265 <param name="pMateOrient" type="select" label="The upstream/downstream mate orientation for valid paired-end alignment against the forward reference strand (--fr/--rf/--ff)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
266 <option value="ff">FF (for SOLiD)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
267 <option value="fr">FR (for Illumina)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
268 <option value="rf">RF</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
269 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
270 <conditional name="pParams">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
271 <param name="pSettingsType" type="select" label="Bowtie settings to use" help="For most mapping needs use Commonly used settings. If you want full control use Full parameter list">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
272 <option value="preSet">Commonly used</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
273 <option value="full">Full parameter list</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
274 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
275 <when value="preSet" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
276 <when value="full">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
277 <param name="pSkip" type="integer" value="0" label="Skip the first n pairs (-s)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
278 <param name="pAlignLimit" type="integer" value="-1" label="Only align the first n pairs (-u)" help="-1 for off" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
279 <param name="pTrimH" type="integer" value="0" label="Trim n bases from high-quality (left) end of each read before alignment (-5)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
280 <param name="pTrimL" type="integer" value="0" label="Trim n bases from low-quality (right) end of each read before alignment (-3)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
281 <param name="pMismatchSeed" type="integer" value="2" label="Maximum number of mismatches permitted in the seed (-n)" help="May be 0, 1, 2, or 3" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
282 <param name="pMismatchQual" type="integer" value="70" label="Maximum permitted total of quality values at mismatched read positions (-e)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
283 <param name="pSeedLen" type="integer" value="28" label="Seed length (-l)" help="Minimum value is 5" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
284 <param name="pRounding" type="select" label="Whether or not to round to the nearest 10 and saturating at 30 (--nomaqround)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
285 <option value="round">Round to nearest 10</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
286 <option value="noRound">Do not round to nearest 10</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
287 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
288 <param name="pMaqSoapAlign" type="integer" value="-1" label="Number of mismatches for SOAP-like alignment policy (-v)" help="-1 for default MAQ-like alignment policy" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
289 <param name="pMinInsert" type="integer" value="0" label="Minimum insert size for valid paired-end alignments (-I)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
290 <param name="pMaxAlignAttempt" type="integer" value="100" label="Maximum number of attempts Bowtie will make to match an alignment for one mate with an alignment for the opposite mate (--pairtries)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
291 <param name="pForwardAlign" type="select" label="Choose whether or not to attempt to align the forward reference strand (--nofw)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
292 <option value="forward">Align against the forward reference strand</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
293 <option value="noForward">Do not align against the forward reference strand</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
294 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
295 <param name="pReverseAlign" type="select" label="Choose whether or not to align against the reverse-complement reference strand (--norc)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
296 <option value="reverse">Align against the reverse-complement reference strand</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
297 <option value="noReverse">Do not align against the reverse-complement reference strand</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
298 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
299 <param name="pTryHard" type="select" label="Whether or not to try as hard as possible to find valid alignments when they exist (-y)" help="Tryhard mode is much slower than regular mode">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
300 <option value="noTryHard">Do not try hard</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
301 <option value="doTryHard">Try hard</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
302 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
303 <param name="pValAlign" type="integer" value="1" label="Report up to n valid arguments per pair (-k)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
304 <param name="pAllValAligns" type="select" label="Whether or not to report all valid alignments per pair (-a)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
305 <option value="noAllValAligns">Do not report all valid alignments</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
306 <option value="doAllValAligns">Report all valid alignments</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
307 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
308 <param name="pSuppressAlign" type="integer" value="-1" label="Suppress all alignments for a pair if more than n reportable alignments exist (-m)" help="-1 for no limit" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
309 <param name="pMaxFile" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write all reads with a number of valid alignments exceeding the limit set with the -m option to a file (--max)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
310 <param name="pUnmappedFile" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write all reads that could not be aligned to a file (--un)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
311 <conditional name="pBestOption">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
312 <param name="pBest" type="select" label="Whether or not to make Bowtie guarantee that reported singleton alignments are 'best' in terms of stratum and in terms of the quality values at the mismatched positions (--best)" help="Removes all strand bias. Only affects which alignments are reported by Bowtie. Runs slower with best option">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
313 <option value="noBest">Do not use best</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
314 <option value="doBest">Use best</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
315 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
316 <when value="noBest">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
317 <param name="pnMaxBacktracks" type="integer" value="125" label="Maximum number of backtracks permitted when aligning a read (--maxbts)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
318 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
319 <when value="doBest">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
320 <param name="pdMaxBacktracks" type="integer" value="800" label="Maximum number of backtracks permitted when aligning a read (--maxbts)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
321 <param name="pdStrata" type="select" label="Whether or not to report only those alignments that fall in the best stratum if many valid alignments exist and are reportable (--strata)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
322 <option value="noStrata">Do not use strata option</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
323 <option value="doStrata">Use strata option</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
324 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
325 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
326 </conditional> <!-- pBestOption -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
327 <param name="pOffrate" type="integer" value="-1" label="Override the offrate of the index to n (-o)" help="-1 for default" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
328 <param name="pSeed" type="integer" value="-1" label="Seed for pseudo-random number generator (--seed)" help="-1 for default" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
329 <param name="pSnpphred" type="integer" value="-1" label="SNP penalty (ratio of SNPs per base in the subject genome) (--snpphred)" help="Enter this OR Ratio of SNPs per base" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
330 <param name="pSnpfrac" type="float" value="0.001" label="Ratio of SNPs per base (estimated ratio for colorspace alignments) (--snpfrac)" help="Enter this OR SNP penalty" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
331 <param name="pKeepends" type="select" label="Keep the extreme-ends nucleotides and qualities rather than trimming them (--col-keepends)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
332 <option value="doKeepends">Keep ends</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
333 <option value="noKeepends">Trim ends</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
334 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
335 </when> <!-- full -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
336 </conditional> <!-- pParams -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
337 </when> <!-- paired -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
338 </conditional> <!-- singlePaired -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
339 <param name="suppressHeader" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Suppress the header in the output SAM file" help="Bowtie produces SAM with several lines of header information by default" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
340 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
341 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
342 <data format="sam" name="output" label="${tool.name} on ${on_string}: mapped reads">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
343 <actions>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
344 <conditional name="refGenomeSource.genomeSource">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
345 <when value="indexed">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
346 <action type="metadata" name="dbkey">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
347 <option type="from_data_table" name="bowtie_indexes_color" column="1" offset="0">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
348 <filter type="param_value" column="0" value="#" filter_by="startswith" keep="False"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
349 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
350 </option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
351 </action>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
352 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
353 <when value="history">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
354 <action type="metadata" name="dbkey">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
355 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
356 </action>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
357 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
358 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
359 </actions>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
360 </data>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
361 <data format="fastqcssanger" name="output_suppressed_reads_l" label="${tool.name} on ${on_string}: suppressed reads (L)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
362 <filter>((
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
363 singlePaired['sPaired'] == "single" and
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
364 singlePaired['sParams']['sSettingsType'] == "full" and
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
365 singlePaired['sParams']['sMaxFile'] is True
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
366 ) or (
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
367 singlePaired['sPaired'] == "paired" and
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
368 singlePaired['pParams']['pSettingsType'] == "full" and
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
369 singlePaired['pParams']['pMaxFile'] is True
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
370 ))
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
371 </filter>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
372 </data>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
373 <data format="fastqcssanger" name="output_suppressed_reads_r" label="${tool.name} on ${on_string}: suppressed reads (R)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
374 <filter>singlePaired['sPaired'] == "paired"</filter>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
375 <filter>singlePaired['pParams']['pSettingsType'] == "full"</filter>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
376 <filter>singlePaired['pParams']['pMaxFile'] is True</filter>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
377 </data>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
378 <data format="fastqcssanger" name="output_unmapped_reads_l" label="${tool.name} on ${on_string}: unmapped reads (L)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
379 <filter>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
380 ((
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
381 singlePaired['sPaired'] == "single" and
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
382 singlePaired['sParams']['sSettingsType'] == "full" and
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
383 singlePaired['sParams']['sUnmappedFile'] is True
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
384 ) or (
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
385 singlePaired['sPaired'] == "paired" and
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
386 singlePaired['pParams']['pSettingsType'] == "full" and
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
387 singlePaired['pParams']['pUnmappedFile'] is True
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
388 ))
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
389 </filter>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
390 </data>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
391 <data format="fastqcssanger" name="output_unmapped_reads_r" label="${tool.name} on ${on_string}: unmapped reads (R)">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
392 <filter>singlePaired['sPaired'] == "paired"</filter>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
393 <filter>singlePaired['pParams']['pSettingsType'] == "full"</filter>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
394 <filter>singlePaired['pParams']['pUnmappedFile'] is True</filter>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
395 </data>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
396 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
397 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
398 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
399 <!--
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
400 Bowtie command:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
401 bowtie -q -p 4 -S +sam-nohead -C chrM_color test-data/bowtie_in1.fastqcssanger > bowtie_out1_u.sam
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
402 sort bowtie_out1_u.sam > bowtie_out1.sam
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
403 -p is the number of threads, which is hardcoded above. You need to replace the + with 2 dashes.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
404 chrM_color needs to be the base location/name of the index files.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
405 -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
406 <param name="genomeSource" value="indexed" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
407 <param name="index" value="equCab2chrM" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
408 <param name="sPaired" value="single" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
409 <param name="sInput1" ftype="fastqcssanger" value="bowtie_in1.fastqcssanger" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
410 <param name="sSettingsType" value="preSet" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
411 <param name="suppressHeader" value="true" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
412 <output name="output" ftype="sam" file="bowtie_out1.sam" sort="True" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
413 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
414 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
415 <!--
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
416 Bowtie command:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
417 bowtie-build -C -f test-data/chr_m.fasta chrM_color
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
418 bowtie -q -X 1000 +ff -p 4 -S +sam-nohead -C -n 2 -e 70 -l 28 -X 250 +pairtries 100 +maxbts 125 -k 1 +snpfrac 0.001 +col-keepends +un bowtie_out3_u.fastq chrM_color -1 test-data/bowtie_in3.fastqcssanger -2 test-data/bowtie_in4.fastqcssanger > bowtie_out2_u.sam
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
419 sort bowtie_out2_u.sam > bowtie_out2.sam
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
420 sort bowtie_out3_u_1.sam > bowtie_out3_1.sam
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
421 sort bowtie_out3_u_2.sam > bowtie_out3_2.sam
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
422 Then also need to modify bowtie_out3_1.sam and bowtie_out3_2.sam so that all @ lines come before sequence lines.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
423 The two unmapped output files will be named bowtie_out4_1.fastq and bowtie_out4_2.fastq
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
424 -p is the number of threads, hardcoded above. You need to replace the + with 2 dashes.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
425 chrM_base is the index files' location/base name.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
426 -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
427 <param name="genomeSource" value="history" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
428 <param name="ownFile" value="chr_m.fasta" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
429 <param name="indexSettings" value="indexPreSet" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
430 <param name="sPaired" value="paired" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
431 <param name="pInput1" ftype="fastqcssanger" value="bowtie_in3.fastqcssanger" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
432 <param name="pInput2" ftype="fastqcssanger" value="bowtie_in4.fastqcssanger" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
433 <param name="pMaxInsert" value="1000" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
434 <param name="pMateOrient" value="ff" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
435 <param name="pSettingsType" value="full" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
436 <param name="pSkip" value="0" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
437 <param name="pAlignLimit" value="-1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
438 <param name="pTrimH" value="0" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
439 <param name="pTrimL" value="0" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
440 <param name="pMismatchSeed" value="2" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
441 <param name="pMismatchQual" value="70" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
442 <param name="pSeedLen" value="28" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
443 <param name="pRounding" value="round" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
444 <param name="pMaqSoapAlign" value="-1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
445 <param name="pMinInsert" value="0" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
446 <param name="pMaxAlignAttempt" value="100" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
447 <param name="pForwardAlign" value="forward" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
448 <param name="pReverseAlign" value="reverse" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
449 <param name="pTryHard" value="noTryHard" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
450 <param name="pValAlign" value="1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
451 <param name="pAllValAligns" value="noAllValAligns" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
452 <param name="pSuppressAlign" value="-1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
453 <param name="pUnmappedFile" value="true" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
454 <param name="pMaxFile" value="false" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
455 <param name="pBest" value="noBest" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
456 <param name="pnMaxBacktracks" value="125" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
457 <param name="pOffrate" value="-1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
458 <param name="pSeed" value="-1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
459 <param name="pSnpphred" value="-1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
460 <param name="pSnpfrac" value="0.001" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
461 <param name="pKeepends" value="doKeepends" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
462 <param name="suppressHeader" value="true" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
463 <output name="output" ftype="sam" file="bowtie_out2.sam" sort="True" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
464 <output name="output_unmapped_reads_l" ftype="fastqcssanger" file="bowtie_out3_1.fastq" sort="True" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
465 <output name="output_unmapped_reads_r" ftype="fastqcssanger" file="bowtie_out3_2.fastq" sort="True" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
466 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
467 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
468 <!--
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
469 Bowtie command:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
470 bowtie -q -p 4 -S +sam-nohead -C -n 2 -e 70 -l 28 +maxbts 125 -k 1 +snpfrac 0.001 +col-keepends chrM_color test-data/bowtie_in1.fastqcssanger > bowtie_out4_u.sam
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
471 sort bowtie_out4_u.sam > bowtie_out4.sam
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
472 -p is the number of threads, hardcoded above. You need to replace the + with 2 dashes.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
473 chrM_base is the index files' location/base name.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
474 -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
475 <param name="genomeSource" value="indexed" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
476 <param name="index" value="equCab2chrM" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
477 <param name="sPaired" value="single" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
478 <param name="sInput1" ftype="fastqcssanger" value="bowtie_in1.fastqcssanger" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
479 <param name="sSettingsType" value="full" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
480 <param name="sSkip" value="0" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
481 <param name="sAlignLimit" value="-1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
482 <param name="sTrimH" value="0" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
483 <param name="sTrimL" value="0" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
484 <param name="sMismatchSeed" value="2" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
485 <param name="sMismatchQual" value="70" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
486 <param name="sSeedLen" value="28" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
487 <param name="sRounding" value="round" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
488 <param name="sMaqSoapAlign" value="-1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
489 <param name="sTryHard" value="noTryHard" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
490 <param name="sValAlign" value="1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
491 <param name="sAllValAligns" value="noAllValAligns" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
492 <param name="sSuppressAlign" value="-1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
493 <param name="sUnmappedFile" value="false" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
494 <param name="sMaxFile" value="false" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
495 <param name="sBest" value="noBest" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
496 <param name="snMaxBacktracks" value="125" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
497 <param name="sOffrate" value="-1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
498 <param name="sSeed" value="-1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
499 <param name="sSnpphred" value="-1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
500 <param name="sSnpfrac" value="0.001" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
501 <param name="sKeepends" value="doKeepends" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
502 <param name="suppressHeader" value="true" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
503 <output name="output" ftype="sam" file="bowtie_out4.sam" sort="True" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
504 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
505 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
506 <!--
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
507 Bowtie command:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
508 bowtie-build +noauto +bmaxdivn 4 +dcv 1024 +offrate 5 +ftabchars 10 +little -C -f test-data/chr_m.fasta chrM_color
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
509 bowtie -q -X 1000 +ff -p 4 -S +sam-nohead -C chrM_color -1 test-data/bowtie_in3.fastqcssanger -2 test-data/bowtie_in4.fastqcssanger > bowtie_out5_u.sam
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
510 sort bowtie_out5_u.sam > bowtie_out5.sam
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
511 -p is the number of threads, hardcoded above. You need to replace the + with 2 dashes.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
512 chrM_base is the index files' location/base name.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
513 -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
514 <param name="genomeSource" value="history" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
515 <param name="ownFile" value="chr_m.fasta" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
516 <param name="indexSettings" value="indexFull" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
517 <param name="autoB" value="set" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
518 <param name="packed" value="unpacked" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
519 <param name="bmax" value="-1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
520 <param name="bmaxdivn" value="4" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
521 <param name="dcv" value="1024" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
522 <param name="nodc" value="dc" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
523 <param name="noref" value="ref" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
524 <param name="offrate" value="5" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
525 <param name="ftab" value="10" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
526 <param name="ntoa" value="no" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
527 <param name="endian" value="little" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
528 <param name="seed" value="-1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
529 <param name="cutoff" value="-1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
530 <param name="sPaired" value="paired" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
531 <param name="pInput1" ftype="fastqcssanger" value="bowtie_in3.fastqcssanger" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
532 <param name="pInput2" ftype="fastqcssanger" value="bowtie_in4.fastqcssanger" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
533 <param name="pMaxInsert" value="1000" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
534 <param name="pMateOrient" value="ff" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
535 <param name="pSettingsType" value="preSet" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
536 <param name="suppressHeader" value="true" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
537 <output name="output" ftype="sam" file="bowtie_out5.sam" sort="True" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
538 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
539 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
540
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
541 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
542
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
543 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
544
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
545 Bowtie_ is a short read aligner designed to be ultrafast and memory-efficient. It is developed by Ben Langmead and Cole Trapnell. Please cite: Langmead B, Trapnell C, Pop M, Salzberg SL. Ultrafast and memory-efficient alignment of short DNA sequences to the human genome. Genome Biology 10:R25.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
546
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
547 .. _Bowtie: http://bowtie-bio.sourceforge.net/index.shtml
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
548
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
549 ------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
550
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
551 **Know what you are doing**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
552
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
553 .. class:: warningmark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
554
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
555 There is no such thing (yet) as an automated gearshift in short read mapping. It is all like stick-shift driving in San Francisco. In other words = running this tool with default parameters will probably not give you meaningful results. A way to deal with this is to **understand** the parameters by carefully reading the `documentation`__ and experimenting. Fortunately, Galaxy makes experimenting easy.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
556
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
557 .. __: http://bowtie-bio.sourceforge.net/index.shtml
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
558
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
559 ------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
560
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
561 **Input formats**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
562
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
563 Bowtie accepts files in Sanger FASTQ format. Use the FASTQ Groomer to prepare your files.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
564
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
565 ------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
566
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
567 **A Note on Built-in Reference Genomes**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
568
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
569 Some genomes have multiple variants. If only one "type" of genome is listed, it is the Full version, which means that everything that came in the original genome data download (possibly with mitochondrial and plasmid DNA added if it wasn't already included). The Full version is available for every genome. Some genomes also come in the Canonical variant, which contains only the "canonical" (well-defined) chromosomes or segments, such as chr1-chr22, chrX, chrY, and chrM for human. Other variations include gender. These will come in the canonical form only, so the general Canonical variant is actually Canonical Female and the other is Canonical Male (identical to female excluding chrX).
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
570
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
571 ------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
572
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
573 **Outputs**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
574
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
575 The output is in SAM format, and has the following columns::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
576
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
577 Column Description
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
578 -------- --------------------------------------------------------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
579 1 QNAME Query (pair) NAME
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
580 2 FLAG bitwise FLAG
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
581 3 RNAME Reference sequence NAME
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
582 4 POS 1-based leftmost POSition/coordinate of clipped sequence
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
583 5 MAPQ MAPping Quality (Phred-scaled)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
584 6 CIGAR extended CIGAR string
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
585 7 MRNM Mate Reference sequence NaMe ('=' if same as RNAME)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
586 8 MPOS 1-based Mate POSition
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
587 9 ISIZE Inferred insert SIZE
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
588 10 SEQ query SEQuence on the same strand as the reference
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
589 11 QUAL query QUALity (ASCII-33 gives the Phred base quality)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
590 12 OPT variable OPTional fields in the format TAG:VTYPE:VALUE
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
591
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
592 The flags are as follows::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
593
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
594 Flag Description
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
595 ------ -------------------------------------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
596 0x0001 the read is paired in sequencing
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
597 0x0002 the read is mapped in a proper pair
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
598 0x0004 the query sequence itself is unmapped
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
599 0x0008 the mate is unmapped
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
600 0x0010 strand of the query (1 for reverse)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
601 0x0020 strand of the mate
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
602 0x0040 the read is the first read in a pair
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
603 0x0080 the read is the second read in a pair
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
604 0x0100 the alignment is not primary
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
605
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
606 It looks like this (scroll sideways to see the entire example)::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
607
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
608 QNAME FLAG RNAME POS MAPQ CIAGR MRNM MPOS ISIZE SEQ QUAL OPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
609 HWI-EAS91_1_30788AAXX:1:1:1761:343 4 * 0 0 * * 0 0 AAAAAAANNAAAAAAAAAAAAAAAAAAAAAAAAAAACNNANNGAGTNGNNNNNNNGCTTCCCACAGNNCTGG hhhhhhh;;hhhhhhhhhhh^hOhhhhghhhfhhhgh;;h;;hhhh;h;;;;;;;hhhhhhghhhh;;Phhh
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
610 HWI-EAS91_1_30788AAXX:1:1:1578:331 4 * 0 0 * * 0 0 GTATAGANNAATAAGAAAAAAAAAAATGAAGACTTTCNNANNTCTGNANNNNNNNTCTTTTTTCAGNNGTAG hhhhhhh;;hhhhhhhhhhhhhhhhhhhhhhhhhhhh;;h;;hhhh;h;;;;;;;hhhhhhhhhhh;;hhVh
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
611
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
612 -------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
613
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
614 **Bowtie settings**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
615
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
616 All of the options have a default value. You can change any of them. Most of the options in Bowtie have been implemented here.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
617
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
618 ------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
619
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
620 **Bowtie parameter list**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
621
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
622 This is an exhaustive list of Bowtie options:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
623
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
624 For indexing (bowtie-build)::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
625
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
626 -a No auto behavior. Disable the default behavior where bowtie automatically
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
627 selects values for --bmax/--bmaxdivn/--dcv/--packed parameters according
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
628 to the memory available. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
629 --packed Packing. Use a packed representation for DNA strings. [auto]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
630 --bmax INT Suffix maximum. The maximum number of suffixes allowed in a block. [auto]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
631 --bmaxdivn INT Suffix maximum fraction. The maximum number of suffixes allowed in a block
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
632 expressed as a fraction of the length of the reference. [4]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
633 --dcv INT Difference-cover sample. Use INT as the period for the difference-cover
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
634 sample. [1024]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
635 --nodc INT No difference-cover sample. Disable the difference-cover sample. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
636 -r No reference indexes. Do not build the NAME.3.ebwt and NAME.4.ebwt portions
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
637 of the index. Used only for paired-end alignment. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
638 -o Offrate. How many Burrows-Wheeler rows get marked by the indexer. The
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
639 indexer will mark every 2^INT rows. The marked rows correspond to rows on
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
640 the genome. [5]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
641 -t INT Ftab. The lookup table used to calculate an initial Burrows-Wheeler range
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
642 with respect to the first INT characters of the query. Ftab is 4^INT+1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
643 bytes. [10]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
644 --ntoa N conversion. Convert Ns to As before building the index. Otherwise, Ns are
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
645 simply excluded from the index and Bowtie will not find alignments that
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
646 overlap them. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
647 --big Endianness. Endianness to use when serializing integers to the index file. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
648 --little Endianness. [--little]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
649 --seed INT Random seed. Use INT as the seed for the pseudo-random number generator. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
650 --cutoff INT Cutoff. Index only the first INT bases of the reference sequences (cumulative
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
651 across sequences) and ignore the rest. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
652
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
653 For aligning (bowtie)::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
654
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
655 -s INT Skip. Do not align the first INT reads or pairs in the input. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
656 -u INT Align limit. Only align the first INT reads/pairs from the input. [no limit]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
657 -5 INT High-quality trim. Trim INT bases from the high-quality (left) end of each
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
658 read before alignment. [0]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
659 -3 INT Low-quality trim. Trim INT bases from the low-quality (right) end of each
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
660 read before alignment. [0]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
661 -n INT Mismatch seed. Maximum number of mismatches permitted in the seed (defined
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
662 with seed length option). Can be 0, 1, 2, or 3. [2]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
663 -e INT Mismatch quality. Maximum permitted total of quality values at mismatched
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
664 read positions. Bowtie rounds quality values to the nearest 10 and saturates
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
665 at 30. [70]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
666 -l INT Seed length. The number of bases on the high-quality end of the read to
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
667 which the -n ceiling applies. Must be at least 5. [28]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
668 --nomaqround Suppress MAQ rounding. Values are internally rounded to the nearest 10 and
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
669 saturate at 30. This options turns off that rounding. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
670 -v INT MAQ- or SOAP-like alignment policy. This option turns off the default
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
671 MAQ-like alignment policy in favor of a SOAP-like one. End-to-end alignments
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
672 with at most INT mismatches. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
673 -I INT Minimum insert. The minimum insert size for valid paired-end alignments.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
674 Does checking on untrimmed reads if -5 or -3 is used. [0]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
675 -X INT Maximum insert. The maximum insert size for valid paired-end alignments.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
676 Does checking on untrimmed reads if -5 or -3 is used. [250]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
677 --fr Mate orientation. The upstream/downstream mate orientations for a valid
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
678 paired-end alignment against the forward reference strand. [--fr]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
679 --rf Mate orientation. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
680 --ff Mate orientation. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
681 --pairtries INT Maximum alignment attempts for paired-end data. [100]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
682 --nofw No forward aligning. Choosing this option means that Bowtie will not attempt
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
683 to align against the forward reference strand. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
684 --norc No reverse-complement aligning. Setting this will mean that Bowtie will not
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
685 attempt to align against the reverse-complement reference strand. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
686 --maxbts INT Maximum backtracks. The maximum number of backtracks permitted when aligning
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
687 a read in -n 2 or -n 3 mode. [125 without --best] [800 with --best]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
688 -y Try hard. Try as hard as possible to find valid alignments when they exist,
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
689 including paired-end alignments. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
690 --chunkmbs INT Thread memory. The number of megabytes of memory a given thread is given to
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
691 store path descriptors in --best mode. [32]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
692 -k INT Valid alignments. The number of valid alignments per read or pair. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
693 -a All valid alignments. Choosing this means that all valid alignments per read
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
694 or pair will be reported. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
695 -m INT Suppress alignments. Suppress all alignments for a particular read or pair
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
696 if more than INT reportable alignments exist for it. [no limit]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
697 --best Best mode. Make Bowtie guarantee that reported singleton alignments are
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
698 "best" in terms of stratum (the number of mismatches) and quality values at
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
699 mismatched position. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
700 --strata Best strata. When running in best mode, report alignments that fall into the
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
701 best stratum if there are ones falling into more than one. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
702 -o INT Offrate override. Override the offrate of the index with INT. Some row
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
703 markings are discarded when index read into memory. INT must be greater than
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
704 the value used to build the index (default: 5). [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
705 --seed INT Random seed. Use INT as the seed for the pseudo-random number generator. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
706 --snpphred INT Use INT as the SNP penalty for decoding colorspace alignments. True ratio of
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
707 SNPs per base in the subject genome. [see --snpfrac]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
708 --snpfrac DEC Use DEC as the estimated ratio of SNPs per base when decoding colorspace
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
709 alignments. [0.001]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
710 --col-keepends Keep the extreme-end nucleotides and qualities when decoding colorspace
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
711 alignments. [off]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
712
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
713 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
714 </tool>