Debian Codegraph @

winfo/Newsletters/Year2003/July.html

raw
1 <HTML>
2
3 <HEAD>
4 <TITLE>ACEDB User Group Newsletter - July 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 - July 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 new "subset" command, tag counts displayed in the tree window,
37 a unfortunate delay to cut/paste in acedb text windows, more work on the
38 Genetic_code class, a question about acedb case sensitivity and object renaming,
39 future plans for a "son of FMap".
40
41
42
43 <!-- ******************************************************************** -->
44 <P><hr width="62%" align=left>
45 <a name="New_Features"></a><H2>New Features</H2>
46
47
48 <a name="blixem_scroll"></a><H3>Blixem and selected homologies</H3>
49
50 <P>When you select a homology in the top, "big picture", window of blixem,
51 the list of homologies below now gets scrolled to the selected homologies.
52
53
54 <a name="subset_command"></a><H3>New "subset" command in tace/giface</H3>
55
56 <P>(<I>This article is courtesy of Jean Thierry-Mieg who added this new feature</I>
57 <A HREF="mailto:[email protected]">[email protected]</A>)
58
59 <P>There is a new subset command available from the command line in tace or
60 giface:
61
62 <P><pre><code>subset x nx : returns the subset of the alphabetic active keyset from x >= 1 of length nx
63 </code></pre>
64
65 <P>This is an extremely efficient way to export long lists or tables to the web by
66 pieces. You make an active keyset by some query, subset it,
67 make a table out of the subset and export the table.
68 This is better than making a slice of a table because this way you only compute the table slice
69 you are really interested in.
70
71
72
73
74 <a name="tagcount_option"></a><H3>New "Toggle TagCount" menu option in tree display</H3>
75
76 <P>(<I>This article is courtesy of Jean Thierry-Mieg who added this new feature</I>
77 <A HREF="mailto:[email protected]">[email protected]</A>)
78
79 <P>There is a new option in the menu of the xace tree display
80 called "Toggle TagCount".
81 Select it, and you see in green after each tag how many objects
82 of the same class contain this tag. What is even more interesting
83 is to activate this option while displaying the models.
84 In that case, you will see in red all the tags which are not used
85 at all in your database and which you may wish to remove from your
86 schema.
87
88 <P>The counting relies on the internal acedb indexing which was
89 introduced a few years ago and should be quasi instantaneous.
90
91 <P>To see the models, double click them from the main window or
92 select them from the 'other class...' button of the main window,
93 or type 'find model' in a query box.
94
95 <P>Tag count is disabled in update mode or in show-time-stamps mode.
96
97
98
99
100
101
102 <!-- ******************************************************************** -->
103 <P><hr width="62%" align=left>
104 <a name="Articles"></a><H2>Articles</H2>
105
106 <a name="text_edit"></a><H3>Cut, Paste and Text windows</H3>
107
108 <P>(<I>This article is courtesy of Rob Clack who has been working on this new feature</I>
109 <A HREF="mailto:[email protected]">[email protected]</A>)
110
111 <P>The Pfetch window accessible from fmap and the text editor window
112 accessible from the Update Tree view have both been reverted to the way
113 they were in release 4_9q, ie before we started fiddling with them.
114
115 <P>The attempt to provide copy-and-paste functionality was doomed as long
116 as we were using GTK 1.2.10 as there is a bug in that release which
117 breaks popup menus.
118
119 <P>This bug is fixed in GTK 2.2.2 but the upgrade to the new GTK is
120 non-trivial as there are numerous incompatibilities which will need to
121 be addressed.
122
123 <P>We plan to do the upgrade later this year, but in the meantime the
124 enhancements to the pfetch and text editor windows have been shelved.
125
126 <P>This means that anyone who has continued to use older versions of Acedb
127 because of inadequacies in the pfetch and text editor windows can safely
128 upgrade to the new monthly version.
129
130
131
132
133 <a name="genetic_code"></a><H3>Genetic_code class: one more time</H3>
134
135 <P>(<I>Thanks to Jean Thierry-Mieg <A HREF="mailto:[email protected]">
136 [email protected]</A>
137 who did the original coding for this feature.</I>)
138
139 <P>A <A HREF="http://www.acedb.org/winfo/Newsletters/Year2003/April.html#genetic_code">
140 previous article</a> described a new class which allows you to specify different genetic
141 codes for translating DNA to peptides. The proposed model for the Genetic_code class to
142 do this was:
143
144 <pre><code>?Genetic_code Other_name ?Text
145 Translation UNIQUE Text
146 Start UNIQUE Text
147 Base1 UNIQUE Text
148 Base2 UNIQUE Text
149 Base3 UNIQUE Text
150 </code></pre>
151
152 <P>The <A HREF="http://www.acedb.org/winfo/Newsletters/Year2003/May.html#selenocysteine">
153 next month</a> this was then revised to include a specific tag for the rare Selenocysteine
154 amino acid:
155
156 <P><pre><code>?Genetic_code Other_name ?Text
157 Translation UNIQUE Text
158 Start UNIQUE Text
159 Base1 UNIQUE Text
160 Base2 UNIQUE Text
161 Base3 UNIQUE Text
162 Selenocysteine Remark Text // Use the Remark to document your usage of this tag.
163 </code></pre>
164
165 <P>After some discussion this has now been revised once more (sorry) because as far as is
166 known the TGA codon when specifying Selenocysteine also acts as a stop codon when at the end of
167 a transcript and so can be viewed as an "alternative stop" in the same was as some codons
168 are alternative start codons.
169
170 <P>Hence it makes sense to have a unified mechanism for both alternative start and stop
171 codons, the new model for the Genetic_code class looks like this:
172
173 <pre><code>?Genetic_code Other_name ?Text
174 Remark Text
175 Translation UNIQUE Text
176 Start UNIQUE Text
177 Stop UNIQUE Text
178 Base1 UNIQUE Text
179 Base2 UNIQUE Text
180 Base3 UNIQUE Text
181 </code></pre>
182
183 <P>An example for Selenocysteine taken from the the
184 <A HREF="http://www.wormbase.org/">Wormbase database</a> illustrates usage
185 of the Genetic_code class:
186
187 <pre><code>Genetic_code : "Selenocysteine"
188 Translation "FFLLSSSSYY**CCUWLLLLPPPPHHQQRRRRIIMMTTTTNNKKSSSSVVVVAAAADDEEGGGG"
189 Start "---M----------------------------MMMM---------------M------------"
190 Stop "----------**--*-------------------------------------------------"
191 Base1 "TTTTTTTTTTTTTTTTCCCCCCCCCCCCCCCCAAAAAAAAAAAAAAAAGGGGGGGGGGGGGGGG"
192 Base2 "TTTTCCCCAAAAGGGGTTTTCCCCAAAAGGGGTTTTCCCCAAAAGGGGTTTTCCCCAAAAGGGG"
193 Base3 "TCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAGTCAG"
194 </code></pre>
195
196 <P>In this case the <b>TGA</b> codon (in this case in column 15) will specify the
197 Selenocysteine amino acid (<b>U</b>) instead of its more usual role of being a stop
198 codon. This happens unless it occurs at the end of a transcript in which case it
199 specifies a stop, this is indicated by the "<b>*</b>" in the corresponding column
200 in the data following the "<b>Stop</b>" tag.
201
202 <P>Hence alternative <b>Start</b> codons are specified by an "<b>M</b>" in the Start data and
203 alternative <b>Stop</b> codons are specified by a "<b>*</b>" in the Stop data.
204
205 <P>In the case of Worm base the sequence class has been modified to include
206 a reference to the Genetic_code class in the Origin section:
207
208 <pre><code>?Sequence DNA UNIQUE ?DNA UNIQUE Int // Int is the length
209 .
210 .
211 Origin From_Database UNIQUE ?Database UNIQUE Int // release number
212 .
213 .
214 Genetic_code UNIQUE ?Genetic_code
215 </code></pre>
216
217 <P>You can see an example of this in Sequence object "C06G3.7".
218
219 <P>You should note that when exporting sequences, acedb will not export the final codon
220 if it translates as a valid stop codon. In FMap however, the stop codon is displayed
221 so that its possible to see that the transcript ends correctly.
222
223
224
225 <a name="rename_objects"></a><H3>Case sensitivity and object names</H3>
226
227 <P>Recently a user sent in the following problem:
228
229 <blockquote>When I was trying to create an instance of an object in ACEDB, I encountered
230 some problem. The problem is as follow:
231
232 I created an object called "test" with all lower case. Then I found out that
233 I have to use upper case "TEST". Since I realized that ACEDB is case
234 insensative, I can't just created a new object called "TEST". Therefore, I
235 deleted old object called "test". And then create a new object called
236 "TEST". However, somehow, when I fetched the object "TEST", I got "test"
237 back even though I have deleted it and double checked it several times. It
238 seems that ACEDB has some kind of memory system (still remember old deleted
239 object :-)). Can someone tell me how to fix this problem? Thank you very
240 much.
241 </blockquote>
242
243 <P>This "problem" is in essence caused by the acedb indexing system works and
244 in particular by the way it handles texts such as the names of objects. Acedb
245 keeps tables of strings which are indexed in a very efficient way, entries in
246 these tables are not deleted until the database is rebuilt. Hence in the above
247 case, when the object "test" is first created an entry is made in the index
248 for the string "test". When the object is removed the entry remains in the
249 index, this is done for efficiency otherwise every single string would require
250 a usage count and object creation, tag usage etc. would become less efficient.
251 Now when the new object "TEST" is created the name "TEST" is compared to existing
252 strings in the index in a case insensitive way and is a match to "test", hence
253 the object is named "test", not "TEST".
254
255 <P>This seems contrary until you start to think what would happen when you update
256 a database. If you wished to update existing objects you would need to get the case
257 of their names <b>exactly</b> right otherwise your update would create a new object.
258 In fact the case of all the tags you specified would also have to be correct and so
259 on and so on. In other words the whole system is much simpler with case insensitive
260 handling of strings.
261
262 <P>So what to do if you wish to simply change the case of an object ?
263
264 <P>The answer is to rename the existing object, when you do this the rename
265 code in acedb will respect the case of the string you wich to change the
266 object name to. There are a couple of ways to do this:
267
268
269 <P>From xace:
270
271 <P>Choose "Add/Delete/Rename/Alias Objects" from the main acedb window,
272 specify the name and class of your object and then click on "Rename-Fuse".
273 This will give you a dialog box where you fill in the new name in the case
274 that you want.
275
276 <P>From tace:
277
278 <pre><code>acedb> parse
279 -R My_Class oldname newname
280 ctrl-D
281 </code></pre>
282
283
284
285 <!-- ******************************************************************** -->
286 <P><hr width="62%" align=left>
287 <a name="Bugs_Fixed"></a><H2>Bugs Fixed</H2>
288
289
290 <a name="reindex"></a><H3>Database reindex messages</H3>
291
292 <P>If you were reindexing the database using xace, the messages reporting the
293 reindexing tended to be lost because they were sent to the terminal from which
294 xace was started. The messages will now be displayed in popup windows so you get
295 better feedback that the redindexing has happened.
296
297
298 <a name="blixem_homols"></a><H3>Blixem not showing homologies correctly (part 25)</H3>
299
300 <P>Simon Kelley has doggedly nailed a bug in blixem which led to homologies being
301 incorrectly shown or not shown at all. This bug turned out to be another case where
302 not all data coordinates were being correctly modified when an fmap is reverse
303 complemented. This meant that blixem was supplied with incorrect "gap" array data
304 for the homologies. A tale of real persistence, well done Simon.
305
306
307 <!-- ******************************************************************** -->
308 <P><hr width="62%" align=left>
309 <a name="Future_Plans"></a><H2>Future Plans</H2>
310
311
312 <a name="error_messages"></a><H3>Configurable error messages</H3>
313
314 <P>There are several facilities in acedb where it would be useful to configure
315 the way in which error messages are output and also the way in which the
316 facility itself runs. A good example of an existing system is the <b>parse</b>
317 command which will stop at the first failure or the <b>pparse</b> command which
318 will continue on to the end of the file processing all objects that do not have
319 errors, discarding ones that do. This gives the user the choice of whether to
320 stop "on first failure" or not.
321
322 <P>Other places where this would be advantageous include: constructing the DNA
323 for an SMap and constructing a virtual sequence perhaps for FMap display or GFF dumping.
324
325 <P>In particular it would help users if they could select the number of error messages
326 and also "first failure" when constructing a virtual sequence. In particular users
327 who have to construct large GFF files from long virtual sequences could make use of the
328 facility when testing new data in their databases.
329
330 <P>New code is being added to the messaging routines in acedb to provide easier control
331 of error messaging and when to fail. The new messErrorCond() routine includes logic to
332 detect the first failure,
333 and whether none, just the first or all error messages should be output.
334
335 <P>This is work in progress as it will require some alterations to the SMap DNA
336 and SMap convert code.
337
338
339 <a name="zmap_news"></a><H3>ZMap, Son of FMap</H3>
340
341 <P><A href="mailto:[email protected]">Simon Kelley &lt;[email protected]&gt;</A>
342 and myself have been working on a new acedb display, named "ZMap" for now,
343 which will be a stand alone display acting as a client that contacts database servers
344 for sequence information. In effect a client/server version of FMap and acedb.
345
346 <P>Simon has been building the new display within xace to test it out and it will have a
347 number of new features including the ability to split windows and show different parts
348 of the same sequence.
349
350 <P>I have been working on the main scaffold code for the application which will be
351 multithreaded so that users will be able to cancel or "Stop" display of a particular
352 sequence in the way that web browsers do and be able to continue to work on one
353 display while another is being constructed.
354
355 <P>The aim is produce a stand alone display incorporating the best parts of FMap
356 but which can be used against any database that supports the protocol that the new
357 display uses (likely to be DAS 2 initially).
358
359
360
361
362 <!-- ******************************************************************** -->
363 <P><hr width="62%" align=left>
364 <a name="Developers_Corner"></a><H2>Developers Corner</H2>
365
366
367 <a name="chrono_command"></a><H3>New "chrono" command in tace/giface</H3>
368
369 <P>(<I>Thanks to Jean Thierry-Mieg who added this new feature</I>
370 <A HREF="mailto:[email protected]">[email protected]</A>)
371
372 <P>Jean has been revamping the chrono code and has continued this by adding a "chrono"
373 command to the command line interface:
374
375 <pre><code>Chrono {start | stop | show} built in profiler of chrono aware routines
376 </code></pre>
377
378 <P>Obviously this only works for routines that have chrono calls built into them but
379 its a very useful tool for localised profiling.
380
381
382
383 <a name="smap_dna"></a><H3>Change to the way SMap constructs the DNA for a virtual sequence</H3>
384
385 <P>While constructing some aquila tests for the SMap DNA code I found SMap didn't
386 construct DNA the way I thought it did, it stops at the first DNA it finds while
387 traversing down the hierachy. This means that potential mismatches may be missed
388 depending on the way users have organised their data.
389
390 <P>I've altered the code to find all SMap'd DNA down a hierachy, this is a small
391 change to the code and we can reverse it if this produces problems. It seems more
392 natural to try to map all DNA in the hierachy.
393
394 <P>Users will probably not see any difference because they either have non-overlapping DNA
395 or overlaps only at the end of clones.
396
397
398 <a name="aquila_tests"></a><H3>Adding new tests to aquila</H3>
399
400 <P>Adding new tests to aquila. We all know we should do it but.....
401
402 <P>Well recently I've added a couple of new tests to our overnight aquila runs to
403 test SMap DNA construction and the new genetic code routines.
404
405 <P>Rob (<A href="mailto:[email protected]">Rob Clack &lt;[email protected]&gt;</A>)
406 has been adding to the aquila documentation to describe how to add tests and its really
407 much easier now that aquila handles a series of small test script files rather than one
408 huge file.
409
410 <P>If you add a new facility to acedb or fix a difficult bug, try to add a new test to
411 Aquila.
412
413
414
415 <!-- ******************************************************************** -->
416 <P><hr width="62%" align=left>
417 <a name="Monthly_Build"><H2>July monthly build now available.</H2>
418
419 <P>You can pick up the monthly builds from:
420 <dl>
421 <dt><b>Sanger users</b>
422 <dd>~acedb/RELEASE.DEVELOPMENT
423 <dt><b>External users</b>
424 <dd><A href="http://www.acedb.org/Software/Downloads/monthly.shtml">
425 http://www.acedb.org/Software/Downloads/monthly.shtml</A>
426 </dl>
427
428 <!-- ******************************************************************** -->
429 <P><hr width="62%" align=left>
430 <a name="User_Group"><H2>Next User Group Meeting - D319, 3.00pm, Thursday, 14th August 2003</H2>
431
432 <!-- ******************************************************************** -->
433 <HR>
434 <HR>
435
436 <ADDRESS><A href="mailto:[email protected]">Ed Griffiths &lt;[email protected]&gt;</A></ADDRESS>
437 <!-- hhmts start -->
438 Last modified: Thu Aug 7 08:06:41 BST 2003
439 <!-- hhmts end -->
440
441 </BODY>
442 </HTML>