| 1 |
<HTML> |
| 2 |
|
| 3 |
<HEAD> |
| 4 |
<TITLE>ACEDB User Group Newsletter - March 2003</TITLE> |
| 5 |
|
| 6 |
<LINK rel=stylesheet type="text/css" |
| 7 |
href="../newsletter.css" |
| 8 |
title="Style sheet for Acedb newsletters"> |
| 9 |
|
| 10 |
</HEAD> |
| 11 |
|
| 12 |
|
| 13 |
<BODY> |
| 14 |
|
| 15 |
<HR> |
| 16 |
<HR> |
| 17 |
|
| 18 |
<!-- Don't change this name unless you change mkindex.pl. --> |
| 19 |
<a name="Top"></a> |
| 20 |
|
| 21 |
<H1>ACEDB User Group Newsletter - March 2003</H1> |
| 22 |
|
| 23 |
|
| 24 |
<!-- ******************************************************************** --> |
| 25 |
<P>If you want to have this newsletter mailed to you <B>or</B> you want to |
| 26 |
make comments/suggestions about the format/content then |
| 27 |
send an email to <A HREF="mailto:[email protected]">[email protected]</A>. |
| 28 |
|
| 29 |
|
| 30 |
<!-- ******************************************************************** --> |
| 31 |
<P><hr width="62%" align=left> |
| 32 |
<P>This month there are improvements/additions to giface commands, cut/pastable |
| 33 |
popup error messages (an AceDB first...), long awaited FMap keyboard shortcuts, |
| 34 |
control of timestamping frequency for server log files, a gene feature finder |
| 35 |
executable and fix for possibly the most irritating FMap bug in the world. |
| 36 |
|
| 37 |
|
| 38 |
<!-- ******************************************************************** --> |
| 39 |
<P><hr width="62%" align=left> |
| 40 |
<a name="General_News"></a><H2>General News</H2> |
| 41 |
|
| 42 |
<P>We seem to be back on track with monthly releases and newsletters. The SMap |
| 43 |
code has been used extensively by the C. Elegans group at Sanger for mapping |
| 44 |
homologies, alleles and other features and seems stable and working well. |
| 45 |
We'll be producing a write up of SMap tags and other associated tag sets |
| 46 |
(e.g. the homology tag set) that are supported by AceDB for next month or sooner |
| 47 |
if possible. |
| 48 |
|
| 49 |
|
| 50 |
<!-- ******************************************************************** --> |
| 51 |
<P><hr width="62%" align=left> |
| 52 |
<a name="New_Features"></a><H2>New Features</H2> |
| 53 |
|
| 54 |
|
| 55 |
<a name="gif_commands"></a><H3>New and improved giface commands</H3> |
| 56 |
|
| 57 |
<P>If you use giface then you may be interested to note the following |
| 58 |
changes/additions to the <b>"smap"</b> and <b>"seqget"</b> commands available from |
| 59 |
the <b>"gif"</b> submenu in giface. |
| 60 |
|
| 61 |
<P><b>"smap":</b> The smap command has been made much faster so that you should be |
| 62 |
able to use it to find the position of a child smap'd feature in any parent of that feature |
| 63 |
quickly enough to service web server requests if you are using the AceDB server |
| 64 |
version of giface. |
| 65 |
|
| 66 |
<P>For example you can find the position of genes on forward and reverse strand of |
| 67 |
a chromosome in the worm: |
| 68 |
|
| 69 |
<pre><code> acedb> gif smap -from sequence:m7.1 |
| 70 |
SMAP Sequence:CHROMOSOME_IV 11082185 11081556 1 444 INTERNAL_GAPS |
| 71 |
// 0 Active Objects |
| 72 |
acedb> |
| 73 |
|
| 74 |
acedb> gif smap -from sequence:m7.2 |
| 75 |
SMAP Sequence:CHROMOSOME_IV 11084106 11085837 1 1551 INTERNAL_GAPS |
| 76 |
// 0 Active Objects |
| 77 |
acedb> |
| 78 |
</code></pre> |
| 79 |
|
| 80 |
<P>Here "m7.1" is on the reverse strand of CHROMOSOME_IV from bases 11081556 to 11082185, |
| 81 |
while "m7.2" is on the forward strand from bases 11084106 to 11085837. "INTERNAL_GAPS" |
| 82 |
indicates that these features are sets of exons and hence have gaps |
| 83 |
|
| 84 |
<P>If you specify a coordinate range and the -from object is outside of that coordinate |
| 85 |
range the smap call will return as its last word "OUTSIDE_AREA" to indicate that the |
| 86 |
object could be mapped but was outside the area of interest. |
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
<P><b>"seqget":</b> The seqget command now has a "-noclip" option. With this option, |
| 91 |
when you use seqget specifying a coordinate range, |
| 92 |
you can decide whether features should be clipped to the coordinate range or, if you specify |
| 93 |
"-noclip" whether features that overlap should be mapped to their full extent. |
| 94 |
|
| 95 |
<P>For example: |
| 96 |
|
| 97 |
<pre><code> |
| 98 |
|
| 99 |
=================|=========================|=================== sequence |
| 100 |
100 200 |
| 101 |
_________ ______ |
| 102 |
/ \ / \ |
| 103 |
==== ========== ========= feature |
| 104 |
|
| 105 |
<-------- clip -----------> |
| 106 |
|
| 107 |
<------------------- noclip -------------> |
| 108 |
|
| 109 |
|
| 110 |
</code></pre> |
| 111 |
|
| 112 |
<P>Here we have asked to see features from bases 100 to 200 of the sequence, the default |
| 113 |
(clipped) will return only the part of the feature that does not extend past this range, the noclip |
| 114 |
option returns the full features. |
| 115 |
|
| 116 |
<P>Clipping is useful for something like fMap where a user is only interested in what |
| 117 |
features look like in a particular range, the unclipped option is useful when you want |
| 118 |
to see the full features that overlap a particular range perhaps to then output them |
| 119 |
as in GFF or some other format. |
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
<a name="fmap_recomp"></a><H3>FMap and display of reverse strand features.</H3> |
| 124 |
|
| 125 |
<P>If you are in tree display of a sequence object and click on a child sequence that |
| 126 |
is on the reverse strand feature the fMap will now automatically be displayed |
| 127 |
showing the reverse strand. Previously |
| 128 |
the object would be on the left/up-strand of the fMap display and so may not even have |
| 129 |
been displayed if its method did not include the "Show_up_strand" tag. |
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
<a name="pop_up_messages"></a><H3>You saw it here first</H3> |
| 134 |
|
| 135 |
<P>OK, once again AceDB is ahead of the game.... |
| 136 |
|
| 137 |
<P>How many times have you seen some error in a program that has been popped up in |
| 138 |
a helpful little dialog box and what you'd really like to do is cut/paste that |
| 139 |
message into an email and send if off with some choice vituperative comments of your |
| 140 |
own to the programs developers. Of course what you discover is that you can't cut/paste |
| 141 |
the message so you have to copy it out verbatim and then you make a mistake and accidentally |
| 142 |
leave out the vital piece of information and, and, and.... |
| 143 |
|
| 144 |
<P>Well in AceDB you can cut/paste the message, just move your mouse pointer over |
| 145 |
the message, you will see it go highlighted, click on it with the left button and then |
| 146 |
use the middle button to cut/paste it into your email. |
| 147 |
|
| 148 |
<P>AceDB, ahead of the game...well, OK, sometimes we are... |
| 149 |
|
| 150 |
|
| 151 |
<a name="fmap_shortcuts"></a><H3>FMap keyboard shortcuts</H3> |
| 152 |
|
| 153 |
<P>After an infinity of time and an almost as large number of people "volunteering" |
| 154 |
to put some shortcuts into the fMap something has finally happened. Here is a list |
| 155 |
of newly added keyboard shortcuts in the FMap: |
| 156 |
|
| 157 |
<P><pre><code>left,right arrows creep left/right |
| 158 |
Ctrl left,right arrows page left/right |
| 159 |
|
| 160 |
up,down arrows creep up/down |
| 161 |
Ctrl up,down arrows page up/down |
| 162 |
|
| 163 |
=,- zoom little in/out |
| 164 |
Ctrl =,- zoom lots in/out |
| 165 |
|
| 166 |
Shift up,down arrows cycle through highlighting features |
| 167 |
column by column |
| 168 |
|
| 169 |
Page Up/Down page up or down |
| 170 |
Home/End go to start/end of current view |
| 171 |
|
| 172 |
spacebar recalculate |
| 173 |
Enter/Return pick (like mouse click on current item) |
| 174 |
"r" reverse-complement |
| 175 |
"w" whole (zoom fMap to whole sequence) |
| 176 |
</code></pre> |
| 177 |
|
| 178 |
<P>(Note that you can press either the "+" key or the "=" key to zoom in, its more convenient |
| 179 |
to press the "=" key because you don't have to press shift first.) |
| 180 |
|
| 181 |
|
| 182 |
<a name="server_timestamps"></a><H3>Controlling the frequency of timestamps in the server log file</H3> |
| 183 |
|
| 184 |
<P>A while ago I reported an AceDB server |
| 185 |
<A HREF="http://www.acedb.org/winfo/Newsletters/Year2002/October.html#socket_server">performance bug</A> |
| 186 |
caused by time stamping every single log file message, at the time a quick fix |
| 187 |
was made to allow the database administrator to select time stamping on an |
| 188 |
"all or nothing" basis. You can now choose intermediate levels of time stamping |
| 189 |
using the new <b><code>TIMESTAMP_FREQUENCY</code></b> keyword in the |
| 190 |
<code>wspec/serverconfig.wrm</code> file of the database. You can use this |
| 191 |
keyword to say how often you would like time stamps to appear in the server logfile. |
| 192 |
|
| 193 |
<P>From the <code>wspec/serverconfig.wrm</code> description: |
| 194 |
|
| 195 |
<pre><code>////////////////////////////////////////////////////////////////// |
| 196 |
// TIMESTAMP_FREQUENCY: |
| 197 |
// If the TIMESTAMP_FREQUENCY flag is uncommented in this file |
| 198 |
// then the number following it will be used to set the frequency |
| 199 |
// with which log messages are timestamped. |
| 200 |
// |
| 201 |
// The timestamp frequency will be interpreted as: |
| 202 |
// |
| 203 |
// 0 no timestamping. |
| 204 |
// 1 timestamp every message. |
| 205 |
// n timestamp every n messages. |
| 206 |
// |
| 207 |
// The default is 0. |
| 208 |
// |
| 209 |
//TIMESTAMP_FREQUENCY 0 |
| 210 |
</code></pre> |
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
<a name="gff_out"></a><H3>GFF output, unknown fields</H3> |
| 215 |
|
| 216 |
<P>When AceDB outputs features from an FMap in GFF format, there may be fields |
| 217 |
that it doesn't have data for, e.g. the "source" field. AceDB used to output |
| 218 |
the string "unknown" for these fields, but this is not distinctive enough as curators sometimes |
| 219 |
use this string as the value for GFF_source tag in their methods. In future |
| 220 |
AceDB will output the string "*UNKNOWN*" for any field in a GFF record for which |
| 221 |
it cannot establish a value, hence you will be able to distinguish between features |
| 222 |
that you want to call "unknown" and actual missing data in the database. |
| 223 |
|
| 224 |
|
| 225 |
|
| 226 |
<!-- ******************************************************************** --> |
| 227 |
<P><hr width="62%" align=left> |
| 228 |
<a name="Articles"></a><H2>Articles</H2> |
| 229 |
|
| 230 |
<a name="gene_features"></a><H3>New Gene Features program available</H3> |
| 231 |
|
| 232 |
<P>(<I>This article is courtesy of Rob Clack |
| 233 |
<A HREF="mailto:[email protected]">[email protected]</A> & Kevin Howe |
| 234 |
<A HREF="mailto:[email protected]">[email protected]</A></I>) |
| 235 |
|
| 236 |
<P>You can now |
| 237 |
<A HREF="http://www.acedb.org/Software/Downloads/monthly.shtml">download</A> |
| 238 |
a separate executable which uses the Phil Green/LaDeana Hillier's |
| 239 |
gene finder program to search for localised gene finder features. |
| 240 |
|
| 241 |
<P>The standalone genefeatures program scans a FASTA-format sequence for |
| 242 |
localised gene features which it then writes to stdout in GFF format. |
| 243 |
|
| 244 |
<P>To achieve this it uses a series of example profiles, both positive |
| 245 |
examples of the feature of interest and matching "pseudo" examples (eg |
| 246 |
pieces of sequence which have some splice-site characteristics, but are |
| 247 |
not splice-sites.) |
| 248 |
|
| 249 |
<P>The program was originally based on Phil Green and LaDeana Hillier's |
| 250 |
GENEFINDER program, some bits of which have been incorporated into fMap. |
| 251 |
|
| 252 |
<P>Thanks to Kevin Howe for help/programming. |
| 253 |
|
| 254 |
|
| 255 |
|
| 256 |
|
| 257 |
|
| 258 |
<!-- ******************************************************************** --> |
| 259 |
<P><hr width="62%" align=left> |
| 260 |
<a name="Bugs_Fixed"></a><H2>Bugs Fixed</H2> |
| 261 |
|
| 262 |
|
| 263 |
<a name="active_feature"></a><H3>Losing the active feature on scrolling in FMap</H3> |
| 264 |
|
| 265 |
<P>An old and frustrating bug for annotators has been fixed. It used to be |
| 266 |
that if you selected a feature and then in scrolling up/down that feature |
| 267 |
went off the screen, FMap would forget that you had selected the feature, |
| 268 |
so then you had to click it again. Now you will find that FMap can just about |
| 269 |
always remember which feature you selected, the only exception being if you scroll |
| 270 |
so far up/down that the feature is no longer in the calculated section of |
| 271 |
sequence that FMap is displaying. |
| 272 |
|
| 273 |
|
| 274 |
<a name="server_messages"></a><H3>Server exit message twice</H3> |
| 275 |
|
| 276 |
<P>A minor bug: the server used to output its exit message to the server log |
| 277 |
twice, this is now fixed. |
| 278 |
|
| 279 |
|
| 280 |
|
| 281 |
<!-- ******************************************************************** --> |
| 282 |
<P><hr width="62%" align=left> |
| 283 |
<a name="Developers_Corner"></a><H2>Developers Corner</H2> |
| 284 |
|
| 285 |
|
| 286 |
<a name="dotter_bug"></a><H3>Incredible dotter bug</H3> |
| 287 |
|
| 288 |
<P>Fixed an incredible bug in dotter: |
| 289 |
|
| 290 |
<pre>Here's how xqseqDisp is declared: |
| 291 |
|
| 292 |
<code>static char xqseqDisp[3][MAXALIGNLEN+1] ;</code> |
| 293 |
|
| 294 |
Here's how xqseqDisp is initialised: |
| 295 |
|
| 296 |
<code> for (i = 0; i < MAXALIGNLEN; i++) |
| 297 |
qseqDisp[i] = sseqDisp[i] = |
| 298 |
xqseqDisp[0][i] = xqseqDisp[2][i] = xqseqDisp[3][i] = |
| 299 |
qseqDispCrick[i] = sseqDispCrick[i] = 0;</code> |
| 300 |
</pre> |
| 301 |
|
| 302 |
<P>Youch, we go clean off the end of the xqseqDisp array with xqseqDisp[3][i], thanks to the |
| 303 |
Alpha compiler for spotting that one buried in the code. |
| 304 |
|
| 305 |
|
| 306 |
<a name="array_bug"></a><H3>Array and keyset bug</H3> |
| 307 |
|
| 308 |
<P>Thanks to Rob for sorting this one out: |
| 309 |
|
| 310 |
<P>Fixed bug where key is inserted at posn 0 in array, |
| 311 |
but code thought index of -1 meant array was empty. |
| 312 |
Changed to use arrayMax to verify array size. |
| 313 |
|
| 314 |
|
| 315 |
|
| 316 |
<a name="graph_call"></a><H3>New graph package call</H3> |
| 317 |
|
| 318 |
<P>A small additional function has been added to the graph package, you can now set |
| 319 |
the size of graphs of <b>any</b> type specifying pixels for the size using graphRawBounds(). |
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
<a name="graph_changes"></a><H3>Some changes to the gex/graph package</H3> |
| 324 |
|
| 325 |
<P>To implement keyboard shortcuts the keyboard callback routines had to be |
| 326 |
changed to allow the keyboard modifier (Ctrl, shift etc) to be passed back as |
| 327 |
well as the key. The GTK layer now passes back modifier keys that are pressed |
| 328 |
at the same time as normal keys. This allows the graph package to pass such |
| 329 |
key presses through to FMap or other graph package based displays. |
| 330 |
|
| 331 |
<P>Note that where possible these actions are dealt with at the GTK level, in |
| 332 |
FMap for instance, horizontal scrolling can be dealt with at the GTK level, |
| 333 |
as horizontal scrolling is via a GTK widget. Vertical scrolling is dealt with |
| 334 |
at the graph/FMap level because it involves the FMap type scroll bar. |
| 335 |
By dealing with these simpler user interface actions at the GTK level we make |
| 336 |
them generally available to all displays that use GTK type widgets for scrolling |
| 337 |
etc. |
| 338 |
|
| 339 |
|
| 340 |
|
| 341 |
<a name="build_changes"></a><H3>Some changes to the build system</H3> |
| 342 |
|
| 343 |
<P>The AceDB home directory is now a little less full as all build log files |
| 344 |
are now held in a .BUILDLOGS subdirectory. If a build fails look in here for |
| 345 |
the log files to see what went wrong. |
| 346 |
|
| 347 |
|
| 348 |
|
| 349 |
<a name="smap_changes"></a><H3>Some changes to smap to fix a pernicious bug</H3> |
| 350 |
|
| 351 |
<P>By default smap clips the coordinates of mapped features to the coordinate |
| 352 |
range specified, this resulted in a bug in sMapMapEx(). |
| 353 |
sMapMapEx() needs to know the true length of the parent, not the clipped length. |
| 354 |
The length is needed so that features that are reversed with respect to the parent and hence |
| 355 |
must be positioned from the <b>end</b> of the parent can be positioned correctly. |
| 356 |
To do this the SMapKeyInfoStruct has to hold the length of the parent. |
| 357 |
|
| 358 |
<P>The function now also checks to see if a feature |
| 359 |
is outside the area of the smap and return the new SMAP_STATUS_OUTSIDE_AREA |
| 360 |
code for this. We need this because its possible for a feature to be mapped |
| 361 |
correctly but still be outside the specified coordinate range for a particular |
| 362 |
mapping. |
| 363 |
|
| 364 |
|
| 365 |
<!-- ******************************************************************** --> |
| 366 |
<P><hr width="62%" align=left> |
| 367 |
<a name="Monthly_Build"><H2>March monthly build now available.</H2> |
| 368 |
|
| 369 |
<P>You can pick up the monthly builds from: |
| 370 |
<dl> |
| 371 |
<dt><b>Sanger users</b> |
| 372 |
<dd>~acedb/RELEASE.DEVELOPMENT |
| 373 |
<dt><b>External users</b> |
| 374 |
<dd><A href="http://www.acedb.org/Software/Downloads/monthly.shtml"> |
| 375 |
http://www.acedb.org/Software/Downloads/monthly.shtml</A> |
| 376 |
</dl> |
| 377 |
|
| 378 |
<!-- ******************************************************************** --> |
| 379 |
<P><hr width="62%" align=left> |
| 380 |
<a name="User_Group"><H2>Next User Group Meeting - D319, 3.00pm, Thursday, 10th April 2003</H2> |
| 381 |
|
| 382 |
<!-- ******************************************************************** --> |
| 383 |
<HR> |
| 384 |
<HR> |
| 385 |
|
| 386 |
<ADDRESS><A href="mailto:[email protected]">Ed Griffiths <[email protected]></A></ADDRESS> |
| 387 |
<!-- hhmts start --> |
| 388 |
Last modified: Fri Apr 4 15:14:26 BST 2003 |
| 389 |
<!-- hhmts end --> |
| 390 |
|
| 391 |
</BODY> |
| 392 |
</HTML> |