| 1 |
<HTML> |
| 2 |
|
| 3 |
<HEAD> |
| 4 |
<TITLE>ACEDB User Group Newsletter - May 2003</TITLE> |
| 5 |
|
| 6 |
<LINK rel=stylesheet type="text/css" |
| 7 |
href="../newsletter.css" |
| 8 |
title="Style sheet for Acedb newsletters"> |
| 9 |
|
| 10 |
</HEAD> |
| 11 |
|
| 12 |
|
| 13 |
<BODY> |
| 14 |
|
| 15 |
<HR> |
| 16 |
<HR> |
| 17 |
|
| 18 |
<!-- Don't change this name unless you change mkindex.pl. --> |
| 19 |
<a name="Top"></a> |
| 20 |
|
| 21 |
<H1>ACEDB User Group Newsletter - May 2003</H1> |
| 22 |
|
| 23 |
|
| 24 |
<!-- ******************************************************************** --> |
| 25 |
<P>If you want to have this newsletter mailed to you <B>or</B> you want to |
| 26 |
make comments/suggestions about the format/content then |
| 27 |
send an email to <A HREF="mailto:[email protected]">[email protected]</A>. |
| 28 |
|
| 29 |
|
| 30 |
<!-- ******************************************************************** --> |
| 31 |
<P><hr width="62%" align=left> |
| 32 |
<P>This month sees more work on the new "Genetic_code" class with support for |
| 33 |
the rare Selenocysteine added, more blixem/dotter work, an extension to the |
| 34 |
Query language, more work on the tree display find facility, LongText editting, |
| 35 |
and the usual bug fixes. |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
<!-- ******************************************************************** --> |
| 40 |
<P><hr width="62%" align=left> |
| 41 |
<a name="New_Features"></a><H2>New Features</H2> |
| 42 |
|
| 43 |
|
| 44 |
<a name="selenocysteine"></a><H3>A rare addition to the new Genetic_code class</H3> |
| 45 |
|
| 46 |
<P><A HREF="http://www.acedb.org/winfo/Newsletters/Year2003/April.html#genetic_code">Last month</A> |
| 47 |
saw the addition of the new Genetic_code class to support specifying alternative genetic codes |
| 48 |
to be used in translating DNA to peptides. This month support is added for a rare variant |
| 49 |
of the genetic code found in <i>C. elegans</i> and perhaps other organisms. For at least |
| 50 |
one transcript in <i>C. elegans</i> the triplet <code>TGA</code> codes |
| 51 |
for the peptide <code>Selenocysteine</code> |
| 52 |
instead of its usual role as a stop codon. To ensure that acedb will translate this transcript |
| 53 |
correctly |
| 54 |
(i.e. will translate TGA as a "U" and not a "*") you need to set the new |
| 55 |
<b>Selenocysteine</b> tag in the <code>Genetic_code</code> class: |
| 56 |
|
| 57 |
<P><pre><code>?Genetic_code Other_name ?Text |
| 58 |
Translation UNIQUE Text |
| 59 |
Start UNIQUE Text |
| 60 |
Base1 UNIQUE Text |
| 61 |
Base2 UNIQUE Text |
| 62 |
Base3 UNIQUE Text |
| 63 |
Selenocysteine Remark Text // Use the Remark to document your usage of this tag. |
| 64 |
</code></pre> |
| 65 |
|
| 66 |
<P>It is not known yet whether all such transcripts also use TGA as a stop codon as well, |
| 67 |
but acedb will as usual remove any trailing stop codon (including |
| 68 |
TGA) from the translation. |
| 69 |
|
| 70 |
<P>Note that way the existing <code>Genetic_code</code> class is handled by acedb |
| 71 |
allows you to specify any number of alternative codes within a single sequence hierachy |
| 72 |
so no additional work by the curator is needed to add these rare variants other than |
| 73 |
specifying the correct <code>Genetic_code</code> object for that transcript. |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
<a name="blixem_dotter"></a><H3>A load of old pfetch-blixem-dotterness</H3> |
| 78 |
|
| 79 |
<P>A number of additions/fixes/features have been added to the blixem/dotter |
| 80 |
code: |
| 81 |
|
| 82 |
<P><b>EMBL sequence entries:</b> |
| 83 |
<ul> |
| 84 |
<li>At last, after far too long you can now cut/paste EMBL entries from within the |
| 85 |
text window displayed by selecting "Pfetch this sequence" from the menu displayed |
| 86 |
in fmap when you right click on a homology. |
| 87 |
|
| 88 |
<P>Now we have the basic mechanism in place we will add cut and paste to other |
| 89 |
text windows, if there are any that you would like this added to as a priority then |
| 90 |
email <A HREF="mailto:[email protected]">[email protected]</A> |
| 91 |
</ul> |
| 92 |
|
| 93 |
|
| 94 |
<P><b>Blixem:</b> |
| 95 |
<ul> |
| 96 |
<li>Simon has fixed a subtle bug (to find, if not in its effects) in that |
| 97 |
the gaps data for matches was not correctly passed to blixem when the area |
| 98 |
being blixem'd was not the whole fmap. In this case the gap data was not |
| 99 |
offset correctly relative to the sequence being viewed in fmap resulting |
| 100 |
in incorrect positioning of gaps in blixem. |
| 101 |
|
| 102 |
<li>The blixem window title bar now shows the sequence name plus whether homologies are |
| 103 |
nucleotides or peptides. <b>Note</b> that when the window is iconised you may not see |
| 104 |
the full title in the icon unless you set up your window manager correctly (if you don't |
| 105 |
know how to do this see your system administrator). For instance if you use the CDE |
| 106 |
desktop with its dtwm window manager you will need to add the text |
| 107 |
"<b>Dtwm*iconDecoration: activelabel label image</b>" to either your .XDefaults file or |
| 108 |
your Dtwm resource file. If you don't do this then the icon title is a truncated |
| 109 |
version of the full blixem title bar which is just about useless. |
| 110 |
|
| 111 |
<li>The bug has been fixed whereby blixem would display gap data correctly when run |
| 112 |
"internally" from xace but not when run "externally" as a separate program. The SEQBL |
| 113 |
file format was extended to include the gap data so that the external blixem could |
| 114 |
read it from there. |
| 115 |
|
| 116 |
<li>The default ordering of the matches is now "order by ID" which seems to be the most |
| 117 |
commonly used. |
| 118 |
</ul> |
| 119 |
|
| 120 |
|
| 121 |
<P><b>Dotter:</b> |
| 122 |
<ul> |
| 123 |
<li>Every now and then dotter seemed to display dot plots for a section of |
| 124 |
sequence unrelated to the one selected, the mystery is over. |
| 125 |
Dotter had been coded to display the widest possible plot starting at the |
| 126 |
mid point of the set of selected matches. This seems sensible but doesn't work in |
| 127 |
the case where the user is looking at only part of a set of matches and the |
| 128 |
rest are much further down the sequence. In this case dotter shows the mid |
| 129 |
point between the two parts where there may well be no matches at all ! |
| 130 |
You will now get to see a dot plot of just the section of matches |
| 131 |
you are looking at on the screen. |
| 132 |
|
| 133 |
<li>Previously the alignment window was only created displayed the first time |
| 134 |
dotter was displayed, now it will be redisplayed each a new dotter window is |
| 135 |
displayed. |
| 136 |
</ul> |
| 137 |
|
| 138 |
|
| 139 |
<a name="query_syntax"></a><H3>An extension to using Keysets in the ACEDB Query Language</H3> |
| 140 |
|
| 141 |
<P>(<I>Thanks to Dan Lawson <A HREF="mailto:[email protected]">[email protected]</A> |
| 142 |
who inspired this idea and wrote the below and to |
| 143 |
Jean Thierry-Mieg <A HREF="mailto:[email protected]">[email protected]</A> |
| 144 |
who did the original coding for this new feature.</I>) |
| 145 |
|
| 146 |
<p>ACEDB handles groups of objects in "Keysets" (you have |
| 147 |
seen the xace window termed 'Main KeySet' or the tace |
| 148 |
line '// 13 Active Objects'). We use Keysets all the |
| 149 |
time during an ACEDB session as transient lists of |
| 150 |
objects we are interested in but rarely save them to |
| 151 |
the database for later retrival/use. |
| 152 |
|
| 153 |
<P>Saved keysets can retrieved using standard queries on |
| 154 |
the KeySet class. In xace a keyset can be accessed by |
| 155 |
double-clicking on the appropriate name to open a new |
| 156 |
keyset containing the appropriate objects. In tace the |
| 157 |
process is slightly more complex requiring the user to |
| 158 |
use query/find to select the keyset object and then use |
| 159 |
the separate 'follow' command to de-reference the list of objects: |
| 160 |
|
| 161 |
<pre><code>acedb> query find Keyset CDS_with_RNAi |
| 162 |
|
| 163 |
// Found 1 objects |
| 164 |
// 1 Active Objects |
| 165 |
acedb> follow |
| 166 |
// Follow without tag-name, enters active keySets |
| 167 |
|
| 168 |
// Found 18068 objects |
| 169 |
// 18068 Active Objects |
| 170 |
acedb> |
| 171 |
</code></pre> |
| 172 |
|
| 173 |
<P>A major limitation of the tace behaviour is that you |
| 174 |
could not use the query language 'follow' keyword in the same way, |
| 175 |
i.e. the following would not work: |
| 176 |
|
| 177 |
<P><pre><code>acedb> query find Keyset CDS_with_RNAi; follow |
| 178 |
// ERROR - Nothing to the right of FOLLOW: find Keyset CDS_with_RNAi; follow |
| 179 |
|
| 180 |
// Found 0 objects |
| 181 |
// 0 Active Objects |
| 182 |
acedb> |
| 183 |
</code></pre> |
| 184 |
|
| 185 |
This is because the follow shown here is part of the query language and used |
| 186 |
to navigate an object using tag names, i.e. "follow <tagname>". |
| 187 |
A new "expand" keyword has been added to the |
| 188 |
query language to allow this dereferencing of a keyset into |
| 189 |
an object list as part of a more complex concatenated query. |
| 190 |
|
| 191 |
You can now use stored keysets in the query language as follows: |
| 192 |
|
| 193 |
<P><pre><code>acedb> query find Keyset CDS_with_RNAi; expand; where From_laboratory = HX; |
| 194 |
|
| 195 |
// Found 8425 objects |
| 196 |
// 8425 Active Objects |
| 197 |
acedb> quit |
| 198 |
</code></pre> |
| 199 |
|
| 200 |
<P>This new feature will be used in the WormBase website (should be available |
| 201 |
later this month) to allow you to |
| 202 |
retrieve stored keysets, |
| 203 |
de-reference them and use them in queries within the single |
| 204 |
line query language search box on the website |
| 205 |
(http://www.wormbase.org/db/searches/query): |
| 206 |
|
| 207 |
<P><pre><code>find Keyset CDS_with_RNAi; expand; where From_laboratory = HX; |
| 208 |
</code></pre> |
| 209 |
|
| 210 |
<P>This will return those members of the CDS_with_RNAi keyset |
| 211 |
which were predicted by the Sanger Institute (n.b. the |
| 212 |
keyset is stored in the database as part of the WormBase |
| 213 |
build process as a 'canned' query result). |
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
<!-- ******************************************************************** --> |
| 219 |
<P><hr width="62%" align=left> |
| 220 |
<a name="Articles"></a><H2>Articles</H2> |
| 221 |
|
| 222 |
|
| 223 |
<a name="treedisplay"></a><H3>An update to the tree display find facility</H3> |
| 224 |
|
| 225 |
<P>Rob has made some further updates to the tree display search facility, below |
| 226 |
is his revised description. |
| 227 |
|
| 228 |
<P>(<I>Thanks to Rob Clack |
| 229 |
<A HREF="mailto:[email protected]">[email protected]</A> |
| 230 |
for this.</I>) |
| 231 |
|
| 232 |
|
| 233 |
<P>Starting with release 4_9s, the old "Find Tag" or even older "Warp to |
| 234 |
Tag" |
| 235 |
function has been replaced by a new, more generic "Find" which locates |
| 236 |
any object you |
| 237 |
specify, whether a tag or not. |
| 238 |
|
| 239 |
<P>As with previous versions, you can use the right mouse button to drop |
| 240 |
down the |
| 241 |
menu, from which you can choose Find. However, the new version has |
| 242 |
various other |
| 243 |
ways of initiating the search. |
| 244 |
|
| 245 |
<p>Control/F and Control/B present you directly with the usual dialogue |
| 246 |
box for you to |
| 247 |
enter your target (ie skipping the menu), and pressing OK then searches |
| 248 |
forwards or |
| 249 |
backwards as you'd expect. The reverse search starts at the distal end |
| 250 |
of the tree and |
| 251 |
works backwards, of course. |
| 252 |
|
| 253 |
<p>Alternatively, if you can see the first of several identical things |
| 254 |
you want to find, |
| 255 |
you can click on that one, then use Next and Previous (see below) to |
| 256 |
move through the tree. |
| 257 |
|
| 258 |
<P>The search is case-insensitive and leading and trailing wildcards are |
| 259 |
supported. Thus |
| 260 |
B033* finds everything starting with B033, for instance. |
| 261 |
|
| 262 |
<P>For performance reasons, only the expanded portion of the tree is |
| 263 |
searched. |
| 264 |
Unfolding each node, searching it and folding it away was considered too |
| 265 |
costly |
| 266 |
to be worth implementing, and users we consulted said that in general |
| 267 |
they know the |
| 268 |
location of the objects they're seeking well enough to unfold the |
| 269 |
necessary nodes |
| 270 |
manually. |
| 271 |
|
| 272 |
<P>If the object can't be found, you get a warning message. |
| 273 |
|
| 274 |
<P>Once it has been located, you can get to the next and previous |
| 275 |
occurrences of |
| 276 |
your text using Control/. and Control/, buttons. I originally wanted to |
| 277 |
use Control/N |
| 278 |
and Control/P but the latter was already in use for printing, and I |
| 279 |
thought the |
| 280 |
appearance of the chevron keys was in keeping with the function, though |
| 281 |
I've not |
| 282 |
insisted you also press Shift to get there. |
| 283 |
|
| 284 |
<P>When you reach the end/beginning of the tree, you get a warning message, |
| 285 |
after which a further Next/Prev wraps the search back to the point at |
| 286 |
which it |
| 287 |
started. |
| 288 |
|
| 289 |
<P>Control/F and Control/B always give you back the Find dialogue box to |
| 290 |
allow |
| 291 |
you to change the object you're looking for, but note that it will start |
| 292 |
from the top |
| 293 |
of the tree rather than your current position if you do so. |
| 294 |
|
| 295 |
<P>Find also works in the UpdateTree display. |
| 296 |
|
| 297 |
<P><b>NEW HOTKEYS</b> |
| 298 |
|
| 299 |
<P>In the TreeDisplay, you can shift directly to the UpdateTree using |
| 300 |
Control/U |
| 301 |
and then you can get back to the TreeDisplay using Control/T in UpdateTree. |
| 302 |
|
| 303 |
<P>Finally, this is old news but not everyone knows it. If you select a |
| 304 |
tag in |
| 305 |
TreeDisplay and go from there to the UpdateTree display, that tag will be |
| 306 |
centred on the screen for you. |
| 307 |
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
<a name="longtext"></a><H3>Editting LongText</H3> |
| 312 |
|
| 313 |
<P>Do you know how to edit LongText objects in xace ? Following a recent bug report |
| 314 |
from a user, a missing script from our acedb distribution has been replaced in |
| 315 |
wscripts which is necessary for the LongText editting to work. |
| 316 |
|
| 317 |
<P>If you start xace and then display an object in a treedisplay window which contains |
| 318 |
LongText objects you will see the LongText objects displayed in a numbered |
| 319 |
list at the bottom of the tree display window. To edit one of these objects you need to |
| 320 |
double click on the LongText objects name in this numbered list, this will display the |
| 321 |
LongText object in a special LongText display window. The LongText window gives you a |
| 322 |
number of options including "Edit", if you select this option then an editor will be |
| 323 |
displayed containing the the LongText text and you can then edit the text to change it. |
| 324 |
On saving the text and exitting the editor the new text will be reread into acedb as |
| 325 |
the new LongText object. |
| 326 |
|
| 327 |
<P>For all this to work you need to have a small script on your path which will |
| 328 |
start up the editor of your choice. Acedb provides a sample script in wscripts/acedb_editor: |
| 329 |
|
| 330 |
|
| 331 |
<P><pre><code>#!/bin/ksh |
| 332 |
# |
| 333 |
# This script is called when you click the "Edit" button in the |
| 334 |
# LongText display window (reached by double clicking on the |
| 335 |
# name of any longtext displayed in the tree display). |
| 336 |
# You should copy it to a directory on your PATH otherwise acedb |
| 337 |
# will not be able to find it (N.B. make sure that its executable). |
| 338 |
# |
| 339 |
# If you haven't got ksh on your system then just adapt this script. |
| 340 |
# |
| 341 |
# Change "xemacs" to the editor of your choice. |
| 342 |
# |
| 343 |
# |
| 344 |
|
| 345 |
donename="$1.done" |
| 346 |
|
| 347 |
xemacs -q $1 |
| 348 |
|
| 349 |
cp $1 $donename |
| 350 |
|
| 351 |
echo "***LongTextEnd***" >> $donename |
| 352 |
|
| 353 |
exit 0 |
| 354 |
</code></pre> |
| 355 |
|
| 356 |
|
| 357 |
|
| 358 |
<!-- ******************************************************************** --> |
| 359 |
<P><hr width="62%" align=left> |
| 360 |
<a name="Bugs_Fixed"></a><H2>Bugs Fixed</H2> |
| 361 |
|
| 362 |
|
| 363 |
|
| 364 |
<a name="big_blixems"></a><H3>Big sequence bug in blixem</H3> |
| 365 |
|
| 366 |
<P>Blixem is one of the examples of acedb that relies on fixed length buffers |
| 367 |
but does not check whether the buffers have overflowed, largely because the |
| 368 |
standard C library for calls such as <code>scanf()</code> do not allow checking |
| 369 |
in any easy way. |
| 370 |
|
| 371 |
<P>This has been causing blixem to overwrite existing sequence records read from |
| 372 |
SEQBL files with more sequence when the sequence was too long to fit in |
| 373 |
Blixems internal buffers. |
| 374 |
|
| 375 |
<P>The bug has now been fixed by using a dynamic buffer for SEQBL file reading. |
| 376 |
|
| 377 |
|
| 378 |
|
| 379 |
|
| 380 |
|
| 381 |
<!-- ******************************************************************** --> |
| 382 |
<P><hr width="62%" align=left> |
| 383 |
<a name="Developers_Corner"></a><H2>Developers Corner</H2> |
| 384 |
|
| 385 |
|
| 386 |
<a name="catText"></a><H3>Bug in catText</H3> |
| 387 |
|
| 388 |
<P>Mark unwittingly introduced a bug into catText() a couple of weeks ago while fixing |
| 389 |
an existing bug in catBinary(), there are a couple of things to note here |
| 390 |
I think: |
| 391 |
<ol> |
| 392 |
<li>we should all try to comment our code sufficiently that anyone coming along later |
| 393 |
to modify the code can get a quick understanding of why the code works the way it |
| 394 |
does. In general the acedb code is very poorly documented from this point of view, we |
| 395 |
are making life difficult for ourselves. |
| 396 |
<li>Marks modification changes the way catBinary() and catText() work, catText removes |
| 397 |
trailing zeroes before cat'ing, catBinary() does not. Probably this will not change |
| 398 |
anything but we should all note this. |
| 399 |
</ol> |
| 400 |
|
| 401 |
|
| 402 |
<a name="graphpick"></a><H3>Graph PICK and modifiers</H3> |
| 403 |
|
| 404 |
<P>In code where you register a callback function using the graphRegister() call for "PICK" |
| 405 |
(i.e. left button down), the callback function now takes an extra parameter which is |
| 406 |
the modifier key (Alt, Cntl etc) pressed at the time of the left button down. |
| 407 |
This allows you to handle key combintations such as "Cntl-left button" which just gives |
| 408 |
a bit more flexibility to the way we handle keyboard interactions, especially given the |
| 409 |
current effort to provide more keyboard shortcuts. |
| 410 |
|
| 411 |
|
| 412 |
<a name="peptide"></a><H3>Rationalisation of peptide routines</H3> |
| 413 |
|
| 414 |
<P>During the introduction of the special case Selenocysteine translation code |
| 415 |
I spent a bit of time rationalising the code that does the translations to make it |
| 416 |
easier to maintain. There |
| 417 |
was code in both fmapfeatures.c and fmapsequence.c which essentially duplicates |
| 418 |
translation code in peptide.c. All this code is now in peptide.c, there is probably |
| 419 |
further rationalisation within peptide.c that can be done but its a start to have it |
| 420 |
all in one file. |
| 421 |
|
| 422 |
|
| 423 |
<a name="design_docs"></a><H3>New wdoc subdirectories for developer docs</H3> |
| 424 |
|
| 425 |
<P>Two new directories have been created in wdoc as repositories for developer documentation: |
| 426 |
|
| 427 |
<dl> |
| 428 |
<dt><b>wdoc/Interfaces</b> |
| 429 |
<dd>is for documentation of our programming interfaces, e.g. graph, |
| 430 |
gex etc. |
| 431 |
<dt><b>wdoc/Internals</b> |
| 432 |
<dd>is for documentation of implementation details that are too verbose or inappropriate |
| 433 |
for inclusion in source code. |
| 434 |
</dl> |
| 435 |
|
| 436 |
<P>I've been working on an adulteration of some emacs code that will allow us to put |
| 437 |
text like the following in our source code and then display the design document referred |
| 438 |
to in the comment (in this case "ServerDesign.html") in our own choice of browser: |
| 439 |
|
| 440 |
<P><pre><code>/* If you alter this bit of code first read ServerDesign.html as there are some |
| 441 |
* non-obvious bits of coding. */ |
| 442 |
</code></pre> |
| 443 |
|
| 444 |
<P>When this is finished I'll put in cvs so we can all access it. |
| 445 |
|
| 446 |
<P><b>NOTE</b> I don't think these directories are for fantastically finished documents, they |
| 447 |
should simply be a repository of what we have, please add to it when you can. |
| 448 |
|
| 449 |
|
| 450 |
<a name="makefile"></a><H3>Small makefile change</H3> |
| 451 |
|
| 452 |
<P>The default compilation of dotter has been changed to non-optimised. Compiling |
| 453 |
optimised by default makes debugging hard, its easy for any users to override this |
| 454 |
by changing the makefile as they wish. |
| 455 |
|
| 456 |
|
| 457 |
|
| 458 |
<a name="disknew"></a><H3>Fixing Database partition size in AceDB</H3> |
| 459 |
|
| 460 |
<P>(<I>Thanks to Mark Sienkiewicz |
| 461 |
<A HREF="mailto:[email protected]">[email protected]</A> |
| 462 |
for this.</I>) |
| 463 |
|
| 464 |
<P>Occasionally AceDB creates one off huge database/blockNN.wrm files (reaching sizes |
| 465 |
of 2GB and more) for |
| 466 |
"no apparent reason", there have been various theories about this but |
| 467 |
Mark has done the work to crack this problem. He has fixed the code in acedb 4_7 |
| 468 |
(Jeans working code) but the code needs importing into 4_9. Here is what he has |
| 469 |
to say: |
| 470 |
|
| 471 |
<blockquote>Since then, I discovered the mechanism |
| 472 |
for Jean's problem of seeing the files go over 2 gig. |
| 473 |
|
| 474 |
<P>When you allocate a block, it finds a free slot in the BAT (block |
| 475 |
allocation table). When there are no free slots, it appends 64 megabytes |
| 476 |
of data to the last data file and extends the BAT in memory. When you |
| 477 |
issue a "save" command, it writes the updated BAT into blocks in the data |
| 478 |
file. |
| 479 |
|
| 480 |
<P>BUT-- suppose tacembly crashes when you try to assemble genes from clones. |
| 481 |
It writes data to the database, which forces the file to be extended. |
| 482 |
BUT because it crashes <b>before</b> you save, the updated BAT is never written |
| 483 |
to the file. |
| 484 |
|
| 485 |
<P>Ok, it crashed, so you hack on it a little and run it again. It finds the |
| 486 |
most recent saved session, which includes the old BAT. It starts creating |
| 487 |
the same data again (remember the first run was never saved), and so again |
| 488 |
it overflows the old BAT and extends the file. |
| 489 |
|
| 490 |
<P>Now, it extends the file by <b>appending</b> 64 meg of data, <b>not</b> by writing |
| 491 |
64 meg to the file beginning at the last block in the BAT. So if I had a |
| 492 |
500 meg file that needs to extend by 500 meg, I have |
| 493 |
|
| 494 |
<P><pre><code> 500 meg before the first run |
| 495 |
1000 meg after the first run crashes |
| 496 |
1500 meg after the second run crashes |
| 497 |
2000 meg after the third run crashes |
| 498 |
2500 meg after the fourth run |
| 499 |
</code></pre> |
| 500 |
|
| 501 |
<P>Each time, the BAT still thinks there is only 500 meg in the file, so it |
| 502 |
believes it is ok to extend the file. Instead of just going 64 meg over |
| 503 |
the file size limit (which happens all the time), the file can grow |
| 504 |
arbitrarily large. |
| 505 |
|
| 506 |
<P>And, of course, when it goes over 2 gig, lseek() with signed 32 bit |
| 507 |
numbers starts failing, and the database crashes. When you run it again, |
| 508 |
it tries to make the file bigger... |
| 509 |
|
| 510 |
<P>b.t.w. I looked in your disknew.c, you do have this bug, but you |
| 511 |
probably never noticed it because you only see it if the database crashes |
| 512 |
between a big write and a save. Presumably, you could also see it if you |
| 513 |
parse a very large file and then quit without saving. |
| 514 |
</blockquote> |
| 515 |
|
| 516 |
<P>Nice one Mark ! |
| 517 |
|
| 518 |
|
| 519 |
<!-- ******************************************************************** --> |
| 520 |
<P><hr width="62%" align=left> |
| 521 |
<a name="Monthly_Build"><H2>May monthly build now available.</H2> |
| 522 |
|
| 523 |
<P>You can pick up the monthly builds from: |
| 524 |
<dl> |
| 525 |
<dt><b>Sanger users</b> |
| 526 |
<dd>~acedb/RELEASE.DEVELOPMENT |
| 527 |
<dt><b>External users</b> |
| 528 |
<dd><A href="http://www.acedb.org/Software/Downloads/monthly.shtml"> |
| 529 |
http://www.acedb.org/Software/Downloads/monthly.shtml</A> |
| 530 |
</dl> |
| 531 |
|
| 532 |
<!-- ******************************************************************** --> |
| 533 |
<P><hr width="62%" align=left> |
| 534 |
<a name="User_Group"><H2>Next User Group Meeting - D319, 3.00pm, Thursday, 12th June 2003</H2> |
| 535 |
|
| 536 |
<!-- ******************************************************************** --> |
| 537 |
<HR> |
| 538 |
<HR> |
| 539 |
|
| 540 |
<ADDRESS><A href="mailto:[email protected]">Ed Griffiths <[email protected]></A></ADDRESS> |
| 541 |
<!-- hhmts start --> |
| 542 |
Last modified: Wed Jun 4 11:55:46 BST 2003 |
| 543 |
<!-- hhmts end --> |
| 544 |
|
| 545 |
</BODY> |
| 546 |
</HTML> |