Debian Codegraph @

debian/mans/bbnorm.sh.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.8.
2 .TH BBNORM.SH "1" "April 2019" "bbnorm.sh 38.43" "User Commands"
3 .SH NAME
4 bbnorm.sh \- Kmer-based error-correction and normalization tool
5 .SH SYNOPSIS
6 .B bbnorm.sh
7 \fI\,in=<input> out=<reads to keep> outt=<reads to toss> hist=<histogram output>\/\fR
8 .SH DESCRIPTION
9 Normalizes read depth based on kmer counts.
10 Can also error\-correct, bin reads by kmer depth, and generate a kmer depth histogram.
11 However, Tadpole has superior error\-correction to BBNorm.
12 Please read bbmap/docs/guides/BBNormGuide.txt for more information.
13 .SH OPTIONS
14 .SS Input parameters
15 .TP
16 in=null
17 Primary input. Use in2 for paired reads in a second file
18 .TP
19 in2=null
20 Second input file for paired reads in two files
21 .TP
22 extra=null
23 Additional files to use for input (generating hash table) but not for output
24 .TP
25 fastareadlen=2^31
26 Break up FASTA reads longer than this. Can be useful when processing scaffolded genomes
27 .TP
28 tablereads=\-1
29 Use at most this many reads when building the hashtable (\fB\-1\fR means all)
30 .TP
31 kmersample=1
32 Process every nth kmer, and skip the rest
33 .TP
34 readsample=1
35 Process every nth read, and skip the rest
36 .TP
37 interleaved=auto
38 May be set to true or false to force the input read file to override autodetection of the input file as paired interleaved.
39 .TP
40 qin=auto
41 ASCII offset for input quality. May be 33 (Sanger), 64 (Illumina), or auto.
42 .SS Output parameters
43 .TP
44 out=<file>
45 File for normalized or corrected reads. Use out2 for paired reads in a second file
46 .TP
47 outt=<file>
48 (outtoss) File for reads that were excluded from primary output
49 .TP
50 reads=\-1
51 Only process this number of reads, then quit (\fB\-1\fR means all)
52 .TP
53 sampleoutput=t
54 Use sampling on output as well as input (not used if sample rates are 1)
55 .TP
56 keepall=f
57 Set to true to keep all reads (e.g. if you just want error correction).
58 .TP
59 zerobin=f
60 Set to true if you want kmers with a count of 0 to go in the 0 bin instead of the 1 bin in histograms.
61 .IP
62 Default is false, to prevent confusion about how there can be 0\-count kmers.
63 The reason is that based on the 'minq' and 'minprob' settings, some kmers may be excluded from the bloom filter.
64 .TP
65 tmpdir=
66 This will specify a directory for temp files (only needed for multipass runs). If null, they will be written to the output directory.
67 .TP
68 usetempdir=t
69 Allows enabling/disabling of temporary directory; if disabled, temp files will be written to the output directory.
70 .TP
71 qout=auto
72 ASCII offset for output quality. May be 33 (Sanger), 64 (Illumina), or auto (same as input).
73 .TP
74 rename=f
75 Rename reads based on their kmer depth.
76 .SS Hashing parameters
77 .TP
78 k=31
79 Kmer length (values under 32 are most efficient, but arbitrarily high values are supported)
80 .TP
81 bits=32
82 Bits per cell in bloom filter; must be 2, 4, 8, 16, or 32. Maximum kmer depth recorded is 2^cbits. Automatically reduced to 16 in 2\-pass.
83 .IP
84 Large values decrease accuracy for a fixed amount of memory, so use the lowest number you can that will still capture highest\-depth kmers.
85 .TP
86 hashes=3
87 Number of times each kmer is hashed and stored. Higher is slower.
88 .IP
89 Higher is MORE accurate if there is enough memory, and LESS accurate if there is not enough memory.
90 .TP
91 prefilter=f
92 True is slower, but generally more accurate; filters out low\-depth kmers from the main hashtable. The prefilter is more memory\-efficient because it uses 2\-bit cells.
93 .TP
94 prehashes=2
95 Number of hashes for prefilter.
96 .TP
97 prefilterbits=2
98 (pbits) Bits per cell in prefilter.
99 .TP
100 prefiltersize=0.35
101 Fraction of memory to allocate to prefilter.
102 .TP
103 buildpasses=1
104 More passes can sometimes increase accuracy by iteratively removing low\-depth kmers
105 .TP
106 minq=6
107 Ignore kmers containing bases with quality below this
108 .TP
109 minprob=0.5
110 Ignore kmers with overall probability of correctness below this
111 .TP
112 threads=auto
113 (t) Spawn exactly X hashing threads (default is number of logical processors). Total active threads may exceed X due to I/O threads.
114 .TP
115 rdk=t
116 (removeduplicatekmers) When true, a kmer's count will only be incremented once per read pair, even if that kmer occurs more than once.
117 .SS Normalization parameters
118 .TP
119 fixspikes=f
120 (fs) Do a slower, high\-precision bloom filter lookup of kmers that appear to have an abnormally high depth due to collisions.
121 .TP
122 target=100
123 (tgt) Target normalization depth. NOTE: All depth parameters control kmer depth, not read depth.
124 .IP
125 For kmer depth Dk, read depth Dr, read length R, and kmer size K:
126 Dr=Dk*(R/(R\-K+1))
127 .TP
128 maxdepth=\-1
129 (max) Reads will not be downsampled when below this depth, even if they are above the target depth.
130 .TP
131 mindepth=5
132 (min) Kmers with depth below this number will not be included when calculating the depth of a read.
133 .TP
134 minkmers=15
135 (mgkpr) Reads must have at least this many kmers over min depth to be retained. Aka 'mingoodkmersperread'.
136 .TP
137 percentile=54.0
138 (dp) Read depth is by default inferred from the 54th percentile of kmer depth, but this may be changed to any number 1\-100.
139 .TP
140 uselowerdepth=t
141 (uld) For pairs, use the depth of the lower read as the depth proxy.
142 .TP
143 deterministic=t
144 (dr) Generate random numbers deterministically to ensure identical output between multiple runs. May decrease speed with a huge number of threads.
145 .TP
146 passes=2
147 (p) 1 pass is the basic mode. 2 passes (default) allows greater accuracy, error detection, better contol of output depth.
148 .SS Error detection parameters
149 .TP
150 hdp=90.0
151 (highdepthpercentile) Position in sorted kmer depth array used as proxy of a read's high kmer depth.
152 .TP
153 ldp=25.0
154 (lowdepthpercentile) Position in sorted kmer depth array used as proxy of a read's low kmer depth.
155 .TP
156 tossbadreads=f
157 (tbr) Throw away reads detected as containing errors.
158 .TP
159 requirebothbad=f
160 (rbb) Only toss bad pairs if both reads are bad.
161 .TP
162 errordetectratio=125
163 (edr) Reads with a ratio of at least this much between their high and low depth kmers will be classified as error reads.
164 .TP
165 highthresh=12
166 (ht) Threshold for high kmer. A high kmer at this or above are considered non\-error.
167 .TP
168 lowthresh=3
169 (lt) Threshold for low kmer. Kmers at this and below are always considered errors.
170 .SS Error correction parameters
171 .TP
172 ecc=f
173 Set to true to correct errors. NOTE: Tadpole is now preferred for ecc as it does a better job.
174 .TP
175 ecclimit=3
176 Correct up to this many errors per read. If more are detected, the read will remain unchanged.
177 .TP
178 errorcorrectratio=140
179 (ecr) Adjacent kmers with a depth ratio of at least this much between will be classified as an error.
180 .TP
181 echighthresh=22
182 (echt) Threshold for high kmer. A kmer at this or above may be considered non\-error.
183 .TP
184 eclowthresh=2
185 (eclt) Threshold for low kmer. Kmers at this and below are considered errors.
186 .TP
187 eccmaxqual=127
188 Do not correct bases with quality above this value.
189 .TP
190 aec=f
191 (aggressiveErrorCorrection) Sets more aggressive values of ecr=100, ecclimit=7, echt=16, eclt=3.
192 .TP
193 cec=f
194 (conservativeErrorCorrection) Sets more conservative values of ecr=180, ecclimit=2, echt=30, eclt=1, sl=4, pl=4.
195 .TP
196 meo=f
197 (markErrorsOnly) Marks errors by reducing quality value of suspected errors; does not correct anything.
198 .TP
199 mue=t
200 (markUncorrectableErrors) Marks errors only on uncorrectable reads; requires 'ecc=t'.
201 .TP
202 overlap=f
203 (ecco) Error correct by read overlap.
204 .SS Depth binning parameters
205 .TP
206 lowbindepth=10
207 (lbd) Cutoff for low depth bin.
208 .TP
209 highbindepth=80
210 (hbd) Cutoff for high depth bin.
211 .TP
212 outlow=<file>
213 Pairs in which both reads have a median below lbd go into this file.
214 .TP
215 outhigh=<file>
216 Pairs in which both reads have a median above hbd go into this file.
217 .TP
218 outmid=<file>
219 All other pairs go into this file.
220 .SS Histogram parameters
221 .TP
222 hist=<file>
223 Specify a file to write the input kmer depth histogram.
224 .TP
225 histout=<file>
226 Specify a file to write the output kmer depth histogram.
227 .TP
228 histcol=3
229 (histogramcolumns) Number of histogram columns, 2 or 3.
230 .TP
231 pzc=f
232 (printzerocoverage) Print lines in the histogram with zero coverage.
233 .TP
234 histlen=1048576
235 Max kmer depth displayed in histogram. Also affects statistics displayed, but does not affect normalization.
236 .SS Peak calling parameters
237 .TP
238 peaks=<file>
239 Write the peaks to this file. Default is stdout.
240 .TP
241 minHeight=2
242 (h) Ignore peaks shorter than this.
243 .TP
244 minVolume=5
245 (v) Ignore peaks with less area than this.
246 .TP
247 minWidth=3
248 (w) Ignore peaks narrower than this.
249 .TP
250 minPeak=2
251 (minp) Ignore peaks with an X\-value below this.
252 .TP
253 maxPeak=BIG
254 (maxp) Ignore peaks with an X\-value above this.
255 .TP
256 maxPeakCount=8
257 (maxpc) Print up to this many peaks (prioritizing height).
258 .SS Java Parameters:
259 .TP
260 \fB\-Xmx\fR
261 This will set Java's memory usage, overriding autodetection.
262 .IP
263 \fB\-Xmx20g\fR will specify 20 gigs of RAM, and \fB\-Xmx200m\fR will specify 200 megs.
264 The max is typically 85% of physical memory.
265 .TP
266 \fB\-eoom\fR
267 This flag will cause the process to exit if an
268 out\-of\-memory exception occurs.
269 Requires Java 8u92+.
270 .TP
271 \fB\-da\fR
272 Disable assertions.
273 .SH AUTHOR
274 Written by Brian Bushnell (Last modified October 19, 2017)
275 .P
276 Please contact Brian Bushnell at [email protected] if you encounter
277 any problems, or post at: http://seqanswers.com/forums/showthread.php?t=41057
278 .P
279 This manpage was written by Andreas Tille for the Debian distribution and can be used for any other usage of the program.