.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.13. .TH WTDBG2 "1" "April 2020" "wtdbg2 2.5" "User Commands" .SH NAME wtdbg2 \- de novo sequence assembler for long noisy reads .SH SYNOPSIS .B wtdbg2 [\fI\,options\/\fR] \fI\,-i -o \/\fR[\fI\,reads.fa \/\fR...] .SH DESCRIPTION WTDBG: De novo assembler for long noisy sequences Author: Jue Ruan Version: 2.5 (20190621) .SH OPTIONS .HP \fB\-i\fR Long reads sequences file (REQUIRED; can be multiple), [] .HP \fB\-o\fR Prefix of output files (REQUIRED), [] .TP \fB\-t\fR Number of threads, 0 for all cores, [4] .TP \fB\-f\fR Force to overwrite output files .HP \fB\-x\fR Presets, comma delimited, [] .TP preset1/rsII/rs: \fB\-p\fR 21 \fB\-S\fR 4 \fB\-s\fR 0.05 \fB\-L\fR 5000 preset2: \fB\-p\fR 0 \fB\-k\fR 15 \fB\-AS\fR 2 \fB\-s\fR 0.05 \fB\-L\fR 5000 preset3: \fB\-p\fR 19 \fB\-AS\fR 2 \fB\-s\fR 0.05 \fB\-L\fR 5000 .IP sequel/sq .IP nanopore/ont: .IP (genome size < 1G: preset2) \fB\-p\fR 0 \fB\-k\fR 15 \fB\-AS\fR 2 \fB\-s\fR 0.05 \fB\-L\fR 5000 (genome size >= 1G: preset3) \fB\-p\fR 19 \fB\-AS\fR 2 \fB\-s\fR 0.05 \fB\-L\fR 5000 .IP preset4/corrected/ccs: \fB\-p\fR 21 \fB\-k\fR 0 \fB\-AS\fR 4 \fB\-K\fR 0.05 \fB\-s\fR 0.5 .HP \fB\-g\fR Approximate genome size (k/m/g suffix allowed) [0] .TP \fB\-X\fR Choose the best depth from input reads(effective with \fB\-g\fR) [50.0] .TP \fB\-L\fR Choose the longest subread and drop reads shorter than (5000 recommended for PacBio) [0] Negative integer indicate tidying read names too, e.g. \fB\-5000\fR. .TP \fB\-k\fR Kmer fsize, 0 <= k <= 23, [0] .TP \fB\-p\fR Kmer psize, 0 <= p <= 23, [21] k + p <= 25, seed is + .TP \fB\-K\fR Filter high frequency kmers, maybe repetitive, [1000.05] >= 1000 and indexing >= (1 \- 0.05) * total_kmers_count .TP \fB\-S\fR Subsampling kmers, 1/(<\-S>) kmers are indexed, [4.00] \fB\-S\fR is very useful in saving memory and speeding up please note that subsampling kmers will have less matched length .TP \fB\-l\fR Min length of alignment, [2048] .TP \fB\-m\fR Min matched length by kmer matching, [200] .TP \fB\-R\fR Enable realignment mode .TP \fB\-A\fR Keep contained reads during alignment .TP \fB\-s\fR Min similarity, calculated by kmer matched length / aligned length, [0.05] .TP \fB\-e\fR Min read depth of a valid edge, [3] .TP \fB\-q\fR Quiet .TP \fB\-v\fR Verbose (can be multiple) .TP \fB\-V\fR Print version information and then exit .TP \fB\-\-help\fR Show more options .IP ** more options ** \fB\-\-cpu\fR .IP See \fB\-t\fR 0, default: all cores .HP \fB\-\-input\fR + .IP See \fB\-i\fR .HP \fB\-\-force\fR .IP See \fB\-f\fR .HP \fB\-\-prefix\fR .IP See \fB\-o\fR .HP \fB\-\-preset\fR .IP See \fB\-x\fR .HP \fB\-\-kmer\-fsize\fR .IP See \fB\-k\fR 0 .HP \fB\-\-kmer\-psize\fR .IP See \fB\-p\fR 21 .HP \fB\-\-kmer\-depth\-max\fR .IP See \fB\-K\fR 1000.05 .HP \fB\-E\fR, \fB\-\-kmer\-depth\-min\fR .IP Min kmer frequency, [2] .HP \fB\-\-kmer\-subsampling\fR .IP See \fB\-S\fR 4.0 .HP \fB\-\-kbm\-parts\fR .IP Split total reads into multiple parts, index one part by one to save memory, [1] .HP \fB\-\-aln\-kmer\-sampling\fR .IP Select no more than n seeds in a query bin, default: 256 .HP \fB\-\-dp\-max\-gap\fR .IP Max number of bin(256bp) in one gap, [4] .HP \fB\-\-dp\-max\-var\fR .IP Max number of bin(256bp) in one deviation, [4] .HP \fB\-\-dp\-penalty\-gap\fR .IP Penalty for BIN gap, [\-7] .HP \fB\-\-dp\-penalty\-var\fR .IP Penalty for BIN deviation, [\-21] .HP \fB\-\-aln\-min\-length\fR .IP See \fB\-l\fR 2048 .HP \fB\-\-aln\-min\-match\fR .IP See \fB\-m\fR 200. Here the num of matches counting basepair of the matched kmer's regions .HP \fB\-\-aln\-min\-similarity\fR .IP See \fB\-s\fR 0.05 .HP \fB\-\-aln\-max\-var\fR .IP Max length variation of two aligned fragments, default: 0.25 .HP \fB\-\-aln\-dovetail\fR .IP Retain dovetail overlaps only, the max overhang size is <\-\-aln\-dovetail>, the value should be times of 256, \fB\-1\fR to disable filtering, default: 256 .HP \fB\-\-aln\-strand\fR .IP 1: forward, 2: reverse, 3: both. Please don't change the deault value 3, unless you exactly know what you are doing .HP \fB\-\-aln\-maxhit\fR .IP Max n hits for each read in build graph, default: 1000 .HP \fB\-\-aln\-bestn\fR .IP Use best n hits for each read in build graph, 0: keep all, default: 500 .alignments always store all alignments .HP \fB\-R\fR, \fB\-\-realign\fR .IP Enable re\-alignment, see \fB\-\-realn\-kmer\-psize\fR=\fI\,15\/\fR, \fB\-\-realn\-kmer\-subsampling\fR=\fI\,1\/\fR, \fB\-\-realn\-min\-length\fR=\fI\,2048\/\fR, \fB\-\-realn\-min\-match\fR=\fI\,200\/\fR, \fB\-\-realn\-min\-similarity\fR=\fI\,0\/\fR.1, \fB\-\-realn\-max\-var\fR=\fI\,0\/\fR.25 .HP \fB\-\-realn\-kmer\-psize\fR .IP Set kmer\-psize in realignment, (kmer\-ksize always eq 0), default:15 .HP \fB\-\-realn\-kmer\-subsampling\fR .IP Set kmer\-subsampling in realignment, default:1 .HP \fB\-\-realn\-min\-length\fR .IP Set aln\-min\-length in realignment, default: 2048 .HP \fB\-\-realn\-min\-match\fR .IP Set aln\-min\-match in realignment, default: 200 .HP \fB\-\-realn\-min\-similarity\fR .IP Set aln\-min\-similarity in realignment, default: 0.1 .HP \fB\-\-realn\-max\-var\fR .IP Set aln\-max\-var in realignment, default: 0.25 .HP \fB\-A\fR, \fB\-\-aln\-noskip\fR .IP Even a read was contained in previous alignment, still align it against other reads .HP \fB\-\-keep\-multiple\-alignment\-parts\fR .IP By default, wtdbg will keep only the best alignment between two reads after chainning. This option will disable it, and keep multiple .HP \fB\-\-verbose\fR + .IP See \fB\-v\fR. \fB\-vvvv\fR will display the most detailed information .HP \fB\-\-quiet\fR .IP See \fB\-q\fR .HP \fB\-\-limit\-input\fR .IP Limit the input sequences to at most M bp. Usually for test .HP \fB\-L\fR , \fB\-\-tidy\-reads\fR .IP Default: 0. Pick longest subreads if possible. Filter reads less than <\-\-tidy\-reads>. Please add \fB\-\-tidy\-name\fR or set \fB\-\-tidy\-reads\fR to nagetive value if want to rename reads. Set to 0 bp to disable tidy. Suggested value is 5000 for pacbio RSII reads .HP \fB\-\-tidy\-name\fR .IP Rename reads into 'S%010d' format. The first read is named as S0000000001 .HP \fB\-\-rdname\-filter\fR .IP A file contains lines of reads name to be discarded in loading. If you want to filter reads by yourself, please also set \fB\-X\fR 0 .HP \fB\-\-rdname\-includeonly\fR .IP Reverse manner with \fB\-\-rdname\-filter\fR .HP \fB\-g\fR , \fB\-\-genome\-size\fR .IP Provide genome size, e.g. 100.4m, 2.3g. In this version, it is used with \fB\-X\fR/\-\-rdcov\-cutoff in selecting reads just after readed all. .HP \fB\-X\fR , \fB\-\-rdcov\-cutoff\fR .IP Default: 50.0. Retaining 50.0 folds of genome coverage, combined with \fB\-g\fR and \fB\-\-rdcov\-filter\fR. .HP \fB\-\-rdcov\-filter\fR [0|1] .IP Default 0. Strategy 0: retaining longest reads. Strategy 1: retaining medain length reads. .HP \fB\-\-err\-free\-nodes\fR .IP Select nodes from error\-free\-sequences only. E.g. you have contigs assembled from NGS\-WGS reads, and long noisy reads. You can type '\-\-err\-free\-seq your_ctg.fa \fB\-\-input\fR your_long_reads.fa \fB\-\-err\-free\-nodes\fR' to perform assembly somehow act as long\-reads scaffolding .HP \fB\-\-node\-len\fR .IP The default value is 1024, which is times of KBM_BIN_SIZE(always equals 256 bp). It specifies the length of intervals (or call nodes after selecting). kbm indexs sequences into BINs of 256 bp in size, so that many parameter should be times of 256 bp. There are: \fB\-\-node\-len\fR, \fB\-\-node\-ovl\fR, \fB\-\-aln\-min\-length\fR, \fB\-\-aln\-dovetail\fR . Other parameters are counted in BINs, \fB\-\-dp\-max\-gap\fR, \fB\-\-dp\-max\-var\fR . .HP \fB\-\-node\-matched\-bins\fR .IP Min matched bins in a node, default:1 .HP \fB\-\-node\-ovl\fR .IP Default: 256. Max overlap size between two adjacent intervals in any read. It is used in selecting best nodes representing reads in graph .HP \fB\-\-node\-drop\fR .IP Default: 0.25. Will discard an node when has more this ratio intervals are conflicted with previous generated node .HP \fB\-e\fR , \fB\-\-edge\-min=\fR .IP Default: 3. The minimal depth of a valid edge is set to 3. In another word, Valid edges must be supported by at least 3 reads When the sequence depth is low, have a try with \fB\-\-edge\-min\fR 2. Or very high, try \fB\-\-edge\-min\fR 4 .HP \fB\-\-edge\-max\-span\fR .IP Default: 1024 BINs. Program will build edges of length no large than 1024 .HP \fB\-\-drop\-low\-cov\-edges\fR .IP Don't attempt to rescue low coverage edges .HP \fB\-\-node\-min\fR .IP Min depth of an interval to be selected as valid node. Defaultly, this value is automatically the same with \fB\-\-edge\-min\fR. .HP \fB\-\-node\-max\fR .IP Nodes with too high depth will be regarded as repetitive, and be masked. Default: 200, more than 200 reads contain this node .HP \fB\-\-ttr\-cutoff\-depth\fR , 0 .HP \fB\-\-ttr\-cutoff\-ratio\fR , 0.5 .IP Tiny Tandom Repeat. A node located inside ttr will bring noisy in graph, should be masked. The pattern of such nodes is: depth >= <\-\-ttr\-cutoff\-depth>, and none of their edges have depth greater than depth * <\-\-ttr\-cutoff\-ratio 0.5> set \fB\-\-ttr\-cutoff\-depth\fR 0 to disable ttr masking .HP \fB\-\-dump\-kbm\fR .IP Dump kbm index into file for loaded by `kbm` or `wtdbg` .HP \fB\-\-dump\-seqs\fR .IP Dump kbm index (only sequences, no k\-mer index) into file for loaded by `kbm` or `wtdbg` Please note: normally load it with \fB\-\-load\-kbm\fR, not with \fB\-\-load\-seqs\fR .HP \fB\-\-load\-kbm\fR .IP Instead of reading sequences and building kbm index, which is time\-consumed, loading kbm\-index from already dumped file. Please note that, once kbm\-index is mmaped by kbm \fB\-R\fR start, will just get the shared memory in minute time. See `kbm` \fB\-R\fR [start | stop] .HP \fB\-\-load\-seqs\fR .IP Similar with \fB\-\-load\-kbm\fR, but only use the sequences in kbmidx, and rebuild index in process's RAM. .HP \fB\-\-load\-alignments\fR + .IP `wtdbg` output reads' alignments into <\-\-prefix>.alignments, program can load them to fastly build assembly graph. Or you can offer other source of alignments to `wtdbg`. When \fB\-\-load\-alignment\fR, will only reading long sequences but skip building kbm index You can type \fB\-\-load\-alignments\fR more than once to load alignments from many files .HP \fB\-\-load\-clips\fR .IP Combined with \fB\-\-load\-nodes\fR. Load reads clips. You can find it in `wtdbg`'s <\-\-prefix>.clps .HP \fB\-\-load\-nodes\fR .IP Load dumped nodes from previous execution for fast construct the assembly graph, should be combined with \fB\-\-load\-clips\fR. You can find it in `wtdbg`'s <\-\-prefix>.1.nodes .HP \fB\-\-bubble\-step\fR .IP Max step to search a bubble, meaning the max step from the starting node to the ending node. Default: 40 .HP \fB\-\-tip\-step\fR .IP Max step to search a tip, 10 .HP \fB\-\-ctg\-min\-length\fR .IP Min length of contigs to be output, 5000 .HP \fB\-\-ctg\-min\-nodes\fR .IP Min num of nodes in a contig to be output, 3 .HP \fB\-\-minimal\-output\fR .IP Will generate as less output files (<\-\-prefix>.*) as it can .HP \fB\-\-bin\-complexity\-cutoff\fR .IP Used in filtering BINs. If a BIN has less indexed valid kmers than <\-\-bin\-complexity\-cutoff 2>, masks it. .HP \fB\-\-no\-local\-graph\-analysis\fR .IP Before building edges, for each node, local\-graph\-analysis reads all related reads and according nodes, and builds a local graph to judge whether to mask it The analysis aims to find repetitive nodes .HP \fB\-\-no\-read\-length\-sort\fR .IP Defaultly, `wtdbg` sorts input sequences by length DSC. The order of reads affects the generating of nodes in selecting important intervals .HP \fB\-\-keep\-isolated\-nodes\fR .IP In graph clean, `wtdbg` normally masks isolated (orphaned) nodes .HP \fB\-\-no\-read\-clip\fR .IP Defaultly, `wtdbg` clips a input sequence by analyzing its overlaps to remove high error endings, rolling\-circle repeats (see PacBio CCS), and chimera. When building edges, clipped region won't contribute. However, `wtdbg` will use them in the final linking of unitigs .HP \fB\-\-no\-chainning\-clip\fR .IP Defaultly, performs alignments chainning in read clipping ** If '\-\-aln\-bestn 0 \fB\-\-no\-read\-clip\fR', alignments will be parsed directly, and less RAM spent on recording alignments .SH AUTHOR This manpage was written by Andreas Tille for the Debian distribution and can be used for any other usage of the program.