-
Notifications
You must be signed in to change notification settings - Fork 70
/
miniasm.1
265 lines (228 loc) · 6.17 KB
/
miniasm.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
.TH miniasm 1 "23 July 2018" "miniasm-0.3 (r179)" "Bioinformatics tools"
.SH NAME
.PP
miniasm - de novo assembler for long read sequences
.SH SYNOPSIS
.PP
miniasm
.RB [ -b12VR ]
.RB [ -m
.IR minMatch ]
.RB [ -i
.IR minIden ]
.RB [ -s
.IR minSpan ]
.RB [ -c
.IR minCov ]
.RB [ -o
.IR minOvlp ]
.RB [ -h
.IR maxHang ]
.RB [ -I
.IR intThres ]
.RB [ -g
.IR maxGapDiff ]
.RB [ -d
.IR maxBubDist ]
.RB [ -e
.IR minUtgSize ]
.RB [ -f
.IR readFile ]
.RB [ -n
.IR nRounds ]
.RB [ -r
.IR dropRatio ]
.RB [ -F
.IR finalDropRatio ]
.RB [ -p
.IR outputInfo ]
.I mapping.paf
>
.I output.gfa
.SH DESCRIPTION
.PP
Miniasm is a very fast OLC-based de novo assembler for noisy long reads. It
takes all-vs-all read self-mappings in the PAF format as input and outputs an
assembly graph in the GFA format. Different from mainstream assemblers, miniasm
does not have a consensus step. It simply concatenates pieces of read sequences
to generate the final unitig sequences. Thus the per-base error rate is similar
to the raw input reads.
.SH OPTIONS
.SS Preselection options
.TP 10
.BI -R
Pre-filter clearly contained short reads. In this mode,
.I mapping.paf
is read twice. The first pass identifies contained reads without loading hits
to RAM; the second pass skips contained reads and load the rest into RAM. Due
to the 2-pass behavior, the peak RAM is greatly reduced, but
.I mapping.paf
has to be a normal file, not a stream. When this option is in use, it is
recommended to reduce
.B -c
to 2, as there are fewer reads after pre-filtering. Applying
.BI -Rc 2
sometimes improves assembly.
.TP
.BI -m \ INT
Drop mappings having less than
.I INT
matching bases (col10 in PAF) [100]. This option has the same role as
.B -L
of minimap.
.TP
.BI -s \ INT
Drop mappings shorter than
.IR INT -bp
[1000]. This option also affects the second round of read filtering and minimal
overlap length.
.TP
.BI -i \ FLOAT
During read filtering, ignore mappings with col10/col11 below
.I FLOAT
[0.05]. Ignored mappings are still used for read overlaps.
.TP
.BI -c \ INT
Minimal coverage by other reads [3]. In the first round of filtering, miniasm
finds the longest region covered by
.I INT
or more reads. In the second round, it in addition requires each remaining base
to be covered by
.I INT
bases at least
.IR minSpan /2
from the ends of other reads.
.SS Overlapping options
.TP 10
.BI -o \ INT
Minimal overlap length [same as
.IR minSpan ]
.TP
.BI -h \ INT
Maximum overhang length [1000]. An overhang is an unmapped region that should
be mapped given a true overlap or true containment. If the overhang is too
long, the mapping is considered an internal match and will be ignored.
.TP
.BI -I \ FLOAT
Minimal ratio of mapping length to mapping+overhang length for a mapping
considered a containment or an overlap [0.8]. This option has a similar role to
.BR -h ,
except that it controls the ratio, not length.
.SS Graph layout options
.TP 10
.BI -g \ INT
Maximal gap differences between two reads in a mapping [1000]. This parameter
is only used for transitive reduction.
.TP
.BI -d \ INT
Maximal probing distance for bubble popping [50000]. Bubbles longer than
.I INT
will not be popped.
.TP
.BI -e \ INT
A unitig is considered small if it is composed of less than
.I INT
reads [4]. Miniasm may try to remove small unitigs at various steps.
.TP
.BI -f \ FILE
Read sequence file in FASTA or FASTQ format for generating unitig sequences
[null]. If this option is absent, miniasm produces a GFA output without
sequences.
.TP
.BI -r \ FLOAT1,[FLOAT2]
Max and min overlap drop ratio [0.7,0.5]. Let overlap(v->w) be the overlap
length of edge v->w and maxovlp(v)=max_w{overlap(v->w)} be the length of
largest overlap. Miniasm drops overlap v->w if overlap(v->w)/maxovlp(v) is below
a threshold controled by this option. Miniasm applies
.I nRounds
rounds of short overlap removal with an increasing threshold between
.I FLOAT1
and
.IR FLOAT2 .
.TP
.BI -n \ INT
Rounds of short overlap removal [3].
.TP
.BI -F \ FLOAT
Overlap drop ratio threshold after short unitig removal [0.8]
.SS Miscellaneous options
.TP 10
.B -b
Indicate that in the input, the same mapping is likely to be given twice
.TP
.B -1
Skip the first round of pre-assembly read selection
.TP
.B -2
Skip the second round of pre-assembly read selection
.TP
.BI -p \ STR
Output information and format [ug]. Possible
.I STR
values include -
.BR bed :
post-filtered read regions in the BED format;
.BR paf :
mappings between post-filtered reads;
.BR sg :
read overlap graph in the GFA format;
.BR ug :
unitig graph in the GFA format.
.TP
.B -V
Print version number to stdout
.SH INPUT FORMAT
.PP
Miniasm reads mapping positions in the Pairwise mApping Format (PAF), which is
a TAB-delimited text format with each line consisting of at least 12 fields as
are described in the following table:
.TS
center box;
cb | cb | cb
r | c | l .
Col Type Description
_
1 string Query sequence name
2 int Query sequence length
3 int Query start coordinate (0-based)
4 int Query end coordinate (0-based)
5 char `+' if query and target on the same strand; `-' if opposite
6 string Target sequence name
7 int Target sequence length
8 int Target start coordinate on the original strand
9 int Target end coordinate on the original strand
10 int Number of matching bases in the mapping
11 int Number bases, including gaps, in the mapping
12 int Mapping quality (0-255 with 255 for missing)
.TE
.PP
Please see minimap(1) for the detailed description of each field.
.SH OUTPUT FORMAT
.PP
Miniasm outputs the assembly in the Graphical Fragment Assembly format (GFA).
It is a line based TAB-delimited format, with the leading letter indicates the
type of the line. The following table gives the line types used by miniasm:
.TS
center box;
cb | cb | cb
c | l | l .
Line Comment Fixed fields
_
H Header N/A
S Segment segName segSeq
L Overlap segName1 segOri1 segName2 segOri2 ovlpCIGAR
a Golden path utgName utgStart readName:rStart-rEnd readOri incLen
.TE
.PP
An `a' line indicates that the unitig subsequence in
.RI [ utgStart , utgStart + incLen )
is taken from read
.I readName
in region
.RI [ rStart -1, rStart -1+ incLen ).
It is not a
standard GFA line. An `x' line gives a brief summary of each unitig, which can
be inferred from `S' and `a' lines.
.SH SEE ALSO
.PP
minimap(1)