Debian Codegraph @

winfo/Newsletters/Year2001/November.html

raw
1 <HTML>
2
3 <HEAD>
4 <TITLE>ACEDB User Group Newsletter - November 2001</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 - 2001</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>The arrival and then disappearance again of some smap code, no more unexpected changes
36 in the accuracy of float data, more control of file parsing in xace, an
37 important bug fix for the Url class in AceDB.
38
39
40 <!-- ******************************************************************** -->
41 <P><hr width="62%" align=left>
42 <a name="Articles"></a><H2>Articles</H2>
43
44
45 <a name="new_dna"></a><H3>Introduction and then removal of smap-based dna retrieval</H3>
46
47 <P>Or to put it another way...an apology.
48
49 <P>I tested some new code which used Smap functions (more of this in the January issue)
50 to retrieve the dna for sequences in fmap. I compared the old and new code by dumping the dna
51 for the whole of Chromosome 22 in Human and found that it worked correctly. I put the new
52 code in the November monthly release, only to find that the code did not work properly when
53 the sequence object selected contained exons specified via the Source_exons tag. Sadly this
54 has resulted in a number of bugs in other parts of the code not obviously related to this
55 problem.
56
57 <P>Accordingly the change was removed until we could be sure it was working correctly.
58 Sorry, sorry, sorry to all of you who used the November code and found it to be not working
59 at all well. A fix is being worked on now.
60
61
62 <a name="float_rounding"></a><H3>Judicious rounding of floats to ensure constant accuracy
63 across platforms</H3>
64
65 <P>Accuracy in floating point numbers across different platforms can be very different. The
66 IEEE floating point standards do guarantee a minimum of 6 significant figures of accuracy.
67 AceDB now rounds all floating point numbers to this accuracy on output/input from ace files
68 to ensure that floating point numbers <B>stay the same</b> in a database regardless of
69 the machine being used to interact with the database.
70
71 <P>This is important otherwise floating numbers can appear to have changed just because
72 a different machine is used to read in or output them. This causes a problem because
73 objects that have floating point numbers with many significant figures (e.g. x = 1/3)
74 look as though they have changed because they can be specified more exactly in an
75 ace file than in the machine which must round them to its maximum available accuracy.
76
77 <P>You should be aware that AceDB will now hold floating point numbers to a maximum
78 of 6 significant figures.
79
80
81 <a name="parse_files"></a><H3>Ignoring errors while parsing files in xace</H3>
82
83 <P>tace has the command "pparse" to allow you to parse a file and ignore any
84 errors on the way, xace would always stop however at the first error. Now an
85 extra button has been added to the parse dialog window to allow you to select
86 to ignore errors and keep parsing the file. This can be very useful if you
87 just want to see how many errors there are in a trial parse of a file. The
88 errors get reported at the end so you do get to see them.
89
90 <P>This also resulting in the fixing of a bug that meant that if the input file
91 was a series of "-R", "-D" or "-A"
92 lines without blank lines in between, then the parser skipped to the end
93 of the file even if it was supposed to be allowing for errors.
94
95 <a name="netscape_openurl"></a><H3>Bug in Netscapes "OpenURL" command
96 breaks AceDB's Url class</H3>
97
98 <P>A bug in Netscapes "OpenURL" command caused AceDB WWW links to fail if
99 the link contained a ",". This is often the case for links that are cgi programs
100 as a comma is often used to separate the arguments to the cgi program.
101 AceDB uses the netscape "OpenURL" remote command to display links, but the
102 syntax for this command is: "OpenURL (URL [, new-window])" and unfortunately
103 netscape assumes that any "," contained in the url
104 is actually the "," for its OpenURL command and reports a syntax error !
105
106 <p>Having found the
107 cause of the problem we were able to call on Roger Pettet of the Sanger Centre
108 web team to
109 provide a solution. AceDB now scans the url from the database for any commas
110 and replaces them with "%2C", which is the standard URL code for a comma. Netscape
111 will then honour the request via its OpenURL command to display the link. Users
112 will unfortunately see this translation in the link displayed in the text box
113 at the top of Netscape but this is unavoidable which looks a bit ugly but at
114 least the Url's work reliably.
115
116
117
118 <a name="blixem_external"></a><H3>Some more points about running an external Blixem</H3>
119
120 <P>Last months newsletter talked about how to run
121 blixem externally
122 but unfortunately missed out a couple of important points.
123
124 <h4>What you need to do to your database to use the external blixem</h4>
125
126 <P>Firstly, you <b>must</b> use versions of xace and blixem from the same
127 release of acedb, this is because xace passes information to blixem via command
128 line parameters and these have changed as more function has been added. If you
129 use an old blixem with a new xace, or vice versa, you may get unexplained crashes.
130
131 <P>When you tell xace to use an external version of blixem, it actually
132 calls a script in the <code><b>wscripts</b></code> subdirectory of your
133 database. The script is called blixem_standalone and you can download
134 it from the acedb downloads page. If you edit the script you will see
135 it looks like this:
136
137 <pre>#!/bin/csh
138 # This script is called by xace to launch a standalone
139 # version of blixem. You should replace the below
140 # path with wherever you keep the acedb code.
141 #
142
143 ~/acedb/CODE/acedb/bin.ALPHA_4/blixem $*
144
145
146 exit 0
147 </pre>
148
149 <P>You should edit the blixem line so that it contains the path to where you
150 have downloaded your copy of the latest blixem.
151
152 <h4>Temporary files clutter</h4>
153
154 <P>Some of the information passed from xace to blixem is passed via temporary
155 files, these files are stored in a directory called
156 <code><b>/tmp/your_userid_ACEDB_BLIXEM</b></code> on your machine. The xace and blixem
157 code has been written so that it will remove these files if the programs terminate normally
158 and also in most cases if the programs crash for some reason.
159 You should be aware however that there are some circumstances in which the files will not
160 be removed and you should periodically look in this directory and remove old files.
161
162
163 <!-- ******************************************************************** -->
164 <P><hr width="62%" align=left>
165 <a name="Bugs_Fixed"></a><H2>Bugs Fixed</H2>
166
167 <a name="test_overflow"></a><H3>Main window "text overflow"</H3>
168
169 <P>An old chestnut, it was possible to overflow the text query box on the
170 old style main window because its length was given wrongly compared to the size
171 of buffer underlying it. The usual bug of not counting properly the terminating
172 NULL char.
173
174
175 <a name="cds_display"></a><H3>Bug in CDS display</H3>
176
177 <P>The cds display for exons had a bug so that if the sequence was complemented
178 or reversed or either followed by an fmap recalculate, the cds position in the
179 exons was no longer displayed correctly. This has now been fixed.
180
181
182 <a name="blixem_bug_external"></a><H3>Bug in call to external blixem</H3>
183
184 <P>AceDB was not passing across to an externally called blixem any sequences already
185 contained in the database.
186 Instead blixem would have to call efetch or pfetch which might not find
187 the sequence. This has now been fixed and AceDB will pass over all sequences
188 that it contains for blixem to display.
189
190
191 <!-- ******************************************************************** -->
192 <P><hr width="62%" align=left>
193 <a name="Developers_Corner"></a><H2>Developers Corner</H2>
194
195 <a name="aceTmpRemove"></a><H3>New aceTmp call</H3>
196
197 <P>Originally the aceTmp package always removed temporary files when the aceTmp
198 object was destroyed. A new call, aceTmpNoRemove(), allows the programmer to
199 control dynamically whether this happens or not. There are occasions when
200 the files need to be left where they are, see the
201 <A href="#blixem_external">blixem article</A> above.
202
203
204 <a name="implicit_decs"></a><H3>Those damned implicit declarations</H3>
205
206 <P>Probably every developer does it at one time or another, its late and
207 you just can't be bothered to put in the include for that system header
208 that declares the function you've just used and anyway its only a compiler
209 warning.
210
211 <P>Simon fixed one in freesubs for strtod() and strtol() by including
212 stdlib.h. Perhaps I'll let him have the last word, his CVS entry for
213 this bug which broke AceDB compilation on the Mac was:
214
215 <pre><code>declare strtod and strtol by including stdlib.h
216 Those "implicit declaration" warnings should be read as "one day, this
217 _will_ break". In this case on porting to MACOS_X
218 </code></pre>
219
220
221 <a name="utils_int"></a><H3>New "string to integer" conversion routines</H3>
222
223 <P>There are a couple of new routines in the libfree.a library which convert
224 strings to "int" or "long int" more reliably than the standard C library
225 routines. For instance, did you know that strtol() will convert "123rubbish"
226 into the "long int" 123 <b>and</b> you won't be able to detect that the entire
227 word was not converted ?
228
229 <P>Now you can use utStr2Int() and utStr2LongInt() to convert strings reliably
230 to "int" or "long int", the functions return TRUE if the conversion was successful
231 and FALSE if it failed including for the case mentioned above.
232
233
234 <a name="string_prefs"></a><H3>User preferences now include strings</H3>
235
236 <P>The user preferences code has been extended to allow the specifying of
237 preferences that are strings, an example would be the machine id for specifying
238 where the pfetch server is for sequence fetches.
239
240
241 <!-- ******************************************************************** -->
242 <P><hr width="62%" align=left>
243 <H2>November monthly build now available.</H2>
244
245 <P>You can pick up the monthly builds from:
246 <dl>
247 <dt><b>Sanger users</b>
248 <dd>~acedb/RELEASE.DEVELOPMENT
249 <dt><b>External users</b>
250 <dd><A href="http://www.acedb.org/Software/Downloads/monthly.shtml">
251 http://www.acedb.org/Software/Downloads/monthly.shtml</A>
252 </dl>
253
254 <!-- ******************************************************************** -->
255 <P><hr width="62%" align=left>
256 <H2>Next User Group Meeting - D319, 2.30pm, Thursday, 15th November 2001</H2>
257
258 <!-- ******************************************************************** -->
259 <HR>
260 <HR>
261
262 <ADDRESS><A href="mailto:[email protected]">Ed Griffiths &lt;[email protected]&gt;</A></ADDRESS>
263 <!-- hhmts start -->
264 Last modified: Wed Feb 13 10:54:39 GMT 2002
265 <!-- hhmts end -->
266
267 </BODY>
268 </HTML>