Debian Codegraph @

winfo/Newsletters/Year2001/July.html

raw
1 <HTML>
2
3 <!-- -->
4 <!-- Stuff you should alter is highlighted with "***" -->
5 <!-- -->
6 <!-- The newsletters are parsed by a script to automatically produce the -->
7 <!-- index file for the directory. If you change the format of this template -->
8 <!-- you had better change the script as well. -->
9 <!-- -->
10
11
12 <HEAD>
13 <TITLE>ACEDB User Group Newsletter - July 2001</TITLE>
14
15 <!-- you won't pick up the style sheet if you view this template file, it works OK
16 for the newsletters which are in the directory above. -->
17
18 <LINK rel=stylesheet type="text/css"
19 href="../newsletter.css"
20 title="Style sheet for Acedb newsletters">
21
22 </HEAD>
23
24
25 <BODY>
26
27 <HR>
28 <HR>
29
30 <!-- Don't change this name unless you change mkindex.pl. -->
31 <a name="Top"></a>
32
33 <H1>ACEDB User Group Newsletter - July 2001</H1>
34
35
36 <!-- ******************************************************************** -->
37 <P>If you want to have this newsletter mailed to you <B>or</B> you want to
38 make comments/suggestions about the format/content then
39 send an email to <A HREF="mailto:[email protected]">[email protected]</A>.
40
41
42 <!-- ******************************************************************** -->
43 <P>This month sees the introduction of a long requested feature, namely
44 an interruptible Fmap, there are new display tags for the Grid display, an
45 article on circular object references and once again the problem of
46 programs running out of stack space rears its ugly head. As usual there
47 are a number of bug fixes as well.
48
49
50 <!-- ******************************************************************** -->
51 <a name="New_Features"></a><H2>New Features</H2>
52
53 <a name="Fmap_interrupt"></a><H3>Oh NO, I meant to click "View as text"</H3>
54
55 <P>Well we all do it, you click on an object in the <code>"Keyset"</code> or <code>"Tree display"</code>
56 windows and before you can do anything about it <code>xace</code> is churning and churning and
57 the busy cursor just won't go away....sigh. The usual cause of the problem is that you have clicked on
58 a "Sequence" object that either has a huge number of children or some very big parents
59 (just see how programs mimic life...). Xace is busy opening, examining and closing
60 a large number of objects and allocating large amounts of memory as it tries to
61 prepare an <code>Fmap</code> of a large section of sequence.
62
63 <p>Well in the latest monthly release you can now press the <code>"F4"</code> key
64 to stop the Fmap display. When you do this a dialog box will appear after a couple
65 of seconds that will
66 give you some idea of what Fmap was doing when you interrupted it and allow you to
67 choose whether to stop or continue. If you decide to stop, xace will display the
68 object using the <code>"Tree display"</code> which is probably what you would have
69 done anyway.
70
71 <P>Currently Fmap will show it has been interrupted at one of the following stages:
72
73 <ul>
74 <li><b>"Getting the DNA"</b> (constructing a unified section of DNA for the sequence)
75 <li><b>"Constructing virtual sequence"</b>
76 (collecting together all the information e.g. homols, gene predictions etc., for
77 the sequence)
78 <li><b>"Finding coding"</b> (finding all the CDS coding in the sequence)
79 </ul>
80
81
82 <p>In addition to making Fmap interruptible, Fmap will now also initially
83 check the size of sequence you have asked to display and if the sequence is
84 large a dialog box will immediately give you the chance to stop. Once again the object
85 will be displayed using the <code>Tree display</code> if you decide to you don't want
86 the Fmap.
87
88
89 <a name="grid"></a><H3>New Grid display options</H3>
90
91 <P>A user recently made two requests for enhancements to the Grid display:
92
93 <ul>
94 <li>tags to set the size of the grid boxes
95 <li>a tag to switch from one label per sub-block of boxes to one
96 label per box.
97 </ul>
98
99 <P>The new monthly release has support for these, the following changes
100 have been made:
101
102 <P>New tags have been added to the ?Grid class:
103
104 <pre><code>Square_size UNIQUE Float UNIQUE Float // Total size of box and surrounding space,
105 // (default = 2.0 1.0)
106 Box_size UNIQUE Float UNIQUE Float // Size of box, cannot be bigger than
107 // Square_size dimensions (default 0.9 0.7).
108 Label_per_box // Do a label per box rather than a label
109 // per "Lines_at" sub-block.
110 </code></pre>
111
112 <P>With "Square_size" you can control the size of the square
113 that the box is drawn in, and with "Box_size" the size of the
114 box itself. This allows you to specify a small box with a large surround, a large box
115 with a small surround and so on. You can modify the sizes interactively from
116 the grid display main menu so you can see how different settings look.
117
118 <P>If you specify the tag "Label_per_box" with one of the labelling options,
119 e.g. "Labels UNIQUE A1_labelling", then grid will display the labels one
120 per box rather than one per block of boxes.
121
122 <P>Originally the ?Grid class contained a "Size" tag:
123
124 <pre><code>Size UNIQUE Int UNIQUE Int
125 // idea is to give box size here
126 </code></pre>
127
128 <P>This tag was never in fact supported by the code and has been withdrawn.
129
130 <P>Remember that to use the new tags you will need to get both the
131 code and the definition of the ?Grid class from the sample
132 wspec/models.wrm that come with the new monthly build.
133
134
135 <!-- ******************************************************************** -->
136 <a name="Articles"></a><H2>Articles</H2>
137
138 <a name="circular_sequences"></a><H3>Sequences that point to themselves</H3>
139
140 <P>It's a perennial problem, you make a sequence object and it was supposed
141 to have a different parent, or perhaps no parent at all, but somehow it ends
142 up being its own parent. Here's an example:
143
144 <pre><code>Sequence : "my_parent"
145 Source "my_parent"
146 Subsequence "child" 1 110000
147
148 Sequence : "child"
149 Source "my_parent"
150 Source_Exons 1 55
151 Source_Exons 8893 9213
152 Source_Exons 10520 10792
153 </code></pre>
154
155 <P>In this case "child" is a normal sequence object containing some source
156 exons and has a parent sequence object called "my_parent". Unusually
157 "my_parent" is its own parent.
158
159 <P>Until now if you tried to display "child" as an Fmap using xace, xace
160 would simply hang while displaying the busy cursor and you would have no
161 option but to kill xace.
162
163 <P>AceDB does not prevent you from having circular
164 references like this and nor should it. You may have perfectly legitimate
165 reasons for wanting an object to point to itself, or perhaps more likely,
166 you may have a web of objects that if traversed will have loops within
167 the web.
168
169 <P>The problem for AceDB is that for some parts of the code
170 this can lead to infinite loops such as when the Fmap code is searching
171 up through a particular Sequence objects parents to find out the final position
172 of that object within the overall sequence in which it is positioned. If the
173 code encounters a parent that points to itself then it will continue to
174 search "up" forever.
175
176 <P>The only way to deal with this is make sure the code can detect this
177 occurance and prevent the loop. Most of these places have been fixed now
178 and Fmap itself should now deal with this by stopping at the point of
179 the circularity and trying to display what its got. In most cases the Fmap will
180 display a warning message identifying the object which has the cicular
181 reference in it. The above example was copied (to protect the innocent)
182 from a real example which caused xace to loop endlessly, the bug is now fixed.
183
184 <P>If you find other examples of circular references in objects that cause
185 AceDB to crash then please send us mail at
186 <A HREF="mailto:[email protected]">[email protected]</A>.
187
188
189 <a name="Stacksize"></a><H3>Warning about stack size and very big databases</H3>
190
191 <P>Recently AceDB crashed repeatedly while Dan Lawson was trying to build the <I>C. elegans</I>
192 database. This turned out to be because the AceDB process was running out of stack
193 space while processing CHROMOSOME_V (about 21 Mbases in size).
194 Our initial approach was to unlimit stack space to the then maximum
195 of 32MB and rerun AceDB, AceDB again crashed for the same reason. We then raised
196 stack space to 52MB and Dan was able to complete the worm build.
197
198 <P>There are several things to note here:
199
200 <ul>
201 <li>On our machines 32MB of stack size was enough to process the
202 other <I>C. elegans</I> CHROMOSOME_* objects which are about
203 17 Mbases long.
204 <li>CHROMOSOME_V required more than 32MB of stack size, we don't
205 know exactly how much.
206 <li>This is a temporary problem only (see below).
207 </ul>
208
209 <P>AceDB should not be using this much stack space and it does so because
210 a number of routines were written recursively to go up and down object
211 trees in the database. This is a natural way to write such code but
212 can be wasteful of memory. Testing will show which routines are using
213 up the stack space and it should be possible to rewrite them non-recursively
214 so that stack space is not a problem.
215
216 <P>In the meantime you should follow this procedure to raise stack size
217 (assuming you use C shell):
218
219 <P>Use the limit command to find out what your current stack size limit
220 is:
221
222 <pre>&gt; limit stacksize
223 stacksize 8192 kbytes
224 &gt; limit -h stacksize
225 stacksize 32768 kbytes
226 &gt;
227 </pre>
228
229 <P>The first limit command shows what our current stack size limit is,
230 the second shows the maximum it can be raised to. If the current limit is
231 lower than the maximum then use unlimit to raise it to the maximum:
232
233 <pre>&gt; unlimit stacksize
234 &gt; limit stacksize
235 stacksize 32768 kbytes
236 &gt;
237 </pre>
238
239 <P>If your stack size is already at the maximum and you still need it
240 to be increased then you will need to ask your own system support staff
241 to do this as it requires root permission and a possible rebuild
242 of the Unix kernel to do it (!).
243
244
245 <!-- ******************************************************************** -->
246 <a name="Bugs_Fixed"></a><H2>Bugs Fixed</H2>
247
248
249 <a name="Graph_not_found"></a><H3>"Graph Not Found" bug</H3>
250
251 <P>Sometimes xace crashes with a message that is some variant of "Graph Not Found"
252 or perhaps "could not find FeatureMap on graph". Many of these should now be fixed
253 after a change to the way popup dialogs are displayed, if you still get crashes
254 of this sort, please try and reproduce the crash and let us know by mailing
255 <A HREF="mailto:[email protected]">[email protected]</A> or raising a problem
256 online at <A HREF="http://www.sanger.ac.uk/cgi-bin/webddts/WebDDTS.pl?Project=Acedb">
257 http://www.sanger.ac.uk/cgi-bin/webddts/WebDDTS.pl?Project=Acedb</A>.
258
259
260 <a name="No_redraw"></a><H3>Tree window not redrawn properly</H3>
261
262 <P>This is the bug that has appeared, been fixed, reappeared and now (hopefully)
263 is fixed. The bug has been very hard to fix because it only affects some of the
264 people some of the time. After a life and death struggle Simon (Kelley) thinks
265 he's fixed this. If not, then you'd better contact us at
266 <A HREF="mailto:[email protected]">[email protected]</A>.
267
268
269 <a name="DNA_dump"></a><H3>DNA dumping bug</H3>
270
271 <P>There was a bug in the DNA dumping code for databases where some objects used
272 the Sequence class and some the SMAP. The code looked in only one or the other not
273 both. This is now fixed.
274
275
276 <a name="sigcatch_menu"></a><H3>Signal catching menu</H3>
277
278 <P>The menu item for controlling signal catching (right click on "Admin" button in
279 xace main window) was not correctly updated as signal handling status was changed
280 either interactively by the user or via the "-nosigcatch" command line option. This is now fixed.
281
282
283 <a name="webtag"></a><H3>Support for the WWW_location tag broken</H3>
284
285 <P>The WWW_location tag/data got broken in AceDB 4_9c, this is now fixed and
286 should work as normal.
287
288
289 <a name="server_HP"></a><H3>Socket server fixed on HP</H3>
290
291 <P>We have had an HP machine on loan for some weeks to test
292 AceDB on, this has just gone back after several bugs fixed were made to AceDB including:
293
294 <P>On HP's, non-blocking reads of a socket return EAGAIN where other systems return
295 EWOULDBLOCK. Unlike most other systems HP has different values for the two error numbers.
296 This meant that AceDB detected what it thought was an error when really the HP
297 code was returning the EWOULDBLOCK return code. Once fixed the socket code
298 worked perfectly.
299
300
301 <a name="makefile"></a><H3>Symbolic link missing in source code download file</H3>
302
303 <P>To build AceDB from the source code requires a symbolic link to wmake/makefile,
304 this link was missing from the source code download file. This is now fixed.
305
306
307 <a name="stack_message"></a><H3>Misleading Stack size message</H3>
308
309 <P>Sometimes when AceDB crashes it produces a message about raising your
310 stack space, unfortunately this message was often produced when this would
311 not have solved the problem. The message is now only output if the users
312 stack space is very low, i.e. 1.5 MB or less.
313
314
315 <!-- ******************************************************************** -->
316 <H2>August monthly build now available.</H2>
317
318 <P>You can pick up the monthly builds from:
319 <dl>
320 <dt><b>Sanger users</b>
321 <dd>~acedb/RELEASE.DEVELOPMENT
322 <dt><b>External users</b>
323 <dd><A href="http://www.acedb.org/Software/Downloads/monthly.shtml">
324 http://www.acedb.org/Software/Downloads/monthly.shtml</A>
325 </dl>
326
327 <!-- ******************************************************************** -->
328 <H2>Next User Group Meeting - D319, 2.30pm, Thursday, 16th August 2001</H2>
329
330 <!-- ******************************************************************** -->
331 <HR>
332 <HR>
333
334 <ADDRESS><A href="mailto:[email protected]">Ed Griffiths &lt;[email protected]&gt;</A></ADDRESS>
335 <!-- hhmts start -->
336 Last modified: Tue Aug 7 10:44:50 BST 2001
337 <!-- hhmts end -->
338
339 </BODY>
340 </HTML>