Debian Codegraph @

winfo/Newsletters/Year2003/April.html

raw
1 <HTML>
2
3 <HEAD>
4 <TITLE>ACEDB User Group Newsletter - April 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 - April 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 <P>This month sees praise for AceDB from the Worm Advisory board, support for
36 alternative genetic codes, better searching in the Tree window, a tightening up
37 of GFF output, using the server with xinetd, some bug fixes and the usual
38 nerdy stuff for developers.
39
40
41 <!-- ******************************************************************** -->
42 <P><hr width="62%" align=left>
43 <a name="General_News"></a><H2>General News</H2>
44
45
46 <a name="Acedb_worm"></a><H3>AceDB powers the worm...or something like that...</H3>
47
48
49 <P>AceDB received praise and support from the Wormbase Advisory Board report for 2003
50 which included the following paragraph:
51
52 <pre><quote> SUMMARY REPORT FROM THE WORMBASE ADVISORY BOARD 2003
53
54 2. The advisory committee wishes to emphasize that WormBase's use of
55 ACEDB as an integration and content delivery database is serving the
56 project very effectively, and has been an important factor in enabling
57 the project to achieve its impressive two-week data updating cycle. We
58 make this point because this has been an issue of some controversy in
59 the past, with some critics arguing that ACEDB is too ad hoc, or
60 insufficiently robust, or cannot meet the performance demands of a
61 production system. In point of fact ACEDB's performance on common
62 bioinformatically important operations, notably retrieval of complex
63 structured objects, is significantly faster than commercial R-DBMSs,
64 while the ACEDB data model has become an object of formal study by
65 database researchers who see in it valuable ideas for a new kind of
66 DBMS (Ref 1). The success of the 2-week updating process shows that
67 robustness has not been a problem. Furthermore ACEDB now comprises
68 several person-decades of programming investment in
69 bioinformatics-specific viewing and analysis capabilities which a
70 generic DBMS alone could not replace. In summary, the committee feels
71 strongly that the principle of not fixing what ain't broke should
72 apply in this case.
73 </quote></pre>
74
75 <P>Well done to the AceDB developers and the Wormbase group.
76
77
78 <!-- ******************************************************************** -->
79 <P><hr width="62%" align=left>
80 <a name="New_Features"></a><H2>New Features</H2>
81
82
83 <a name="fmap_shortcuts"></a><H3>DNA FMap keyboard shortcut</H3>
84
85 <P>Yet another FMap shortcut key, you can use the "d" key to toggle the DNA display
86 on/off.
87
88
89
90 <a name="genetic_code"></a><H3>AceDB now supports different genetic codes</H3>
91
92 <P>(<I>Thanks to Jean Thierry-Mieg <A HREF="mailto:[email protected]">[email protected]</A>
93 who did the original coding for this new feature.</I>)
94
95 <P>Up until now AceDB has only used the standard genetic code meaning that you could not
96 do translations of sections of dna that used a different code e.g. mitochondrial dna.
97 You can now specify your own genetic code for any dna in AceDB.
98
99 <P>Alternative genetic codes can be specified using the new <b>Genetic_code</b> class:
100
101 <pre><code>?Genetic_code Other_name ?Text
102 Translation UNIQUE Text
103 Start UNIQUE Text
104 Base1 UNIQUE Text
105 Base2 UNIQUE Text
106 Base3 UNIQUE Text
107 </code></pre>
108
109 <P>Here's how you might include it in your Sequence class:
110
111 <pre><code>?Sequence DNA UNIQUE ?DNA UNIQUE Int
112 .
113 .
114 .
115 Origin From_database UNIQUE ?Database UNIQUE Int
116 From_author ?Author XREF Sequence
117 .
118 .
119 .
120 Species ?Species
121 Genetic_code UNIQUE ?Genetic_code // specify a different genetic coding.
122 Method UNIQUE ?Method UNIQUE Float
123 </code></pre>
124
125
126 <P>Here's an example in ace file format:
127
128 <pre><code>Genetic_code : "Ascidian Mitochondrial"
129 Translation "FFLLSSSSYY**CCWWLLLLPPPPHHQQRRRRIIMMTTTTNNKKSSGGVVVVAAAADDEEGGGG"
130 Start "-----------------------------------M----------------------------"
131 Base1 "TTTTTTTTTTTTTTTTCCCCCCCCCCCCCCCCAAAAAAAAAAAAAAAAGGGGGGGGGGGGGGGG"
132 Base2 "TTTTCCCCAAAAGGGGTTTTCCCCAAAAGGGGTTTTCCCCAAAAGGGGTTTTCCCCAAAAGGGG"
133 Base3 "TCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAG"
134
135
136 Sequence : "MTCE"
137 DNA MTCE
138 Genetic_code "Ascidian Mitochondrial"
139 </code></pre>
140
141 <P>If you displayed this sequence in FMap, then when you used any of the FMap functions that
142 translate the MTCE's DNA, the translation would be done using the genetic code specified
143 by the "Ascidian Mitochondrial" object.
144
145 <P>If you don't specify the code, then the standard genetic code will be used (i.e.
146 the code that AceDB has used up until now).
147
148 <P>If you use the old Source/Subsequence or the new SMap tags to create a hierachy of
149 perhaps <b>"transcripts -&gt; genes -&gt; clones -&gt; chromosome"</b> for your sequence
150 and the sequence requires an alternative genetic code, then to make biological sense
151 you should specify just one alternative genetic code for the whole hierachy. It may be
152 sensible however to specify it in more than one place in the hierachy: you would
153 certainly want to specify it in the sequence object that contained the actual dna so that
154 you could sucessfully export that object with all its neighbours from AceDB, but
155 you should also specify it in the topmost parent of the entire hierachy. This is because
156 when translating the dna for any subpart of the hierachy, AceDB looks up through all the successive
157 parents of that subpart for the alternative genetic code. Hence if you also specify the alternative
158 genetic code at the highest level then all translations of objects within the hierachy
159 will be guaranteed to use the correct code.
160
161
162 <a name="tree_search"></a><H3>Improved text search in tree display</H3>
163
164 <P>You can now search for just about anything in the tree display window: tags, text,
165 numbers. It doesn't matter whether the search target is hidden (i.e. in a collapsed
166 branch of the tree display) or whether you are in "Update" mode, you can still search.
167
168 <P>You can search either by selecting the "Find" button in the tree display main
169 menu or use the shortcuts:
170
171 <P><pre><code>
172 Ctrl "f","b" "f" to search forward, "b" to search backwards
173
174 Ctrl ",", "." "," to find the previous occurrence of the target,
175 "." to find the next occurrence.
176 </code></pre>
177
178 <P>(For previous you can press either the "," key or the "<" key
179 and for next you can press the "." key or the ">" key, its just more convenient
180 to press the "," and "." keys because you don't have to press shift first.)
181
182 <P>Note the following:
183 <ul>
184 <li>If the target can't be found you get a message.
185 <li>When the search reaches the end of the object you get a message.
186 <li>If next/prev will wrap to the top/bottom of the object on reaching the bottom/top.
187 <li>Ctrl "f","b" always bring up the dialogue box allowing you to
188 change what you're searching for and always start from the top/bottom of the object
189 respectively.
190 <li>If the target is in a collapsed branch of the tree then the search will expand
191 the branch so you can see the target. There is now a "Collapse" option in the main
192 menu to collapse back the branch.
193 </ul>
194
195 <P>Please note that the targets must be complete, searching for partial strings will be
196 introduced next month.
197
198
199 <a name="seqfeatures_list"></a><H3>A new "-list" option for the "gif seqfeatures" command.</H3>
200
201
202 <P>You can use giface to build virtual sequences using the "gif seqget" command and then dump
203 the features on that virtual sequence in GFF format using the "gif seqfeatures" command.
204 As alternative you could also just list the types of feature found in that virtual sequence.
205 A new list option now allows you to list all the object keys that were used to make that
206 virtual sequence with its features:
207
208 <pre><code>
209 seqfeatures [-list [features | keys]]
210
211 -list features lists the feature types found in that sequence (the default)
212
213 -list keys lists the keys of objects used to construct the virtual sequence
214 </code></pre>
215
216 <P>You can use the "-list keys" function in combination with the existing "-source" or
217 "-feature" flags to find out which keys of a particular type were used for a particular
218 stretch of sequence.
219
220
221 <!-- ******************************************************************** -->
222 <P><hr width="62%" align=left>
223 <a name="Articles"></a><H2>Articles</H2>
224
225
226 <a name="gff_format"></a><H3>Tightening up GFF output format from AceDB</H3>
227
228 <P>GFF files are made up of single line records with the following format:
229
230 <pre><code>&#060;seqname&#062; &#060;source&#062; &#060;feature&#062; &#060;start&#062; &#060;end&#062; &#060;score&#062; &#060;strand&#062; &#060;frame&#062; [attributes] [comments]<P>
231 </code></pre>
232
233 <P>Leaving aside the "attributes" and "comments" fields, the rest are in some senses mandatory
234 although this is not completely clear in the
235 <A HREF="http://www.sanger.ac.uk/Software/formats/GFF/GFF_Spec.shtml">GFF spec</A>.
236 In the past AceDB has sometimes omitted some of these mandatory fields altogether
237 which makes parsing of the records more difficult. From now on AceDB will adopt the following
238 standard for outputting GFF records:
239
240 <pre><code>&#060;seqname | "."&#062; &#060;source | "."&#062; &#060;feature&#062; &#060;start&#062; &#060;end&#062; &#060;score | "."&#062; &#060;strand | "."&#062; &#060;frame | "."&#062; [attributes] [comments]<P>
241 </code></pre>
242
243 <P><b>In summary:</b> the "seqname" to "frame" fields will always be present but will default to a "."
244 except for the "feature", "start" and "end" fields which must values must be given. From this release
245 AceDB will output all GFF files in this format.
246
247
248
249 <a name="xinetd"></a><H3>Running the AceDB server under the control of xinetd</H3>
250
251 <P>(<I>Thanks to Jack Chen <A HREF="mailto:[email protected]">[email protected]</A>
252 of wormbase for finally finding a working configuration.</I>)
253
254 <P>In the past if you wanted the AceDB server to be automatically started when requests
255 came in to your machine you could do this via inetd, an operating system utility which
256 provided this service.
257
258 <P>xinetd is an open source replacement for inetd, it provides many more features and much
259 security than inetd, you can read more about it at the
260 <A HREF="http://www.xinetd.org/">xinetd website</A>. This has replaced inetd as the default
261 service on Linux and some other Unix versions.
262
263 <P>Its configuration is a bit different from inetd and is as follows:
264
265 <P>For this example we assume the following:
266
267 <PRE>nickname for server/database - MyfirstDB
268 port for server - 20113
269 user owning database - mieg
270 path to server binary - /usr/local/bin/saceserver
271 path to database - /home/databases/aardvarkDB
272 timeout values for server - 200:200:0
273 </PRE>
274
275
276 <P>In <b>/etc/services</b> add the line:
277
278 <pre><code>MyfirstDB 20113/tcp
279 </code></pre>
280
281
282 <P>xinetd keeps its configuration files in the directory <b>/etc/xinetd.d</b>. Create a file
283 in this directory giving it some meaningful name such as <b>AceDB</b> and add the
284 following lines:
285
286 <pre><code># file: /etc/xinetd.d/acedb
287 # default: on
288 # description: wormbase acedb database
289 service acedb
290 {
291 protocol = tcp
292 socket_type = stream
293 port = 20113
294 flags = REUSE
295 wait = yes
296 user = mieg
297 group = mieg
298 log_on_success += USERID DURATION
299 log_on_failure += USERID HOST
300 server = /usr/local/bin/saceserver
301 server_args = /home/databases/aardvarkDB 200:200:0
302 }
303 </code></pre>
304
305 <P>Note that you will need to change the port, user, group, server and server_args
306 fields for you setup. Lines beginning with a "#" are as usual comments.
307
308 <P><b>Warning:</b> In the past there have been a number of problems with the way
309 xinetd worked which prevented users from running the AceDB servers with xinetd.
310 Currently the following combination of Linux, xinetd and AceDB is known to work:
311
312 <P><b>Linux:</b> Red Hat Linux release 7.3 (Valhalla), kernal: 2.4.18-27.7.xbigmem
313
314 <P><b>xinetd:</b> xinetd-2.3.7-4.7x
315
316 <P><b>AceDB:</b> 4_9m
317
318 <P>If you find that you cannot get AceDB working under xinetd control then you should
319 first check that you have up to date software.
320
321
322 <!-- ******************************************************************** -->
323 <P><hr width="62%" align=left>
324 <a name="Bugs_Fixed"></a><H2>Bugs Fixed</H2>
325
326
327 <a name="dna_dumping"></a><H3>DNA dumping</H3>
328
329 <P>The DNA dumping command had the wrong default, it should have been for
330 the spliced DNA unless otherwise specified.
331
332 <P>The code also did not cope with when an object contained both a DNA
333 tag directly referencing DNA and a Source_exons tag specifying the exons
334 to be spliced out of the DNA.
335
336 <P>Both now fixed.
337
338
339 <a name="gff_dump"></a><H3>GFF dumping the "reverse" strand</H3>
340
341 <P>You may have noticed occasionally that the GFF dumping function failed
342 reporting that dumping of the "reverse" sequence had not been implemented.
343 This usually happens if the sequence has been reverse complemented and then
344 the user tries to GFF dump. In fact this is a misunderstanding of how GFF should
345 be dumped in that for any one sequence, the reverse strand features are always
346 dumped but their strand is "-" instead of "+".
347
348 <P>The "gif seqfeatures" command which does the GFF dumping code, when it detects
349 a reverse complemented sequence, automatically
350 reverse complements it for dumping and then reverse complements the sequence back.
351 This is correct for GFF format which is supposed to represent the features on a known
352 sequence (not its reverse complement) and the strand of features is represented
353 by the "strand" field.
354
355
356 <!-- ******************************************************************** -->
357 <P><hr width="62%" align=left>
358 <a name="Developers_Corner"></a><H2>Developers Corner</H2>
359
360 <a name="bindex"></a><H3>bIndexGetTag2Key() function</H3>
361
362 <P>As you will remember the bIndexNNN() functions are a set a of functions that
363 enable you to search objects for tags and retrieve keys while making the best
364 possible use of AceDB index to avoid opening the objects wherever possible.
365
366 <p>The bIndexGetTag2Key() function allows you to retrieve the trailing object
367 key in a tag2 system, i.e. a set of tags in this format:
368
369 locator_tag user_tag1 obj_type1_key
370 user_tag2 obj_type2_key
371 etc.
372
373 <P>An example of this would be the SMap tags introduced last year into AceDB:
374
375 SMap S_Parent UNIQUE &lt;ptag2&gt; UNIQUE &lt;key&gt; // must be just _one_ parent.
376 &lt;ptag2&gt; UNIQUE &lt;key&gt;
377
378 <P>Using the bIndexGetTag2Key() function you can get the key following the "user_tag"
379 but if the object does not contain the locator_tag then it will not be opened which makes
380 traversing large hierachies of SMap'd objects much more efficient.
381
382 <P>The function copes with the situation where there are a number of user_tags following
383 the locator tag.
384
385 <P>The bindexNNN() functions are derived from code written by Jean Thierry-Mieg and include
386 (from wh/bindex.h):
387
388 <pre><code>/*
389 * These functions find tags etc. making optimal use of the index,
390 * only opening objects to get data if strictly necessary.
391 */
392 BOOL bIndexTag(KEY key, KEY tag) ; /* Is a tag in an object ? */
393 BOOL bIndexGetKey(KEY key, KEY tag, KEY *key_out) ; /* Retrieve key following a tag if
394 present. */
395 BOOL bIndexGetTag2Key(KEY key, KEY tag, KEY *key_out) ; /* Retrieve key following tag but
396 where tag is part of a tag2 system. */
397 </code></pre>
398
399
400 <a name="buttons_keys"></a><H3>Getting graph and gex to co-exist for key bindings</H3>
401
402 <P>Some AceDB windows are implemented using purely Graph package code, some with
403 purely Gex code and some with a mixture (e.g. FMap). There can be a problem with
404 clashes over key bindings if both layers have uses for the same keys, e.g. the
405 left and right arrow keys are used by the text entry boxes of Graph for FMap origin
406 and zone setting but also by the Gex layer for horizontal scrolling. So what to do ?
407
408 <P>The addition of two new functions to the GraphDev interface allows you to solve
409 this. graphDevDisableKeyboard() and graphDevEnableKeyboard() allow you to disable/enable
410 Gex layer keyboard code so that the Graph layer can intercept the events. For FMap it works like
411 this:
412
413 <ol>
414 <li>Normally the left/right arrows control left/right scrolling of the entire FMap
415 <li>When the user clicks on the zone or origin boxes, Graph disables the Gex handling
416 of the arrow keys so that it can use them to allow the user to cursor left and right
417 in the text entry boxes.
418 <li>When the user presses enter to show they have finished, then the Gex left/right scrolling
419 is enabled again by Graph.
420 </ol>
421
422 <P>This allows Graph and Gex to coexist as a crude approximation of what normally
423 happens in windowing systems.
424
425
426 <a name="smap_func"></a><H3>sMapTreeCoords(): a more general sMapTreeRoot()</H3>
427
428 <P>sMapTreeRoot() is a function that allows you to find the coordinates of any child
429 in an SMap within the ultimate parent of that SMap, while this is often useful, there
430 are also occasions when its useful to find out the coordinates of a child in any one of
431 its parents. A new function, sMapTreeCoords(), allows you to do this (from wh/smap.h):
432
433 <pre><code>/* Finds x1,x2 coords of key in target_parent, which must be a parent of
434 * of key in keys smap tree, if target_parent is set to KEY_UNDEFINED it
435 * does the same as sMapTreeRoot(). */
436 BOOL sMapTreeCoords(KEY key, int x1, int x2, KEY *target_parent, int *y1, int *y2) ;
437 </code></pre>
438
439 <P>As can be seen from the description, sMapTreeRoot() is now simply a call to
440 sMapTreeCoords().
441
442
443 <a name="seg_to_source"></a><H3>Getting the object from which an FMap seg was derived</H3>
444
445 <P>An FMap seg mostly represents a single box drawn on the FMap screen but going from
446 this seg to the object from the seg was principally derived is not completely straightforward,
447 in fact the FMap code has a number of different ways of doing this. The
448 fmapSeg2SourceName() function takes a seg and returns the name of the
449 object from which the seg was principally derived. Sometimes this is
450 seg-&gt;key, sometimes seg-&gt;parent and sometimes seg-&gt;source depending on the
451 seg type.
452
453
454
455
456
457 <!-- ******************************************************************** -->
458 <P><hr width="62%" align=left>
459 <a name="Monthly_Build"><H2>April monthly build now available.</H2>
460
461 <P>You can pick up the monthly builds from:
462 <dl>
463 <dt><b>Sanger users</b>
464 <dd>~acedb/RELEASE.DEVELOPMENT
465 <dt><b>External users</b>
466 <dd><A href="http://www.acedb.org/Software/Downloads/monthly.shtml">
467 http://www.acedb.org/Software/Downloads/monthly.shtml</A>
468 </dl>
469
470 <!-- ******************************************************************** -->
471 <P><hr width="62%" align=left>
472 <a name="User_Group"><H2>Next User Group Meeting - D319, 3.00pm, Thurs, 8th May 2003</H2>
473
474 <!-- ******************************************************************** -->
475 <HR>
476 <HR>
477
478 <ADDRESS><A href="mailto:[email protected]">Ed Griffiths &lt;[email protected]&gt;</A></ADDRESS>
479 <!-- hhmts start -->
480 Last modified: Fri May 2 09:55:53 BST 2003
481 <!-- hhmts end -->
482
483 </BODY>
484 </HTML>