-
Notifications
You must be signed in to change notification settings - Fork 2
/
db_files.html
237 lines (234 loc) · 7.81 KB
/
db_files.html
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta content="en-us" http-equiv="Content-Language"/>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<meta content="no-cache, no-store, must-revalidate" http-equiv="Cache-Control"/>
<meta content="no-cache" http-equiv="Pragma"/>
<meta content="0" http-equiv="Expires"/>
<title>
allpairs_global command
</title>
<link href="stylesx.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
body.c4 {background-color:#c0c0c0;}
div.c3 {position:absolute; top:45px; left:20px; width:830px; background-color:#ffffff; border-width:10px; border-style:solid;border-color:white;}
span.c2 {font-weight: bold}
div.c1 {position:absolute; top:10px; left:20px; width:850px; height:60px;}
.TopButtonPara { color:white; background-color:rgb(50,100,150); border-color:rgb(50,100,150); font-family:Arial, Helvetica, sans-serif; font-weight:normal; font-size:9pt; text-align:center; border-width:4px; border-style:solid; }
.TopButton { color:white; }
a.TopButton:link { text-decoration:none; }
a.TopButton:visited { text-decoration:none; }
a.TopButton:hover { color:orange; }
.NewButtonPara { color:white; background-color:rgb(50,100,150); border-color:rgb(50,100,150); font-family:Arial, Helvetica, sans-serif; font-weight:normal; font-size:9pt; text-align:center; border-width:4px; border-style:solid; }
.NewButton { color:white; }
a.NewButton:link { text-decoration:none; }
a.NewButton:visited { text-decoration:none; }
a.NewButton:hover { color:orange; }
.SideButtonPara { color:white; font-family:Arial, Helvetica, sans-serif; font-size:9pt; font-weight:normal; text-align:center; line-height:18px; }
.SideButton { color:white; }
a.SideButton:link { text-decoration:none; }
a.SideButton:visited { text-decoration:none; }
a.SideButton:hover { color:orange; }
</style>
</head>
<body style="background-color:#c0c0c0;">
<div>
<a href="https://drive5.com/usearch">
<img alt="USEARCH v12" src="usearch12_banner.jpg" style="position:absolute; top:40px; left:10px; padding:0px; border:0px;"/>
</a>
</div>
<div style="position:absolute; top:115px; left:10px; width:850px; background-color:#ffffff; min-height:500px">
<div style="position:relative; float:left; background-color:#696969; width:125px; left: 0px; min-height:500px; padding:5px; height: 125px;">
<div class="SideButtonPara" style="text-align:center; padding-top:5px;">
<a class="SideButton" href="index.html">
Docs home
</a>
<br/>
<hr style="border:0; border-bottom: 1px solid white;"/>
<a class="SideButton" href="cmds.html">
Commands
</a>
<br/>
<a class="SideButton" href="topics.html">
Topics
</a>
<br/>
<a class="SideButton" href="citation.html">
Publications
</a>
<br/>
</div>
</div>
<div class="ManText" style="left:20px; position: absolute; left:135px; width:695px; background-color:white; padding:10px">
<h1>
Sequence database files
</h1>
<span class="ManText">
Search commands require a -db option specifying a database filename. For u-commands (
<a href="cmd_usearch_global.html">
usearch_global
</a>
,
<a href="cmd_usearch_local.html">
usearch_local
</a>
and
<a href="DELETE_URL">
ublast
</a>
) the database may be in
<a href="fasta_files.html">
FASTA format
</a>
or
<a href="udb_files.html">
UDB format
</a>
. Other search commands (
<a href="DELETE_URL">
search_local
</a>
and
<a href="DELETE_URL">
search_global
</a>
) support FASTA only. The file format is automatically detected, so the -db option is used for both file types.
</span>
<p>
<span class="ManText">
<b>
Indexed databases
<br/>
</b>
The u-commands are designed to optimize search speed for large datasets. A key technique is using an index on the database that supports rapid retrieval of word counts or seeds. The index can be built in memory on the fly from a FASTA file, or can be pre-built and stored in a UDB file. Using FASTA can be convenient, but with large database load times are longer and more memory is required compared to using a UDB file. The memory required to store a UDB file in memory is approximately the same as the UDB file size. When indexes are created on the fly from a FASTA file,
<a href="indexing_options.html">
indexing options
</a>
can be specified on the search command line. This also applies when a centroid database is constructed on the fly during clustering.
</span>
</p>
<p>
<span class="ManText">
<b>
Non-indexed databases
<br/>
</b>
The
<a href="DELETE_URL">
search_local
</a>
and
<a href="DELETE_URL">
search_global
</a>
commands do not use an index. They use a FASTA database file which is loaded into memory without creating an index. The memory required is approximately the same as the FASTA file size. Using these commands saves memory and can be convenient for small datasets, but searches are usually slower.
</span>
</p>
<div align="left">
<table border="0" cellpadding="5" cellspacing="0" summary="Table" width="77%">
<tr>
<td align="right" class="c3" width="129">
<span class="ManText c2">
Command
</span>
</td>
<td align="center" class="c3" width="120">
<span class="ManText c2">
DB format
</span>
</td>
<td align="center" class="c3">
<span class="ManText c2">
Indexed?
</span>
</td>
<td align="center" class="c3">
<span class="ManText c2">
Time
</span>
</td>
<td align="center" class="c3">
<span class="ManText c2">
File size and RAM
use
</span>
</td>
</tr>
<tr>
<td align="right" class="c4" valign="top" width="129">
<span class="ManText">
<a href="cmd_usearch_global.html">
usearch_global
</a>
<br/>
<a href="cmd_usearch_local.html">
usearch_local
</a>
<br/>
<a href="DELETE_URL">
ublast
</a>
</span>
</td>
<td align="center" class="c4" width="120">
<span class="ManText">
FASTA or UDB
</span>
</td>
<td align="center" class="c4">
<span class="ManText">
Yes
</span>
</td>
<td align="center" class="c4">
<span class="ManText">
Faster
</span>
</td>
<td align="center" class="c4">
<span class="ManText">
Larger, typical few x FASTA file size.
</span>
</td>
</tr>
<tr>
<td align="right" class="c3" valign="top" width="129">
<span class="ManText">
<a href="DELETE_URL">
search_global
</a>
<br/>
<a href="DELETE_URL">
search_local
</a>
</span>
</td>
<td align="center" class="c3" width="120">
<span class="ManText">
FASTA
</span>
</td>
<td align="center" class="c3">
<span class="ManText">
No
</span>
</td>
<td align="center" class="c3">
<span class="ManText">
Slower
</span>
</td>
<td align="center" class="c3">
<span class="ManText">
Smaller, typical ~FASTA file size.
</span>
</td>
</tr>
</table>
<br/>
</div>
</div>
</div>
</body>
</html>