Debian Codegraph @

winfo/Newsletters/Year2000/August.html

raw
1 <HTML>
2
3
4 <!-- Stuff you should alter is highlighted with "***" -->
5
6
7 <HEAD>
8 <TITLE>ACEDB User Group Newsletter - August 2000</TITLE>
9
10 <!-- you won't pick up the style sheet if you view this template file, it works OK
11 for the newsletters which are in the directory above. -->
12
13 <LINK rel=stylesheet type="text/css"
14 href="../newsletter.css"
15 title="Style sheet for Acedb newsletters">
16
17 </HEAD>
18
19
20 <BODY>
21
22 <HR>
23 <HR>
24
25 <H1>ACEDB User Group Newsletter - August 2000</H1>
26
27 <P>If you want to have this newsletter mailed to you <B>or</B> you want to
28 make comments/suggestions about the format/content then
29 send an email to <A HREF="mailto:[email protected]">[email protected]</A>.
30
31 <P>This month sees some changes to output from the (p)parse commands
32 to give more accurate and informative results about the parsing of acedb data.
33 There is also a small but important change to acedb logging data
34 to allow easier analysis of database activity. And there's a tip about what
35 to do when acedb runs out of memory.
36
37
38 <a name="General"></a><H2>General News</H2>
39
40 <a name="Acedb"></a><H4>Acedb and running out of memory</H4>
41
42 <p>Most people who have used acedb for some time will have seen a message like this:
43
44 <pre><code>
45 "Memory allocation failure, when requesting 100000 bytes, 20034340 already allocated"
46 </code></pre>
47
48 <P>If you were using <code>xace</code> all you can do is click the "OK" button and then
49 xace terminates.
50
51 <p>Acedb can run out of memory for a number of reasons:
52 <ul>
53 <li>The machine is being heavily used and has run out of memory.
54 <li>There is an error in the code and it is asking for some huge amount of memory.
55 <li>The object you are trying to load from the database is just too large to
56 be viewed on this machine.
57 <li>Your personal "process datasize limit" is set too low.
58 </ul>
59
60 <p>If you are using acedb and memory allocation fails when trying to allocate some fairly
61 small amount of memory e.g. perhaps 5MB ( about 5,000,000 bytes), then there is a good
62 chance that its because of the last reason mentioned in the list above. In this case
63 you will probably be able to do something about it straight away.
64
65 <P>To check this you should do the
66 following (assuming you use C shell which is what most people at Sanger use):
67
68 <P><b>1)</b> Add up the total number of bytes that acedb needed when it crashed:
69 <pre><code>
70 "Memory allocation failure, when requesting 5242880 bytes, 125829120 already allocated"
71 </code></pre>
72 <P>In this case a total of 125829120 + 5242880 = 131072000 bytes (or about 125 MB)
73
74 <P><b>2)</b> Find out what your current limit is:
75 <pre><code>
76 griffin[edgrif]65: limit datasize
77 datasize 131072 kbytes
78 </code></pre>
79 <P>In this case the limit is 128MB, although this is more than the 125MB acedb needs,
80 acedb makes use of other libraries which use up memory so this is close enough to
81 suspect that the datasize limit is the problem.
82
83 <P><b>3)</b> Find out if you can increase you current limit:
84 <pre><code>
85 griffin[edgrif]66: limit -h datasize
86 datasize 1048576 kbytes
87 </code></pre>
88 <P>Here the upper limit is set to 1024MB so there is plenty of
89 scope to increase the datasize limit.
90
91 <P><b>4)</b> Increase the limit and rerun acedb:
92 <pre><code>
93 griffin[edgrif]66: limit datasize 524288
94 </code></pre>
95 <P>This sets the datasize to 512MB, the limit can be increased further
96 as required.
97
98
99 <a name="New"></a><H2>New Features</H2>
100
101 <a name="Change"></a><H4>Change to output from (p)parse command</H4>
102
103 <P>The output from the parse and pparse commands has been changed
104 to give more complete information about the ace data parsed. Previously
105 no reporting was done for array objects parsed (e.g. raw DNA data) or
106 for attempts to delete objects. In addition not all errors were trapped
107 or reported.
108
109 <p>The new output has these main changes:
110 <ul>
111 <li>the following information is shown for each error found:
112 <ul>
113 <li>the type of object being processed
114 <li>the first line of the object being processed, which shows its type.
115 <li>the reason why parsing of the object failed is more reliably reported.
116 </ul>
117 <li>the summary now includes counts of <b>all</b> objects found and shows the numbers
118 that failed or were parsed correctly.
119 <li>a larger summary can be requested that shows stats for array and normal objects separately
120 and also records error stats where the type of the object could not be determined.
121 </ul>
122
123 <P>Originally the commands produced:
124
125 <pre><code>
126 acedb&gt; pparse some_file.ace
127 // Parsing file some_file.ace
128 // Parse error near line 5 in eds_grid1 : Unknown tag "FunnyLine1"
129 // Parse error near line 57 in eds_grid1.2 : Unknown tag "FunnyLine2"
130 // Parse error near line 163 in eds_grid1.9 : Unknown tag "FunnyLine3"
131 // 18 objects read with 3 errors
132 // 15 Active Objects
133 acedb&gt;
134 </code></pre>
135
136 <p>The commands now produce:
137 <pre><code>
138 acedb&gt; pparse some_file.ace
139 // Parsing file some_file.ace
140 // ERROR: parse error (object) near line 5 in "grid : "eds_grid1"", error was: Unknown tag "FunnyLine1"
141 // ERROR: parse error (object) near line 57 in "grid : "eds_grid1.2"", error was: Unknown tag "FunnyLine2"
142 // ERROR: parse error (object) near line 163 in "grid : "eds_grid1.9"", error was: Unknown tag "FunnyLine3"
143 // <b>objects processed: 18 found, 15 parsed ok, 3 parse failed</b>
144 // 15 Active Objects
145 acedb&gt;
146 </code></pre>
147
148 <p>Individual errors are now reported like this:
149
150 <pre><code>
151 // ERROR: parse error (<b>object</b>) near line 5 in <b>"grid : "eds_grid1""</b>, error was: <b>Unknown tag "FunnyLine1"</b>
152 </code></pre>
153
154 <P>so you get to know the type of thing being parsed ("general", "object" or "array",
155 where general means "can't ascertain the type"). You see the first line of the
156 object/paragraph which should contain the type and name of the object. You also
157 get to see the original error message which describes what was wrong with the
158 object.
159
160 <P>At the end of parsing you now see a summary:
161
162 <pre><code>
163 // objects processed: 18 found, 15 parsed ok, 3 parse failed
164 </code></pre>
165
166 <p>where it should be true that: found = ok + failed.
167
168 <p>If you specify "-v" for parse or pparse you see more detail:
169
170 <pre><code>
171 // total processed: 18 found, 15 parsed ok, 3 parse failed
172 // general: 0 errors
173 // objects: 15 added, 0 editted, 0 deleted, 0 renamed, 0 aliased, 3 errors
174 // arrays: 0 added, 0 empty, 0 deleted, 0 errors
175 </code></pre>
176
177 <p>So you get to see general errors, e.g. no class name specified for a delete
178 operation, ordinary object operations and array object operations, normal object
179 stats and array object stats separately.
180
181
182
183 <a name="logformat"></a><H4>Change to <code>log.wrm</code> format</H4>
184
185 <P><code>log.wrm</code> is the file where acedb programs write information
186 about who is using the database, what they are using the database for
187 and also information about any serious errors.
188
189 <P>Currently the first log record for a user starting a new session on a
190 database looks like this:
191 <pre>
192 New start User:edgrif, ACEDB 4_8b, compiled on: Oct 5 1999 14:43:15
193 </pre>
194
195 <P>whereas the standard record format for all other log messages is:
196 <pre>
197 2000-04-03_17:21:09 griffin 20611 ***some action***
198 </pre>
199
200 <P>This is not ideal for serveral reasons:
201 <ul>
202 <li>having a different first record needlessly complicates parsing of the log file.
203 <li>there is no easy to tie the new session record
204 for a user with the subsequent records for that user.
205 <li>there is no time record for when the user started.
206 <li>there is no record of which acedb program the user was running.
207 </ul>
208
209 <P>To address these issues the first record for a new user session has been changed
210 so that:
211
212 <P><b>All log records now have the standard prefix:</b>
213 <pre><code>
214 "date_time network_id PID"
215
216 e.g. "2000-04-03_17:21:09 griffin 20611"
217 </code></pre>
218
219 <P><b>The new user session record format is:</b>
220 <pre><code>
221 "date_time network_id PID NEW_START: User:userid, Program:progname, Level:ace_level, compiled on: date time"
222
223 e.g. "2000-07-20_14:20:37 griffin 19877 NEW_START: User:edgrif, Program:tace, Level:ACEDB 4_8c, compiled on: Jul 20 2000 14:14:21
224 </code></pre>
225
226 <P>This means all logs records will now have the same prefix and that the user can
227 now be tied to their log records via the PID/network_id,
228 the time of their first use of the database will be
229 recorded and also which program and which machine they were using.
230
231
232 <a name="Bugs"></a><H2>Bugs Fixed</H2>
233
234 <a name="Protein"></a><H4>Protein Translation Bugs in fmap</H4>
235
236 <p><b>Protein translation displayed in fmap window:</b> display of protein translations
237 for <code>CDS</code>'s in the fmap window did not
238 work correctly for reverse strand genes. If you set the beginning position
239 for translation by altering:
240
241 <pre>
242 <code>
243 Properties -&gt; Coding -&gt; CDS &lt;new start position&gt;
244 </code>
245 </pre>
246
247 then the protein translation did not get updated to reflect the change.
248 If you set the end position as well then the translation was shown correctly.
249 This is now fixed so the correct translation is always shown.
250
251 <p><b>Protein translation displayed in separate protein window:</b> Several users
252 have noticed that when they set the end position in the <code>CDS</code> (as mentioned above),
253 they get huge numbers of the character 'X' appended to the end of the translation.
254 This is because the <code>CDS</code> positions <b>must</b> be specified in the spliced DNA coordinates,
255 <b>not</b> the <code>Source_Exons</code> coordinates. If you use the latter then you will be specifying
256 an end position well past the end of the spliced DNA, thus causing the code to append the
257 'X's to "fill in" the missing data.
258
259 <P>Code will be added to give a warning that the specified positions are outside of the
260 spliced DNA coordinate range.
261
262
263 <a name="treewindow"></a><H4>Incompletely drawn tree display window when updating</H4>
264
265 <P>Many users have noticed how sometimes when they try to "Update" the tree display
266 (i.e. the class viewer window), the window is sometimes only partly drawn with the
267 lower part of the window being blank until the window is scrolled up and down. This
268 very irritating bug has finally be pinned down to an error, not in acedb, but in the
269 underlying GTK toolkit. A work around is in place until the new fixed versions of GTK
270 filter through.
271
272
273 <H2>August monthly build NOT yet available.</H2>
274
275 <P>Currently the acedb test system is not working correctly so only half of the code has
276 been tested. This should be fixed this week. You will receive email when testing has
277 been completed.
278
279 <P>Note that this means that some of the features mentioned above will not be available
280 until testing has been completed.
281
282
283 <H2>Next User Group Meeting - D213, 2.30pm, Thursday 14th September.</H2>
284
285 <HR>
286 <HR>
287
288 <ADDRESS><A href="mailto:[email protected]">Ed Griffiths &lt;[email protected]&gt;</A></ADDRESS>
289 <!-- hhmts start -->
290 Last modified: Mon May 21 15:35:57 BST 2001
291 <!-- hhmts end -->
292
293 </BODY>
294 </HTML>