| 1 |
<HTML> |
| 2 |
|
| 3 |
|
| 4 |
<!-- Stuff you should alter is highlighted with "***" --> |
| 5 |
|
| 6 |
|
| 7 |
<HEAD> |
| 8 |
<TITLE>ACEDB User Group Newsletter - April 2000</TITLE> |
| 9 |
|
| 10 |
<!-- you won't pick up the style sheet if you view this template file, it works OK |
| 11 |
for the newsletters which are in the directory above. --> |
| 12 |
|
| 13 |
<LINK rel=stylesheet type="text/css" |
| 14 |
href="../newsletter.css" |
| 15 |
title="Style sheet for Acedb newsletters"> |
| 16 |
|
| 17 |
</HEAD> |
| 18 |
|
| 19 |
|
| 20 |
<BODY> |
| 21 |
|
| 22 |
<HR> |
| 23 |
<HR> |
| 24 |
|
| 25 |
<H1>ACEDB User Group Newsletter - April 2000</H1> |
| 26 |
|
| 27 |
<P>If you want to have this newsletter mailed to you <B>or</B> you want to |
| 28 |
make comments/suggestions about the format/content then |
| 29 |
send an email to <A HREF="mailto:[email protected]">[email protected]</A>. |
| 30 |
|
| 31 |
<P>This month includes news about the release of the socket based version of the |
| 32 |
acedb server/client, BioJava, new web pages, NFS and acedb, and how to find out what |
| 33 |
version of an acedb program you are using. |
| 34 |
|
| 35 |
|
| 36 |
<!-- delete any headings that are not needed for this month --> |
| 37 |
|
| 38 |
<a name="General"></a><H2>General News</H2> |
| 39 |
The latest monthly build is acedb 4_8c and this code can be found in the |
| 40 |
<B><CODE>~acedb/RELEASE.DEVELOPMENT</CODE></B> directories. This code |
| 41 |
introduces some new features in to acedb and fixes a number of bugs |
| 42 |
reported by users. |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
<a name="New"></a><H2>New Features</H2> |
| 47 |
|
| 48 |
<a name="web"></a><H3>New web pages</H3> |
| 49 |
|
| 50 |
<P>Acedb has a number of useful utility programs which can be found |
| 51 |
in the <CODE><B>wtools</B><CODE> directory of a distribution. These |
| 52 |
include a number of useful programs to do things like: |
| 53 |
|
| 54 |
<dl> |
| 55 |
<dt><b>tagsInModel:</b> |
| 56 |
<dd>count the number of classes and tags in a models file. |
| 57 |
<dt><b>modelCheck:</b> |
| 58 |
<dd>checks your wspec/models.wrm for inconsistencies. |
| 59 |
</dl> |
| 60 |
|
| 61 |
<p> |
| 62 |
You can find a description/listing of these utilities at: |
| 63 |
<b>http://www.acedb.org/Development/wdoc/acetools.html</b> |
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
<a name="sockets"></a><H3>The sockets based server</H3> |
| 68 |
|
| 69 |
<P>A beta test release of the new socket based server is now available for |
| 70 |
testing. This version will eventually replace the RPC version that existed before. |
| 71 |
|
| 72 |
<P>Main highlights are: |
| 73 |
<ul> |
| 74 |
<li>Uses standard sockets instead of RPC which has meant that we have been |
| 75 |
able to do a Windows port. |
| 76 |
<li>New password system for authentificating users means that NFS mounts |
| 77 |
of password directories are no longer required between client and server. |
| 78 |
</ul> |
| 79 |
|
| 80 |
<P>See http://www.acedb.org/Development/wdoc/SOCKET_aceserver.html for further details, |
| 81 |
including how to set the new server up. |
| 82 |
|
| 83 |
<P>See http://www.acedb.org/Development/wdoc/SOCKET_interface.html for detail of how |
| 84 |
to interface to the server via sockets (perhaps from Perl or from Java - see next item). |
| 85 |
|
| 86 |
|
| 87 |
<a name="BioJava"></a><H3>BioJava and acedb</H3> |
| 88 |
|
| 89 |
<P>Matthew Pocock and Thomas Down have been doing to Java what BioPerl did to Perl (!), |
| 90 |
that is providing some useful BioInformatics packages/functions for access from Java |
| 91 |
code. Here's a summary from them of what BioJava does: |
| 92 |
|
| 93 |
<p>Among the first clients for the ACeDB socket server is the BioJava socket client. |
| 94 |
BioJava is an open source Java library for representing biological information, such |
| 95 |
as sequences, and for interfacing with commonly used biological programs. |
| 96 |
|
| 97 |
<P>As ACeDB is a |
| 98 |
very common database for storing genomic information, we decided to write a client so |
| 99 |
that all of this information can be accessed. |
| 100 |
BioJava attempts to be pure-java where |
| 101 |
possible, and as Java already provides a socket library, the new Acedb socket-based server is |
| 102 |
ideal for us. |
| 103 |
The |
| 104 |
BioJava socket client can be used to view the ACeDB objects either as Java objects |
| 105 |
or alternatively as BioJava sequences, features and annotation bundles. |
| 106 |
The BioJava client is fast, with nearly all the overhead being in the |
| 107 |
server. It was also easy to implement a multi-session client, requiering about 600 lines |
| 108 |
of code for both the client implementation and the Java representation of the ACeDB |
| 109 |
object |
| 110 |
model. |
| 111 |
|
| 112 |
<p>In combination with the BioCorba and ensemble initiatives, this provides a strong |
| 113 |
foundation for platform-independant biological visualisation and data-processing. |
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
<a name="fmap"></a><H3>fmap</H3> |
| 118 |
Aprils monthly build code (available from <B><CODE>~acedb/RELEASE.DEVELOPMENT</CODE></B>) |
| 119 |
has some changes to fmap and its also probably worth including a |
| 120 |
reminder here about a facility that has been in fmap for a while now: |
| 121 |
|
| 122 |
<P><B>New stuff</B> |
| 123 |
<UL> |
| 124 |
<LI><B>Column pull down menus:</B> columns in fmap are now displayed with a |
| 125 |
pull down menu at the top of each column signified by a small down pointing |
| 126 |
triangle. Pressing the right mouse button with the pointer over this triangle |
| 127 |
will display a menu of features that can toggled on/off for that column (overlap, |
| 128 |
bump, cluster etc). So its now possible to configure an fmap interactively |
| 129 |
via menus. |
| 130 |
<LI><B>No redraw on column selection:</B> Ian Dunham pointed out that it is moderately to |
| 131 |
very irritating that the entire fmap gets redrawn every time that you turn on/off |
| 132 |
a particular column. This is especially so if you want to turn off several columns |
| 133 |
and then see the fmap displayed. Well now you can do this, use the right button |
| 134 |
to display the main fmap menu and select the "No Automatic Redraw of Columns" item. |
| 135 |
Now you can turn on/off columns and fmap will not be redrawn. To get the fmap redrawn, |
| 136 |
again display the main fmap menu and select the "Recalculate" item. You can return |
| 137 |
to the automatic redrawing after every column selection by selecting the |
| 138 |
"Automatic Redraw of Columns" item from the main fmap menu. |
| 139 |
</UL> |
| 140 |
|
| 141 |
<P><B>Reminder</B> |
| 142 |
<UL> |
| 143 |
<LI><B>Preserve column settings:</B> fed up with turning on/off the same old settings |
| 144 |
each time you display an fmap ? Make sure you are running xace 4_8b or later and |
| 145 |
by default fmap will remember column settings so that they are retained with each |
| 146 |
new sequence displayed in the fmap window. |
| 147 |
</UL> |
| 148 |
|
| 149 |
|
| 150 |
<a name="NFS"></a><H3>NFS & acedb</H3> |
| 151 |
<P>From time to time there have been problems with database corruption that are not caused |
| 152 |
by bugs in acedb (no honestly its true...), they are caused by problems with NFS |
| 153 |
when the network is very heavily loaded. In normal use acedb cannot detect when |
| 154 |
NFS fails to write data to a disk because the network is jammed up, this can result |
| 155 |
in the database getting corrupted because only partial updates are performed or |
| 156 |
sometimes because NFS ends up writing NULL bytes (i.e. junk) into the database. |
| 157 |
|
| 158 |
<P>What can be done ? |
| 159 |
|
| 160 |
<P>As a user we recommend that you do not do updates to a database when the network is very slow (i.e. |
| 161 |
it takes perhaps a minute or more for xace and other programs to respond). As an administrator, if you |
| 162 |
notice that acedb applications have started crashing with a particular database |
| 163 |
and that this coincides with a period of network trouble you should suspect database |
| 164 |
corruption. |
| 165 |
|
| 166 |
<P>If updates have to be made and the network is giving trouble it is possible to |
| 167 |
set the database up so that NFS will signal acedb if a write to a disk fails, this has |
| 168 |
a severe performance penalty in that all updates take 5 to 10 times longer. |
| 169 |
It has the |
| 170 |
advantage that acedb will be able to detect and warn the user about updates that have |
| 171 |
failed. |
| 172 |
You should only resort to this if you absolutely have to update the database and the |
| 173 |
network is very bad. |
| 174 |
To set up the database for this you need to edit the file wspec/database.wrm |
| 175 |
and uncomment the "SYNC_WRITE" line (note that this only available from acedb 4_8c onwards) |
| 176 |
and restart any programs you want to access the database with. |
| 177 |
As soon as the network is stable you should |
| 178 |
comment out this line again otherwise performance will be very poor, especially with |
| 179 |
multiple users of the database. |
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
<a name="Bugs"></a><H2>Bugs</H2> |
| 184 |
|
| 185 |
<a name="version"></a><H3>What version of acedb am I using ?</H3> |
| 186 |
|
| 187 |
<P>Crucial to a bug report is for the developers to know what version of acedb you were |
| 188 |
using, but how do you find this out ? In Acedb 4_8c there are serveral ways to find out. |
| 189 |
|
| 190 |
<P>If you normally start your acedb program from some kind of menu |
| 191 |
(e.g. Carol Scotts program for accessing the human databases) then: |
| 192 |
|
| 193 |
<p><b>xace - the graphical program:</b> Usually the version you are |
| 194 |
using is displayed in the title bar of the |
| 195 |
main window (you will see something like "ACEDB 4_8c, current_database", where |
| 196 |
"current_database" is your working database, e.g. humace). |
| 197 |
If not, then click on the "Admin.." button in the main window, then click on "Program Status" |
| 198 |
in the popup window that appears, this will show a text window which shows the version at the |
| 199 |
top as "Program xace....." followed by "Using ACEDB 4_8c,....". |
| 200 |
|
| 201 |
<p><b>tace - the command line program:</b> At the <code>"acedb>"</code> prompt, |
| 202 |
type in <code>"status"</code> |
| 203 |
and tace will display current program status, at the top is the version information: |
| 204 |
<code>" // ACEDB 4_8c,....."</code>. |
| 205 |
|
| 206 |
|
| 207 |
<P>If you normally start your acedb program directly by typing <code>"xace"</code>, |
| 208 |
<code>"tace"</code> etc. then: |
| 209 |
|
| 210 |
<p>For any Acedb program (e.g. tace, xace, saceserver etc.) you can use the |
| 211 |
<code><b>"-version"</b></code> command line flag to see what version of code |
| 212 |
you are running: |
| 213 |
<pre> |
| 214 |
> xace -version |
| 215 |
ACEDB 4_8c compiled on: Apr 10 2000 12:07:51 |
| 216 |
> |
| 217 |
</pre> |
| 218 |
|
| 219 |
<p>If the program won't even run (so you can't use the <code><b>"-version"</b></code> |
| 220 |
option), you can use the unix <code><b>what</b></code> command like this: |
| 221 |
<pre><code> |
| 222 |
> what /your/path/to/the/program/xace |
| 223 |
/your/path/to/the/program/xace: |
| 224 |
|
| 225 |
------------------------------------------------------------------------ |
| 226 |
ACEDB 4.8c, compiled on: Apr 10 2000 12:07:51 |
| 227 |
Copyright (c): J Thierry-Mieg and R Durbin, 1998 |
| 228 |
|
| 229 |
(loads more stuff which you can ignore) |
| 230 |
|
| 231 |
> |
| 232 |
</code></pre> |
| 233 |
|
| 234 |
|
| 235 |
<a name="Debugging"></a><H3>Debugging - advanced users</H3> |
| 236 |
|
| 237 |
<P>tace is often used from scripts and this makes debugging of tace difficult because |
| 238 |
how do you start a debugger running against tace when its started perhaps by a nest |
| 239 |
of perl scripts ? |
| 240 |
|
| 241 |
<p>A simple technique for doing this is to put a <code>sleep()</code> call into tace |
| 242 |
so that the program will pause giving you enough time to attach a debugger (e.g. gdb, |
| 243 |
ddd etc.) to the process that the program is running in. You will find the debugger |
| 244 |
will show you tace paused at the <code>sleep()</code> call, you can then instruct |
| 245 |
the debugger to run until this call finishes and then stop. You can now step |
| 246 |
through the program in the debugger. |
| 247 |
|
| 248 |
<p>To help with this tace now has a <code><b>"-sleep"</b></code> command line flag |
| 249 |
which allows you to set a delay at the start of the tace <code>main()</code> function, |
| 250 |
e.g. to get tace to wait for 60 seconds: |
| 251 |
<pre> |
| 252 |
> tace -sleep 60 /my/database |
| 253 |
|
| 254 |
</pre> |
| 255 |
|
| 256 |
|
| 257 |
<H2>Next User Group Meeting - D213, 2.30pm, Thurs, 13th April</H2> |
| 258 |
|
| 259 |
<HR> |
| 260 |
<HR> |
| 261 |
|
| 262 |
<ADDRESS><A href="mailto:[email protected]">Ed Griffiths <[email protected]></A></ADDRESS> |
| 263 |
<!-- hhmts start --> |
| 264 |
Last modified: Mon May 21 15:35:43 BST 2001 |
| 265 |
<!-- hhmts end --> |
| 266 |
|
| 267 |
</BODY> |
| 268 |
</HTML> |