Debian Codegraph @

winfo/Newsletters/Year2003/September.html

raw
1 <HTML>
2
3 <HEAD>
4 <TITLE>ACEDB User Group Newsletter - September 2003</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 - September 2003</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><hr width="62%" align=left>
35
36 <P>This month sees a change in the acedb staff at Sanger which will have
37 some ramifications, a windows package of blixem and dotter, an article
38 on text searching in acedb and a number of bug fixes.
39
40
41 <!-- ******************************************************************** -->
42 <P><hr width="62%" align=left>
43 <a name="General_News"></a><H2>General News</H2>
44
45 <P>A month of change for Acedb at the Sanger Institute.
46
47 <P>Simon Kelley, who has been
48 a stalwart of acedb development for years, is to move on to pastures new working
49 in the systems group here at Sanger.
50
51 <P>Simon has been responsible for a lot of very important acedb features over
52 the years including the genetic map display and many which, being internal to acedb, have probably passed most
53 people by. He has been the solver of many horrible bugs and introduced many good things,
54 not least the move to using the Cygwin/GTK libraries which have enabled us
55 to port acedb to Windows and the Mac in a sustainable way and use a more modern graphics
56 system. He will be sorely missed.
57
58 <P>Good luck in the new job Simon !
59
60 <P><I>(Please see <A HREF="#acedb_future">"The Future of acedb"</A>
61 for a discussion of what this all means for acedb support and development.)</I>
62
63
64 <!-- ******************************************************************** -->
65 <P><hr width="62%" align=left>
66 <a name="New_Features"></a><H2>New Features</H2>
67
68
69 <a name="blixem_dotter"></a><H3>Blixem/Dotter for Windows</H3>
70
71 <P>As a parting shot at Windows support Rob Clack has made a download
72 package for blixem and dotter. You can grab these stand alone
73 binaries (i.e. they are independent of acedb) from our
74 <A HREF="http://www.acedb.org/Software/Downloads/">downloads page</A>.
75
76
77
78 <a name="make_trouble"></a><H3>Troubles with "make"</H3>
79
80 <P>If you build your own acedb then you should probably read this.
81
82 <P>Our makefile creates a subdirectory named <b>"bin.XXXXX"</b> where <b>"XXXXX"</b>
83 is a name representing your machine architecture. In this directory it
84 makes symbolic links to all the source files to be compiled in the <b>w*</b>
85 directories. There is a problem with this though in that some versions
86 of <b>"ln"</b> (the command to create the link) support overwriting an existing
87 link while others do not.
88
89 <P>To fix this we put a test into the makefiles:
90
91 <P>test -L xxx.c || ln -s ../wXXXX/xxx.c .
92
93 <P>i.e. if the link doesn't exist then make it.
94
95 <P>Unfortunately some versions of the sh shell don't support this use
96 of "test", you can't win can you...sigh.
97
98 <P>Now you can set the make macro <b>$(TEST)</b> in your <b>XXXXX_DEF</b> file
99 to a version on your system that will support this and the makefile will work, e.g.
100
101 TEST = /bin/test
102
103 <P>and hey presto it should all work.
104
105
106 <!-- ******************************************************************** -->
107 <P><hr width="62%" align=left>
108 <a name="Articles"></a><H2>Articles</H2>
109
110 <a name="acedb_future"></a><H3>The future of acedb</H3>
111
112 <P>Owing to the current financial climate it is not anticipated that Simon will
113 be replaced in the foreseeable future, this means that there will have to be some
114 changes in what the acedb team at Sanger can do in the way of support, bug fixing
115 and development.
116
117 <P>After some dicussion we have decided to press ahead with the development of
118 the new Zmap display which will in effect be a client-server version of the FMap. There
119 are a number of reasons for doing this and there will be more discussion in the
120 newsletters as we continue this work.
121
122 <P>Clearly in order that we can do new development there must be some cuts in
123 support and development of existing code. We have decided to essentially freeze
124 our core acedb development and are currently finishing off existing "work in
125 progress" before Simon leaves.
126
127 <P>In more detail the implications of this are:
128
129 <ul>
130 <li><b>Builds:</b>
131 <ul>
132 <li>Windows support will be dropped with no more Windows builds from
133 this month.
134 <li>Un*x and Mac builds will continue.
135 <li>Builds will be done as and when new features are added or bugs fixed,
136 there will no longer be the monthly build cycle.
137 </ul>
138 <li><b>Support:</b>
139 <ul>
140 <li>Newsletters will only appear when there is something to say.
141 <li>User group meetings here at Sanger will be when users need to
142 discuss a bug or request new features or when we need to tell
143 users about new code/features/fixes.
144 <li>We will continue to try to respond to users questions in the newsgroup
145 and via emails.
146 </ul>
147 <li><b>Bug fixes:</b>
148 <ul>
149 <li>will be when necessary or time allows.
150 </ul>
151 <li><b>Acedb core development:</b>
152 <ul>
153 <li>All development that is not related to the new display will have to be agreed
154 in advance.
155 </ul>
156 </ul>
157
158 <P>This probably all sounds a bit draconian and bleak but realistically we had more
159 than we could possibly manage with 3 of us and with 2 of us this will be even more
160 so. The choice is really between making progress or falling into a purely bug-fixing
161 support role.
162
163
164
165 <a name="Text_search"></a><H3>Searching text in acedb</H3>
166
167 <P>(<I>This article is courtesy of Jean Thierry-Mieg</I>
168 <A HREF="mailto:[email protected]">[email protected]</A>)
169
170
171
172 <P>A recent user question was:
173
174 <blockquote>
175 <p>Do you know how to query LongText?
176
177 <p>It seem in the old versions of xace you can do TextSearch or Grep. You
178 can still do it now.
179
180 <p>Once you have stored LongText away in the database, then it is hard to
181 query it.
182
183 <p><code><b>select l from l in class longText</b></code> will return all the keys for LongText.
184
185 <p>Is there a way to say
186
187 <p><code><b>where l->content_of_longtext like "*my favorite word*"</b></code>
188 or something like this ?
189 </blockquote>
190
191 <P>Jeans has written this reply which deals generally with querying text in acedb
192 as well as with longtext specifically:
193
194
195 <P><b>Text entry and text searches in acedb</b>
196
197 <P>Acedb has 3 types of text fields
198
199 <P><pre><code>Text
200 ?Text
201 Longtext
202 </code></pre>
203
204 <P>None of these are limited in size, the daily aquila regression test reads and writes
205 Text of 1 megabyte in a length.
206
207 <P>The difference is in the way they are stored (the cost in memory)
208 the way they are searched and the way they are read in and out, to give an example:
209
210
211 <P><b>1) Schema</b>
212
213 <P>here is a minimal schema with the 3 types
214
215 <pre><code>?Paper Title ?Text
216 Citation Text
217 Abstract ?LongText
218 </code></pre>
219
220
221 <P><b>2) Here is a corresponding ace file</b>
222
223 <pre><code>Paper p1
224 Citation "PSWC, 1980, vol 12 pp 30-40"
225 Title "About the hidden face of the moon"
226 Abstract p1
227
228 LongText p1
229 The moon
230 always shows
231 the same face...
232 ***LongTextEnd***
233 </code></pre>
234
235 <P>Notice that there is no difference between entering a Text and
236 a ?Text. If you dump all papers, remove all citations, read
237 a new model where Citation is declared as ?Text and parse the
238 exact ace file you have just dumped, all citations will be promoted
239 from Text to ?Text.
240
241 <P><b>3) Memory cost</b>
242
243 <P>The Text entry are stored on disk, inside the object they belong to. They cost
244 nothing.
245
246 <P>The ?Text entries are constantly in RAM. Typically, they define the largest
247 dictionary in an acedb database. The size is given in the graphic interface by
248 going to status, then the submenu "number of object per class". To spend 10 to
249 100 Mb on that distionary is probably perfectly ok, depending on your machine.
250 Another important cost is that a ?Text is cross referenced in to all the objects
251 it belongs to. However acedb slows has linear algorithms and deep recursive
252 calls associated to the XREF system. It is therefore costly to XREF over a few
253 hundred objects, very costly over say 5000. Therefore, you must really avoid to
254 enter in ?Text some sentence shared by thousands of objects. The same is true of
255 any other objects. For example, consider the RNAi experiemnts. Well over 10,000
256 genes have been tested. About half have a special phenotype, you can store that
257 as a ?Text, but for the other half it is much preferable to have a special tag
258 called "No_RNAi_phenotype" then to enter those same words as a ?Text pointing
259 back to 5000 genes.
260
261 <P>?LongText is stored on disk as an independant object but point only to its
262 parent. The cost in RAM is the name of the LongText, not its content.
263
264 <P><b>4) Querying</b>
265
266 <P>There is always a trade of. The high cost of the ?Text is compensated by the
267 ease of querying. The following queries will work:
268
269 <pre><code>query find paper Title = *moon*
270
271 query find paper Citation = *PSWC*
272 </code></pre>
273
274 <P>There is no difference in syntax or in speed between these 2 queries, the speed
275 is linear in the number of papers containing the relevant Tag. Each paper has to
276 be retreived from disk, so the whole search may be slow. However, for ?Text you
277 may also use
278
279 <pre><code>query grep *moon*
280 grep moon
281 </code></pre>
282
283
284 <P>This query is solved completelly in RAM, so it will be quasi instantaneous. A
285 contrario 'grep *PSWC*' will not work. Finally, longtext may only be queried
286 using the xace graphic long search button or the tace command:
287
288 <pre><code>LongGrep "same face"
289 Longgrep moon
290 </code></pre>
291
292 This search is linear in the number of LongText entries, one disk access per
293 LongText. Notice that "query longgrep " does not work, longrep must be issued at
294 the tace prompt, and that Longgrep retrieves ?LongText and ?Text but not Text.
295
296
297 <P><b>Conclusion.</b>
298
299 <P>Use Text for things which amy be very repetitive or which do not have to be
300 searched out of context. Use ?Text if you wish to use that text as an entry
301 point, without knowing the exact class and tag where it is located, or if you
302 wish great speed of access. Use ?LongText for abstarcts.
303
304 <P>We know that the whole system is confusing. In the draft version of acedb.5,
305 we have had for several years a system that no longer slows down on very large
306 Text, or on very large XREF, and we are working on direct indexing of LongText.
307 But for the moment, things work are described above.
308
309
310 <P><b>More on Querying longText</b>
311
312 <P>In acedb, paper abstracts and other long documents are
313 stored in a special class called LongText. You can list
314 all those objects by using the query
315
316 <pre><code>Find longtext
317 </code></pre>
318
319 <P>either from xace or from tace.
320 This may be usefull to create a .ace file, but otherwise
321 it is not very informative, since you just get the
322 identifiers.
323
324 <P>However, it is also possible to search them by content.
325 From the xace interface, type some words in the main window
326 and select 'even in longtext'. For example, typing the words
327 'binding proteins' should bring back several papers containing
328 these exact words in their abstract. Typing 'binding*hairpin'
329 may bring back pubmed 9049306, if you have that abstract
330 in your database, because the * allows to find these 2 words
331 although they are not contiguous, but are in this order.
332
333 <P>The same list can be found in tace by the command longrep, which
334 is described in the command help:
335
336
337 <pre><code>acedb> ? // lists all commands
338 acedb> ? longgrep // to get help on longgrep
339
340 LongGrep template : searches for *template* also in LongTexts
341
342
343 acedb> longgrep protein*hairpin
344 // I search for texts or object names matching *protein*hairpin*
345
346 // Found 1 object
347 // 1 Active Object
348 acedb> list
349
350 KeySet : Answer_1
351
352
353
354
355 Paper:
356 pm9049306
357 // 1 object listed
358 // 1 Active Objects
359 </code></pre>
360
361
362 <P>CAVEAT: in tace, after longgrep, do not use "" and do not add terminal white
363 spaces
364 unless you mean it.
365
366 <P>HORRIBLE LIMITATION: longrep explores the longtexts and moves back to the parent
367 paper with the same identifier. It would be much better if it could move back to
368 the parent object of any type of longtext, not just abstract, and even if the
369 names differ.
370
371 <P>A much more complete text indexing system is in developement. It is driving
372 the query system of AceView (http://www.humangenes.org), but for the
373 moment it is schema specific. Since it is wonderfully fast, I hope someday
374 to make it general and synchrone. The current implementation needs
375 of line recalculation if the database is edited.
376
377
378 <!-- ******************************************************************** -->
379 <P><hr width="62%" align=left>
380 <a name="Bugs_Fixed"></a><H2>Bugs Fixed</H2>
381
382
383 <a name="dna_highlight"></a><H3>DNA highlighting lost in FMap</H3>
384
385 <P>A perplexing and bamboozling bug, sometimes the highlighting of the DNA
386 sequence in FMap just stopped working. This is now fixed.
387
388
389 <a name="reverse_complement"></a><H3>Reusing an FMap and reverse-complementing</H3>
390
391 <P>If the FMap code reused an existing FMap display and the old display was reverse-complemented,
392 but the new object to be displayed was on the reverse strand, then the display needed to be
393 flipped back from reverse complement mode.
394
395
396 <a name="no_display"></a><H3>No_display tag in Method class</H3>
397
398 <P>The Method class has two main uses in acedb, to provide options for displaying
399 and for dumping any objects that reference that Method. To this end it is
400 sometimes useful to specify that an object should never be displayed (although it
401 may be dumped). After a request from Wormbase, the code has been around for some years
402 to implement this but ironically the tag that controls this behaviour has been missing
403 from our canonical models.wrm file that we distribute with acedb.
404
405 <P>You need to update your Method class like this:
406
407 <pre><code>?Method Remark ?Text
408 // the Display information controls how the column looks.
409 Display No_display // column is not displayed at all.
410 Colour #Colour
411 etc. etc.
412 </code></pre>
413
414
415 <!-- ******************************************************************** -->
416 <P><hr width="62%" align=left>
417 <a name="Developers_Corner"></a><H2>Developers Corner</H2>
418
419
420 <a name="vtxt"></a><H3>New vtxt functions</H3>
421
422 <P>(<I>This article is courtesy of Jean Thierry-Mieg</I>
423 <A HREF="mailto:[email protected]">[email protected]</A>)
424
425 <P>vtxt library is very convenient for preparing
426 complex text documents
427 it is simply a nice wrapper for printf to
428 an elastic string buffer and getting the
429 result data out of it
430
431 <P>it ressembles aceOut a bit has a different purpose
432 and is not a duplicate, at least i think it is not !
433
434
435 <!-- ******************************************************************** -->
436 <P><hr width="62%" align=left>
437 <a name="Monthly_Build"><H2>September monthly build now available.</H2>
438
439 <P>You can pick up the monthly builds from:
440 <dl>
441 <dt><b>Sanger users</b>
442 <dd>~acedb/RELEASE.DEVELOPMENT
443 <dt><b>External users</b>
444 <dd><A href="http://www.acedb.org/Software/Downloads/monthly.shtml">
445 http://www.acedb.org/Software/Downloads/monthly.shtml</A>
446 </dl>
447
448 <!-- ******************************************************************** -->
449 <P><hr width="62%" align=left>
450 <a name="User_Group"><H2>Next User Group Meeting - D319, 3.00pm, Thursday, 9th October 2003</H2>
451
452 <!-- ******************************************************************** -->
453 <HR>
454 <HR>
455
456 <ADDRESS><A href="mailto:[email protected]">Ed Griffiths &lt;[email protected]&gt;</A></ADDRESS>
457 <!-- hhmts start -->
458 Last modified: Fri Oct 24 08:23:16 BST 2003
459 <!-- hhmts end -->
460
461 </BODY>
462 </HTML>