Debian Codegraph @

winfo/Newsletters/Year2001/October.html

raw
1 <HTML>
2
3 <HEAD>
4 <TITLE>ACEDB User Group Newsletter - October 2001</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 - October 2001</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
33 <P>A quiet month in preparation for the introduction of a major new facility for
34 constructing virtual sequences in acedb: Smap. This will be the subject of next
35 months newsletter when there will coverage of new code for putting together
36 DNA and the features on that DNA.
37
38 <P>There are some welcome additions to the way blixem can be run, both in terms
39 of speed and flexibility. There is also some new code for dumping just the CDS
40 parts of objects listed in the keyset window of xace.
41
42
43 <!-- ******************************************************************** -->
44 <P><hr width="62%" align=left>
45 <a name="New_Features"></a><H2>New Features</H2>
46
47 <a name="blixem"></a><H3>Running Blixem from xace: new options</H3>
48
49 <P>Previously, if you used blixem from within xace then you cannot failed
50 to have noticed that sometimes blixem takes a long time to retrieve the
51 sequences it wants and that during this time xace is effectively "frozen"
52 and you cannot do any work. In addition if blixem should crash for any reason
53 then xace crashes to.
54
55 <P>These problems are caused by two aspects of the way blixem is being run:
56
57 <ol>
58 <li>blixem makes a separate call to "efetch" for each sequence it needs and
59 although efetch is fast, starting it up many times is not.
60 <li>the blixem code is compiled in to xace to form a single program, hence
61 if blixem crashes so does xace.
62 </ol>
63
64 <P>Two new features have been added to address these problems:
65
66 <ol>
67 <li>blixem can now make a single call to a "pfetch" server to retrieve all
68 sequences it requires in one go. This is <b><i>much</i></b> faster.
69 <li>blixem can now be called as a separate program from within xace with the
70 result that:
71 <ul>
72 <li>you can continue to work with xace while waiting for blixem to
73 retrieve sequences and display the results.
74 <li>you can start up as many blixems as you want, you are not
75 restricted to one blixem per xace.
76 <li>if blixem crashes, xace will continue to run and you can
77 start a new blixem.
78 </ul>
79 </ol>
80
81
82
83 <P>You can control how blixem is run from the preferences menu, the following
84 preferences have been added:
85
86 <dl>
87 <dt><b>BLIXEM_EXTERNAL</b>
88 <dd>Select this option if you want blixem to be called as an external program.
89 <dt><b>BLIXEM_PFETCH</b>
90 <dd>Select this option if you want blixem to use "pfetch" instead of "efetch" to
91 obtain its sequences.
92
93 <P>You should then set the following preferences so that blixem can find
94 the pfetch server (you should contact your local pfetch administrator if
95 you don't know what values to use):
96 <dl>
97 <dt><b>BLIXEM_NETID</b>
98 <dd>Set this to either the dotted decimal, e.g. "999.9.99.99" or the
99 text form, e.g. "hal" of the network address of the server.
100 <dt><b>BLIXEM_PORT_NUMBER</b>
101 <dd>Set this to the port number that the pfetch server is listening on,
102 e.g. 2001
103 </dl>
104 </dl>
105
106 <P>Note that <b>BLIXEM_EXTERNAL</b> and <b>BLIXEM_PFETCH</b> can be set independently
107 to one another so you can have any combination of the two.
108
109 <P>If you are using blixem as a separate program and want to set it to use pfetch
110 then you can do this in two ways:
111
112 <dl>
113 <dt><b>environment variables</b>
114 <dd>You can use two environment variables to make blixem use pfetch:
115 <dl>
116 <dt><b>BLIXEM_PFETCH</b>
117 <dd>e.g. "setenv BLIXEM_PFETCH hal"
118 <dt><b>BLIXEM_PORT</b>
119 <dd>e.g. "setenv BLIXEM_PORT 2001"
120 </dl>
121 The examples assume you use csh.
122 <dt><b>command line options</b>
123 <dd>
124 <dl>
125 <dt><b>-P nodeid<:port></b>
126 <dd>You can specify the machine and port number with as an option to blixem,
127 e.g. <b>blixem -P hal:2001 rest_of_blixem_args</b>
128 </dl>
129 </dl>
130
131 <P>blixem will use the environment variables when run from xace as well, but you are
132 recommended to control blixems use of pfetch via the preferences menu.
133
134
135 <a name="cds_fasta"></a><H3>Dumping CDS from the Keyset window</H3>
136
137 <P>A new option has been added to dump just the CDS dna or corresponding
138 protein translation in FastA format from
139 a set of objects in the keyset window. From the "Export.." menu, select
140 "CDS DNA in Fasta format" or "CDS Protein in Fasta format". If an object
141 in the window does not contain the CDS tag then nothing will be dumped for that object.
142
143
144 <a name="fmap_coords"></a><H3>Fmap cursor coordinates</H3>
145
146 <P>Fmap now displays cursor co-ords during middle-button drag.
147
148
149 <!-- ******************************************************************** -->
150 <P><hr width="62%" align=left>
151 <a name="Bugs_Fixed"></a><H2>Bugs Fixed</H2>
152
153 <a name="dotter_fix"></a><H3>Dotter bug fixed</H3>
154
155 <P>A small buglet in dotter is fixed: re-draw HSP lines after changing grey-ramp.
156
157
158 <!-- ******************************************************************** -->
159 <P><hr width="62%" align=left>
160 <a name="Developers_Corner"></a><H2>Developers Corner</H2>
161
162 <P>If you wish to make comments/suggestions about any of the below, please mail them
163 to <A HREF="mailto:[email protected]">[email protected]</A>
164
165
166 <a name="aceio_tmp"></a><H3>New routines for the aceTmp package</H3>
167
168 <P>Some new routines/options have been added to the aceTmp package:
169
170 <dl>
171 <dt><b>aceTmpCreateDir()</b>
172 <dd>Creates a directory and then creates a temporary file within that directory, this
173 makes it more convenient to put all temporary files of a particular type
174 into a single subdirectory of <b>/tmp</b> for instance.
175 <dt><b>aceTmpNoRemove()</b>
176 <dd>By default aceTmp removes any temporary files that it creates, this is not always
177 desireable, so you can use this call to stop file removal. It is of course then
178 your responsibility to remove the file, you can use the unix "<b>unlink</b>" call to
179 do this:
180 <pre> char *tmpfile_name ;
181 ACETMP tmpfile ;
182
183 tmpfile = aceTmpCreate( args ) ;
184
185 tmpfile_name = aceTmpGetFileName(tmpfile) ;
186 aceTmpNoRemove(tmpfile) ;
187
188 /* some time later */
189 unlink(tmpfile_name) ;
190 </pre>
191 </dl>
192
193
194 <a name="bindexfind_stuff"></a><H3>Some comments about the use of bIndexFind()</H3>
195
196 <P>(<I>Thanks to Jean Thierry-Mieg for his comments</I>
197 <A HREF="mailto:[email protected]">[email protected]</A>)
198
199 <P>There have been a number of emails about bIndexFind() recently and it's
200 probably good to summarise some of these:
201
202 <p>bIndexFind() was designed to speed up queries by referencing an in memory
203 table to determine whether an object contains a particular tag, rather than
204 reading the object in, opening it and searching for the tag. The speed up is
205 enormous.
206
207 <P>So what's the problem ? The main problem is that bIndexFind() <b>does not</b> simply
208 return a boolean, i.e. TRUE if it can find the tag in the index, FALSE if not. The
209 call returns one of three possible values:
210 <dl>
211 <dt><b>BINDEX_TAG_ABSENT (= 0)</b>
212 <dd>The tag is absent from the index.
213 <dt><b>BINDEX_TAG_UNCLEAR (= 1)</b>
214 <dd>Currently this can be returned for a whole host of reasons: the index is not up to date,
215 bindex package has not been initialised, the supplied key is a protected class or
216 is not a B object or, well quite a few other factors really (see below for more
217 on this).
218 <dt><b>BINDEX_TAG_PRESENT (= 2)</b>
219 <dd>The tag is present in the index.
220 </dl>
221
222 <p>This means that it is not safe to write code like this assuming that because you
223 have entered the "if" clause all is OK:
224
225 <pre><code>if (bIndexFind (obj, tag))
226 {
227 some actions....
228 }
229 </code></pre>
230
231 <P>this can fail because bIndexFind() may return <b>BINDEX_TAG_UNCLEAR</b>.
232
233 <P>Safer is to use two functions written by Jean which handle the
234 bIndexFind() return values:
235
236 <pre><code><b>KEY keyGetKey(KEY key, KEY tag) ;
237 BOOL keyFindTag(KEY key, KEY tag) ;
238 </b></code></pre>
239
240 <P>These use the index where possible and only open the object if necessary.
241
242 <P>It is also safe to use bIndexFind() to speed up operations in some circumstances,
243 e.g. If you were going to do this:
244
245 <pre><code><b>if ((obj = bsCreate())
246 {
247 if (bsGetData (obj,tag,...))
248 { ... }
249 bsDestroy (obj) ;
250 }
251 </b></code></pre>
252
253 <P>you could instead do this:
254
255 <pre><code><b>if ((bIndexFind(obj, tag) != BINDEX_TAG_ABSENT) && (obj = bsCreate())
256 {
257 if (bsGetData (obj,tag,...))
258 { ... }
259 bsDestroy (obj) ;
260 }
261 </b></code></pre>
262
263 <P>the latter is faster if the tag is <b>not</b> found in the index because the
264 object does not need to be opened, and it's safe because otherwise we then go on
265 to open the object and look for the tag anyway.
266
267 <P>Currently bIndexFind() returns <b>BINDEX_TAG_UNCLEAR</b> for a number of conditions
268 which are likely to be coding errors, we should consider messcrashing for these
269 instead, e.g. if the index has not been initialised, trying to find a tag with a value
270 less than "_Date" and maybe others. Send any thoughts on this to:
271 <A HREF="mailto:[email protected]">[email protected]</A>
272
273
274
275 <!-- ******************************************************************** -->
276 <P><hr width="62%" align=left>
277 <H2>October monthly build now available.</H2>
278
279 <P>You can pick up the monthly builds from:
280 <dl>
281 <dt><b>Sanger users</b>
282 <dd>~acedb/RELEASE.DEVELOPMENT
283 <dt><b>External users</b>
284 <dd><A href="http://www.acedb.org/Software/Downloads/monthly.shtml">
285 http://www.acedb.org/Software/Downloads/monthly.shtml</A>
286 </dl>
287
288 <!-- ******************************************************************** -->
289 <P><hr width="62%" align=left>
290 <H2>Next User Group Meeting - D319, 2.30pm, Thursday, 18th October 2001</H2>
291
292 <!-- ******************************************************************** -->
293 <HR>
294 <HR>
295
296 <ADDRESS><A href="mailto:[email protected]">Ed Griffiths &lt;[email protected]&gt;</A></ADDRESS>
297 <!-- hhmts start -->
298 Last modified: Mon Nov 12 15:08:34 GMT 2001
299 <!-- hhmts end -->
300
301 </BODY>
302 </HTML>