Debian Codegraph @

winfo/Newsletters/Year2001/June.html

raw
1 <HTML>
2
3 <HEAD>
4 <TITLE>ACEDB User Group Newsletter - June 2001</TITLE>
5
6 <!-- you won't pick up the style sheet if you view this template file, it works OK
7 for the newsletters which are in the directory above. -->
8
9 <LINK rel=stylesheet type="text/css"
10 href="../newsletter.css"
11 title="Style sheet for Acedb newsletters">
12
13 </HEAD>
14
15
16 <BODY>
17
18 <HR>
19 <HR>
20
21 <!-- Don't change this name unless you change mkindex.pl. -->
22 <a name="Top"></a>
23
24 <H1>ACEDB User Group Newsletter - June 2001</H1>
25
26
27 <!-- ******************************************************************** -->
28 <P>If you want to have this newsletter mailed to you <B>or</B> you want to
29 make comments/suggestions about the format/content then
30 send an email to <A HREF="mailto:[email protected]">[email protected]</A>.
31
32
33 <!-- ******************************************************************** -->
34 <P>AceDB 4_9 finally arrived and needless to say there have been some
35 bugs, to fix these we've just released AceDB 4_9b.
36 There is a new scrolling message window to replace the millions of
37 popup dialogs that AceDB sometimes produces.
38 There's a new version of AcePython and an article on GFF.
39
40
41
42 <!-- ******************************************************************** -->
43 <a name="General_News"></a><H2>General News</H2>
44
45 <a name="acedb_4_9b"></a><H3>AceDB 4_9b released</H3>
46
47 <P>This update of AceDB 4_9 contains a number of fixes and new features covered in
48 the rest of the newsletter. The main purpose of the release is to fix a number
49 of bugs in the new code.
50
51 <P>Both the Monthly and Public AceDB downloads pages have been updated
52 with the new build. Internally to the Sanger Centre the build can be obtained
53 from ~acedb/RELEASE.SUPPORTED.
54
55
56 <a name="IBM"></a><H3>First HP, now IBM</H3>
57
58 <P>Well the big names in computing are beating a path to our door. In the March
59 newsletter I reported that HP had offered us a loan machine and are keen for
60 AceDB to be ported to their new Intel 64-bit machines (when they arrive). Well
61 now IBM have made contact to say they want AceDB on their machines as well.
62
63 <P>"Fame" at last, well something like that anyway.
64
65
66 <!-- ******************************************************************** -->
67 <a name="New_Features"></a><H2>New Features</H2>
68
69 <a name="tagnames"></a><H3>More on Tag Names</H3>
70
71 <P>In last months item on <A href="./May.html#numeric_tags">"Non-numeric tag names"</A>
72 I should have emphasised that the valid character set for tag names does <b>not</b>
73 include the dash character <b>"-"</b> which is used in the query language to
74 mean "subtraction". There are certainly databases in the
75 Sanger Centre that use tag names that include the <b>"-"</b> character and
76 these tag names will need to be changed.
77
78 <P>Please note also that the "tag names" are the text that appears in your models.wrm file,
79 <b>not</b> the data in your database which is allowed to have this and many other characters !
80
81 <a name="version_dir"></a><H3>How do I know which monthly build version I am using ?</H3>
82
83 <P>Starting this month, if you use the "<b><code>-version</code></b>" flag when running
84 an AceDB program it will output the original build directory which will show
85 exactly which months code you are running:
86
87 <pre><code>griffin[edgrif]42: xace -version
88 ACEDB 4_9a, build dir: RELEASE.2001_06_30, compiled on: Jul 2 2001 10:22:19</code>
89 </pre>
90
91 <P>In this case the June build for 2001.
92
93
94 <a name="new_genes"></a><H3>Inheritance of some parent tags when creating new "temp_genes"</H3>
95
96 <P>From now on, as a short cut when you make a new "temp_gene", the <code>Species</code>
97 and <code>From_laboratory</code>
98 tag values (if they exist) will be copied from the parent Sequence object.
99
100
101 <a name="msglist"></a><H3>An end to the endless "OK"/"Continue" button ?</H3>
102
103 <P>Normally in AceDB informational and error messages are displayed individually
104 in so-called "popup" dialog windows which require the user to click on an "OK"
105 or "Continue"
106 button to get rid of the window. For the odd message this is acceptable, but if
107 there are a large number of messages (as when there are DNA mismatches) this
108 becomes irritating in the extreme.
109
110 <P>A partial fix to this problem was made for DNA mismatches by allowing
111 an xace user to interactively turn off reporting of them
112 (<A href="./February.html#Interactive"> see February, 2001 newsletter</A>).
113 This did not solve the problem for other frequent messages however.
114
115 <P>A new "message list" facility has been added to xace to deal with this
116 problem. The new code allows the user to choose between having errors
117 reported in the usual way or instead having a single "message list" window
118 which will display a rolling list of informational/error messages as
119 they are generated. The messages do not need to be replied to, they are displayed
120 in the window and the window is raised above other AceDB windows to alert the
121 user that a message has arrived.
122
123 <P>To configure "message list" click on "Admin.." on the main window and
124 then select "Preferences" from the "Admin.." menu list. This will show the
125 "Preferences Editor" window from which you can set:
126
127 <dl>
128 <dt><b><code>USE_MSG_LIST</code></b>
129 <dd>Set this "on" to use the message list window instead of popups (and off to return
130 to popups).
131 <dt><b><code>MAX_MSG_LIST_LENGTH</code></b>
132 <dd>You can control the number of messages that the window will display
133 so that if you want to record all messages you could set this to
134 some very large figure, perhaps several hundred.
135 </dl>
136
137 <P><b>N.B.</b> You should note that for any preferences where you have to
138 type a value, you <b>must</b> press the <b><code>return</code></b> key
139 before you click the "Apply" or "Save" buttons. If you don't do this, the
140 value you have entered will be ignored.
141
142 <P>Once you have selected <b><code>USE_MSG_LIST</code></b> and clicked
143 the "Apply" or "Save" buttons, a new window with the title
144 "AceDB Normal/Error Messages" will appear. The window has scroll bars
145 so that you can adjust it to the size you want and also scroll through
146 messages.
147
148 <P>If there are no messages then the window will show
149
150 <pre>
151 "&lt; No messages currently &gt;"
152 </pre>
153
154 <P>As messages arrive they are displayed with the newest at the bottom displayed in
155 red, older messages are scrolled off the top. Once the list has reached
156 <b><code>MAX_MSG_LIST_LENGTH</code></b> in size, older messages are discarded to be replaced
157 by new ones. Each message is shown with
158 a time stamp so that you can see when it was generated. You will see something
159 like this:
160
161 <pre>
162
163 <font color="black">2001-06-14_16:35:30: Roger, your sequence is mismatched !
164 2001-06-14_16:35:31: Roger, your sequence is still mismatched !
165 2001-06-14_16:35:32: Use AceDB and all your troubles will be over !
166 <font color="red">2001-06-14_16:35:33: Sorry, my graph has disappeared !</font>
167
168 </pre>
169
170 <p>There is online help available from the popup menu for the message list window.
171 To make this available, the database administrator will need to update
172 the <code>whelp/</code> subdirectory with the
173 <code>MesgList.html</code> help file from the <code>whelp/</code>
174 directory in the acedb 4_9b release.
175
176 <p>If you prefer to use the individual popup message windows and only switch to
177 the scrolling window occasionally, you can do this because informational/error
178 message windows will now be displayed with an extra button which can be used to switch
179 to popup windows. Just toggle on the "Switch to Message Window" button and click
180 the "Continue" button.
181
182
183 <a name="AcePython"></a><H3>Latest Version of AcePython</H3>
184
185 <p>For those of you who don't know Python, it's a freely available, object
186 oriented scripting language. Unlike Perl, Python was object oriented from the
187 start and is a <b>much</b> cleaner implementation of objects, it has a large
188 standard library, GUI code etc. etc.
189
190 <p>Siegfried Schloissnig and Thomas Sean Powell originally wrote an interface
191 to the AceDB socket server in Python while attending the AceDB2000 workshop in Vancouver.
192 Siegfried has just sent us the latest code and this announcement:
193
194 <P><b>AcePython:</b>
195
196 <P>AcePython provides a basic Python based interface to the AceDB database.
197 Currently only socket based connections are supported (we are not planning
198 to support the old RPC based server).
199
200 <P>AcePython resembles the AcePerl interface, so it is easier to use for
201 people with AcePerl experience.
202
203 <P>Basically the first step is to open a database connection using Ace.connect.
204 This returns an object representing the database connection.
205 After a connection has been established it can be used to retrieve objects
206 from the database with the fetch method.
207
208 <P>The fetch method uses the underlying transport mechanism to
209 send a query to the server (as mentioned above, only socket based
210 connections are currently supported).
211 The result of the query is passed to the parser, (a C implementation
212 is coming soon) which returns one or multiple AceObjects.
213
214 <P>AceObjects support various methods to extract data. These methods are
215 named analogous to their AcePerl counterparts.
216
217 <P>Right now there is no support for manipulating or inserting data into
218 AceDB.
219
220 <P>Feel free to contact the author, Siegfried Schloissnig, at
221 <A HREF="mailto:[email protected]">[email protected]</A> or
222 via normal mail: Computer Department, Max Planck Institute of Molecular Cell Biology and Genetics,
223 Dresden.
224
225
226
227
228 <!-- ******************************************************************** -->
229 <a name="Articles"></a><H2>Articles</H2>
230
231 <a name="gff_format"></a><H3>Exporting sequence feature information from AceDB using the GFF format</H3>
232
233 <P>(<I>This article is courtesy of Keith Bradnam</I>
234 <A HREF="mailto:[email protected]">[email protected]</A>)
235
236 <P>Many AceDB database curators are (necessarily) familiar with dumping data
237 from their databases. The most common option for dumping is probably
238 the exporting of sequence information (DNA or protein). This can be done
239 from a keyset list of sequence objects (i.e. click on the 'Export...'
240 menu) or by right clicking on the fmap displays (i.e. the graphical
241 views of sequences).
242
243 <P>These methods allow you to quickly export sequence information in either
244 the native AceDB format ('ace' format) or as a FASTA formatted sequence
245 file.
246
247 <P>Perhaps not so well-known is the option of exporting sequence information
248 in the General Feature Format (GFF). The GFF format allows for a
249 simple (but powerful) description of all sequence features in a format
250 which is ideal for parsing by simple shell/perl scripts. This is also a
251 format that is used widely in the bioinformatics community, and thus is
252 useful as a convenient data-exchange format.
253
254 <P>This can be particularly useful if you simply want to grab a snapshot of
255 what BLAST hits a particular sequence contains, or where the predicted
256 exons of a coding sequence are.
257
258 <P>To export GFF features, view your sequence graphically using the fmap
259 display and then select the right-click menu option named 'Export
260 Features'. This will then allow you to save to a *.gff file. Remember
261 that only those features that are contained within the current 'active
262 zone' will be exported, so you may wish to first restrict/broaden the
263 active zone.
264
265 <P>A complete description of the GFF format is available at:
266 <ul>
267 <li><A href="http://www.sanger.ac.uk/Software/formats/GFF/">
268 http://www.sanger.ac.uk/Software/formats/GFF/</A>
269 </ul>
270
271
272
273
274
275 <!-- ******************************************************************** -->
276 <a name="Bugs_Fixed"></a><H2>Bugs Fixed</H2>
277
278
279 <a name="last_month"></a><H3>fmap bug in last months build.</H3>
280
281 <P>Sad to say, yours truly introduced a bug into fmap while trying to fix another
282 bug. The bug manifested itself by xace reporting that objects were off the end of
283 the DNA sequence. While this was correct, the code then did not produce the fmap
284 sequence correctly causing AceDB to crash frequently.
285
286 <P>This should now be fixed, if its not you can send stern emails to
287 <A href="mailto:[email protected]">Ed Griffiths &lt;[email protected]&gt;</A></ADDRESS>.
288
289
290 <a name="gmap"></a><H3>gmap bug</H3>
291
292 <P>Some users were finding that gmap crashed on being redisplayed, this is now fixed.
293
294 <a name="printers"></a><H3>List of Printers not displayed in print window for NIS defined printers.</H3>
295
296 <P>Thanks to Stewart Morris of Medical Genetics Section, The University of Edinburgh
297 (<A href="mailto:[email protected]">&lt;[email protected]&gt;</A>
298 for fixing this one. A simple typo. resulted in the wrong operating system file
299 being examined for printers that are NIS defined rather than being locally
300 defined on the users machine.
301
302 <a name="more_printer_bugs"></a><H3>Other Printer bugs fixed.</H3>
303
304 <P>Several other bugs in printing were also fixed:
305
306 <dl>
307 <dt>PS fonts file not found
308 <dd>AceDB sometimes generated warnings about not being able to find
309 the wspec/psfonts.wrm file, this is now fixed.
310 <dt>Blue image on page box wrong
311 <dd>Sometimes the blue rectangle that shows the size of the image on the
312 paper for printing was shown as being zero in height making it impossible
313 to adjust its size, this is now fixed.
314 <dt>"fMapRefresh() could not find FeatureMap on graph"
315 <dd>If you cancelled the print window after trying to do a "Print Whole Map", this
316 would cause AceDB to crash, this is now fixed.
317 </dl>
318
319
320
321 <a name="blockN.wrm"></a><H3>Database corruptions and blockN.wrm permissions</H3>
322
323 <P>Occasionally the following sequence of errors happens with AceDB:
324
325
326 <pre><code>DATABASE: /nfs/disk59/scanner/fpc/ACE/mousedb LOGFILE LINE
327 :5094:2001-06-18_01:31:28 fes22 21401 FATAL ERROR reported by program tace, in
328 file disknew.c, at line 866: diskblockwrite can't open blocks
329 /nfs/humdata1/humace/databases/mousedb/database/block8.wrm (system error 13 -
330 Permission denied)
331
332
333 DATABASE: /nfs/disk59/scanner/fpc/ACE/mousedb LOGFILE LINE
334 :5209:2001-06-18_09:14:13 hgs1g 24875 FATAL ERROR reported by program tace, in
335 file disknew.c, at line 866: diskblockwrite can't open blocks
336 /nfs/humdata1/humace/databases/mousedb/database/block9.wrm (system error 13 -
337 Permission denied)
338
339
340 DATABASE: /nfs/disk59/scanner/fpc/ACE/mousedb LOGFILE LINE
341 :5220:2001-06-18_10:00:34 hgs1g 28578 FATAL ERROR reported by program tace, in
342 file disknew.c, at line 578: Duplication in fuseBats</code>
343 </pre>
344
345 <P>What has happened here is that a user has been allowed to get write access
346 to a database, made some changes but then when they come to save the changes it
347 turns out that some of the <code>database/block<b>N</b>.wrm</code> files are owned by another user
348 and so only part of the changes get saved. This results in the database becoming
349 corrupted.
350
351 <P>While its possible to set the permissions of the database directories and
352 the AceDB programs to prevent this happening it also points to a bug in AceDB.
353 AceDB should check that it can read/write all of the <code>database/block<b>N</b>.wrm</code>
354 files before allowing the user to have write access.
355
356 <P>The code now does this with the result that you may notice that you are refused
357 write access more often. You may also notice that even though you could get write
358 access when first started up xace, you may subsequently not be able to save because
359 some <code>database/block<b>N</b>.wrm</code> files have changed ownership while you have been
360 working. This seems preferable to having the database get corrupted.
361
362 <P>If you have trouble getting write access you should check the <code>database/log.wrm</code>
363 file for error messages (look for your userid near the bottom of the file) to see
364 if access to <code>database/block<b>N</b>.wrm</code> files is the problem.
365
366
367
368 <a name="socklen_t"></a><H3>Compiling saceserver on more recent Compaq-Alpha machines</H3>
369
370 <P>This item only affects users who do their own builds/compiles of the server/client
371 AceDB programs on Compaq (formerly DEC) Alpha Stations.
372
373 <P>From time to time computer manufacturers change system header files which sometimes
374 messes up AceDB builds. There has been a change in the Compaq Alpha operating system
375 header <code><b>/usr/include/sys/socket.h</b></code> which causes the AceDB build to fail.
376
377 <P>Use the <code><b>"uname"</b></code> command to find out what level your Alpha operating system
378 is at:
379
380 <pre><code>&gt; uname -a
381 OSF1 your_system_name V4.0 1229 alpha</code>
382 </pre>
383
384 <P>If your system has an update level that is <b>smaller</b> than "1229" then you
385 don't need to worry about this further. If the update level is "1229" or higher
386 then read on.
387
388 <P>Have a look in <code><b>/usr/include/sys/socket.h</b></code> to see if it contains the lines:
389
390 <pre><code>#ifdef _POSIX_PII_SOCKET
391 typedef unsigned long socklen_t; /* 64-bits */
392 #endif</code>
393 </pre>
394
395 <P>If it does then you should do your builds of the server/client programs like this:
396
397 <pre><code>make USEROPTS='-D_POSIX_PII_SOCKET' saceserver sgifaceserver saceclient</code>
398 </pre>
399
400 <P>If you have any problems with this then please mail
401 <A HREF="mailto:[email protected]">[email protected]</A>.
402
403
404 <!-- ******************************************************************** -->
405 <a name="Developers_Corner"></a><H2>Developers Corner</H2>
406
407 <P>If you wish to make comments/suggestions about any of the below, please mail them
408 to <A HREF="mailto:[email protected]">[email protected]</A>
409
410 <a name="enums"></a><H3>NULL_GRAPH</H3>
411
412 <P>If you are doing some programming using the Graph package then
413 you may want to make use of the NULL_GRAPH enum which I've just added to graph.h.
414 This is an enum which has the value 0 (successive graphs are numbered incrementally from 1
415 so no graph ever has the value 0)
416 and has the advantage that debuggers display it symbolically as well as making the code more
417 readable for newcomers.
418
419 <a name="prefs"></a><H3>AceDB preferences</H3>
420
421 <P>xace allows the user to set personal preferences which are recorded in the file
422 <code><b>$HOME/.acedbrc</b></code>, while doing the work for the message window
423 I added callback functions so that its possible to have a function executed elsewhere
424 in the code when the user sets a preference.
425
426
427
428 <!-- ******************************************************************** -->
429 <H2>June monthly build now available.</H2>
430
431 <P><b>NOTE</b> that this build is the acedb 4_9b build.
432
433 <P>You can pick up the monthly builds from:
434 <dl>
435 <dt><b>Sanger users</b>
436 <dd>~acedb/RELEASE.DEVELOPMENT
437 <dt><b>External users</b>
438 <dd><A href="http://www.acedb.org/Software/Downloads/monthly.shtml">
439 http://www.acedb.org/Software/Downloads/monthly.shtml</A>
440 </dl>
441
442 <!-- ******************************************************************** -->
443 <H2>Next User Group Meeting - D319, 2.30pm, Thursday, 19th July 2001</H2>
444
445
446 <!-- ******************************************************************** -->
447 <HR>
448 <HR>
449
450 <ADDRESS><A href="mailto:[email protected]">Ed Griffiths &lt;[email protected]&gt;</A></ADDRESS>
451 <!-- hhmts start -->
452 Last modified: Wed Jul 4 14:25:45 BST 2001
453 <!-- hhmts end -->
454
455 </BODY>
456 </HTML>