| 1 |
<HTML> |
| 2 |
|
| 3 |
<HEAD> |
| 4 |
<TITLE>ACEDB User Group Newsletter - March 2002</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 |
<a name="Top"></a> |
| 19 |
|
| 20 |
<H1>ACEDB User Group Newsletter - March 2002</H1> |
| 21 |
|
| 22 |
|
| 23 |
<!-- ******************************************************************** --> |
| 24 |
<P>If you want to have this newsletter mailed to you <B>or</B> you want to |
| 25 |
make comments/suggestions about the format/content then |
| 26 |
send an email to <A HREF="mailto:[email protected]">[email protected]</A>. |
| 27 |
|
| 28 |
|
| 29 |
<!-- ******************************************************************** --> |
| 30 |
<P><hr width="62%" align=left> |
| 31 |
<a name="General_News"></a><H2>General News</H2> |
| 32 |
|
| 33 |
This months sees a new package for accessing the socket server using the C programming |
| 34 |
language, also a new Java package for the same purpose. Otherwise it has been a month |
| 35 |
of bug fixes and more work on the new smap code. |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
<!-- ******************************************************************** --> |
| 40 |
<P><hr width="62%" align=left> |
| 41 |
<a name="New_Features"></a><H2>New Features</H2> |
| 42 |
|
| 43 |
<a name="AceConn"></a><H3>AceConn a C package for accessing the Socket Server.</H3> |
| 44 |
|
| 45 |
<P>Previously there were the following ways to access the socket server: |
| 46 |
|
| 47 |
<ul> |
| 48 |
<li><b>saceclient:</b> a command line based program that could be driven by scripts. |
| 49 |
<li><b>AcePerl:</b> perl package interfacing directly to the socket server. |
| 50 |
<li><b>BioJava:</b> contains a package interfacing directly to the socket server |
| 51 |
(but also see <A HREF="#Java_package">next article</A>). |
| 52 |
<li><b>BioPython:</b> contains a package interfacing directly to the socket server. |
| 53 |
</dl> |
| 54 |
|
| 55 |
<P>There was no package for a client written in C to interface to the server. |
| 56 |
|
| 57 |
<P>This gap has now been filled with a new package called AceConn. This is a small library of |
| 58 |
C routines enabling a C based client to interface to the server. The main components |
| 59 |
of the interface are: |
| 60 |
|
| 61 |
<dl> |
| 62 |
<dt><b>AceConnCreate():</b> |
| 63 |
<dd>creates the initial connection structure which is the handle for all subsequent |
| 64 |
calls to the package routines. |
| 65 |
<dt><b>AceConnConnect():</b> |
| 66 |
<dd>makes the intial connection to the server doing all the necessary hand shaking, |
| 67 |
if this call succeeds then the client can start sending requests. |
| 68 |
<dt><b>AceConnRequest():</b> |
| 69 |
<dd>Sends a request to the server and returns the reply. |
| 70 |
<dt><b>AceConnDisconnect():</b> |
| 71 |
<dd>terminates the connection to the server doing all the necessary handshaking. |
| 72 |
<dt><b>AceConnDestroy():</b> |
| 73 |
<dd>Frees the connection allocated by AceConnCreate(). |
| 74 |
</dl> |
| 75 |
|
| 76 |
<P>The interface sends text commands just as the user would type in when using saceclient |
| 77 |
and then returns the reply from the server in a buffer. Usually this reply is text but it could |
| 78 |
be an image as produced by some of the gif subcommands. The client must parse the returned data |
| 79 |
itself. |
| 80 |
|
| 81 |
<P>Each request will wait for a client specified number of seconds before timing out. |
| 82 |
The timeout may be set to zero for the client never to timeout, or negative to reset |
| 83 |
to the default timeout (120 seconds). This allows the client code to retain |
| 84 |
control of how long it remains blocked waiting for a request. |
| 85 |
|
| 86 |
<P>If a client makes a request that produces a very large reply, the server returns |
| 87 |
the reply in slices so that other requests from other clients can also be processed. |
| 88 |
The AceConnRequest() call automatically batches up these requests into a single reply. |
| 89 |
While this is convenient you should be aware that this can lead to the client |
| 90 |
using up considerable amounts of memory for large requests. |
| 91 |
|
| 92 |
<P>You can see further documentation by downloading the |
| 93 |
<A HREF="http://www.acedb.org/Software/Downloads/extras.shtml">Ace-Conn package</A> |
| 94 |
from the acedb website. |
| 95 |
|
| 96 |
|
| 97 |
<a name="Java_package"></a><H3>A useful new Java package for accessing the socket server.</H3> |
| 98 |
|
| 99 |
<P>Kemin Zhou formerly of Affymetrix has contributed a Java package for accessing data |
| 100 |
from the socket server. You can download the package from the |
| 101 |
acedb web site: |
| 102 |
<A HREF="http://www.acedb.org/Software/Downloads/extras.shtml">Java-Zhou package</A> |
| 103 |
|
| 104 |
<P>Kemin's description: |
| 105 |
|
| 106 |
<P>"This simple package is meant to give a basic interface to ACEDB. |
| 107 |
You can view the documentation with webbrowser |
| 108 |
|
| 109 |
<P>Type netscape index.html then you are there. |
| 110 |
|
| 111 |
<P>You need to put the acedb directory in your CLASSPATH |
| 112 |
Or just use the ace.jar file. |
| 113 |
In you java program say import acedb.*; |
| 114 |
|
| 115 |
<P>You have to set up your own Acedb and Saceserver, that is not |
| 116 |
difficult. |
| 117 |
|
| 118 |
<P>This package is to be used by programers who knows both |
| 119 |
Java and ACEDB." |
| 120 |
|
| 121 |
|
| 122 |
<!-- ******************************************************************** --> |
| 123 |
<P><hr width="62%" align=left> |
| 124 |
<a name="Bugs_Fixed"></a><H2>Bugs Fixed</H2> |
| 125 |
|
| 126 |
<a name="read_models"></a><H3>No "read models" in client/server interface.</H3> |
| 127 |
|
| 128 |
<P>It is not possible to use the "readmodels" command from the client. |
| 129 |
The client/server interface does not support the level of interaction |
| 130 |
required for this operation currently. |
| 131 |
|
| 132 |
<a name="init_db"></a><H3>Missing test for "wspec/database.wrm" at initialisation.</H3> |
| 133 |
|
| 134 |
<P>The code did not explicitly test for the system file "wspec/database.wrm" with the |
| 135 |
result that an obscure error message was displayed some way into program initialisation. |
| 136 |
Now if the file is missing an error message issued and the program exits. |
| 137 |
|
| 138 |
<a name="print"></a><H3>Fixed hard to reproduce bug in print dialog</H3> |
| 139 |
|
| 140 |
<P>Acedb sometimes hung when the print dialog was displayed, this is now |
| 141 |
fixed. |
| 142 |
|
| 143 |
<a name="dna_display"></a><H3>Old bug in fmap dna display.</H3> |
| 144 |
|
| 145 |
<P>An obscure bug in the display of dna within the fmap meant that if you |
| 146 |
zoomed in until there should be just two bases per line, only one was shown ! |
| 147 |
This is now fixed. |
| 148 |
|
| 149 |
|
| 150 |
<!-- ******************************************************************** --> |
| 151 |
<P><hr width="62%" align=left> |
| 152 |
<H2>March monthly build not available.</H2> |
| 153 |
|
| 154 |
<P>Apologies, once again there was no build this month due to the major |
| 155 |
SMap development work. |
| 156 |
|
| 157 |
|
| 158 |
<!-- ******************************************************************** --> |
| 159 |
<HR> |
| 160 |
<HR> |
| 161 |
|
| 162 |
<ADDRESS><A href="mailto:[email protected]">Ed Griffiths <[email protected]></A></ADDRESS> |
| 163 |
<!-- hhmts start --> |
| 164 |
Last modified: Mon Nov 11 08:59:59 GMT 2002 |
| 165 |
<!-- hhmts end --> |
| 166 |
|
| 167 |
</BODY> |
| 168 |
</HTML> |