| 1 |
<HTML> |
| 2 |
|
| 3 |
<HEAD> |
| 4 |
<TITLE>ACEDB User Group Newsletter - April 2002</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 - April 2002</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 sees some new features to support driving of acedb programs |
| 33 |
from scripts, some Gene Finder changes and as usual some bug fixes. |
| 34 |
|
| 35 |
|
| 36 |
<!-- ******************************************************************** --> |
| 37 |
<P><hr width="62%" align=left> |
| 38 |
<a name="General_News"></a><H2>General News</H2> |
| 39 |
|
| 40 |
<P>We continue to work on the introduction of the new SMap code which is |
| 41 |
taking some time as it has many anticipated and many unanticipated (!) |
| 42 |
effects on the FMap code in particular. |
| 43 |
|
| 44 |
|
| 45 |
<!-- ******************************************************************** --> |
| 46 |
<P><hr width="62%" align=left> |
| 47 |
<a name="New_Features"></a><H2>New Features</H2> |
| 48 |
|
| 49 |
<a name="Save_write"></a><H3>New "Save" and "WriteAccess" commands/options</H3> |
| 50 |
|
| 51 |
<P>Previously users have had more control over saving and write access when |
| 52 |
using xace (e.g. "Save session and keep write access") |
| 53 |
than with the command line tace and giface programs. New options have been |
| 54 |
added to the "Save" command and a new "WriteAccess" command has been added: |
| 55 |
|
| 56 |
<pre><code>Save : [-drop | -regain] |
| 57 |
Save current state otherwise the system saves every 600 seconds |
| 58 |
-drop (default) drop write access after saving |
| 59 |
-regain regain write access after saving |
| 60 |
|
| 61 |
Writeaccess : [-gain | -drop [save | nosave]] |
| 62 |
Set write access status |
| 63 |
-gain (default) get write access |
| 64 |
-drop lose write access, with or without saving |
| 65 |
</code></pre> |
| 66 |
|
| 67 |
<P>These commands are particularly useful for scripts that need to update a |
| 68 |
database and perhaps need to hold on to write access while parsing in several |
| 69 |
files of data. |
| 70 |
|
| 71 |
|
| 72 |
<a name="xremote"></a><H3>New options for giface commands to give more power to xremote</H3> |
| 73 |
|
| 74 |
<P>The giface program allows the creation of "virtual" displays (e.g. fmap, gmap) |
| 75 |
and then the dumping of those displays in various formats, e.g. GFF, postscript, |
| 76 |
etc. Perhaps less well known is that xace can be driven by the same commands |
| 77 |
via the xremote program distributed with AceDB. |
| 78 |
|
| 79 |
<P>For instance: |
| 80 |
|
| 81 |
<pre><code>xremote -remote 'gif ; seqget bA314N13 ; seqdisplay'</code> |
| 82 |
</pre> |
| 83 |
|
| 84 |
<P>Will get you an FMap of clone bA314N13 displayed by xace (you must have xace running |
| 85 |
<b>before</b> you issue the xremote command. |
| 86 |
|
| 87 |
<P>This mechansim is used as a core part of the <b>"lace"</b> annotation tool maintained by |
| 88 |
James Gilbert |
| 89 |
<A href="mailto:[email protected]">James Gilbert <[email protected]></A> |
| 90 |
for the human annotation project at the Sanger Institute. |
| 91 |
|
| 92 |
<P>The new options include: |
| 93 |
|
| 94 |
<pre><code><b>seqdisplay</b> ..... [-new] [-title title] |
| 95 |
Works on current sequence, use gif or ps to actually dump the display |
| 96 |
-new make a new sequence, current one is preserved (for use only with xremote currently) |
| 97 |
-title give your own title to the sequence |
| 98 |
</code></pre> |
| 99 |
|
| 100 |
<pre><code><b>seqrecalc</b> |
| 101 |
Causes the sequence to be recalculated for the active graph |
| 102 |
</code></pre> |
| 103 |
|
| 104 |
|
| 105 |
<P>You could for example use the new commands/options to construct a script which: |
| 106 |
|
| 107 |
<ol> |
| 108 |
<li>Starts up an xace for the user, and then automatically displays a sequence |
| 109 |
in an fmap: |
| 110 |
<pre><code>xremote -remote 'gif ; seqget sequence_name ; seqdisplay'</code> |
| 111 |
</pre> |
| 112 |
<li>Adds new data into the database and gets the fmap to recalculate and show |
| 113 |
the new data by: |
| 114 |
<pre><code>xremote -remote 'gif ; seqrecalc'</code> |
| 115 |
</pre> |
| 116 |
<li>Replaces the sequence in the fmap with a new sequence: |
| 117 |
<pre><code>xremote -remote 'gif ; seqget new_sequence_name ; seqdisplay'</code> |
| 118 |
</pre> |
| 119 |
<li>Displays a new sequence in an entirely new fmap (which becomes the current fmap, the existing |
| 120 |
current one is preserved): |
| 121 |
<pre><code>xremote -remote 'gif ; seqget another_sequence_name ; seqdisplay -new -title "Super New Sequence'</code> |
| 122 |
</pre> |
| 123 |
</ol> |
| 124 |
|
| 125 |
|
| 126 |
<P><hr width="62%" align=left> |
| 127 |
<H2>March monthly build not available.</H2> |
| 128 |
|
| 129 |
<P>Apologies, once again there was no build this month due to the major |
| 130 |
SMap development work. |
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
<!-- ******************************************************************** --> |
| 137 |
<P><hr width="62%" align=left> |
| 138 |
<a name="Articles"></a><H2>Articles</H2> |
| 139 |
|
| 140 |
|
| 141 |
<a name="gfcode"></a><H3>Gene Finder changes</H3> |
| 142 |
|
| 143 |
<P><A HREF="mailto:[email protected]">Kevin Howe <[email protected]></A> |
| 144 |
has made some changes to the Gene Finder code (originally written by Phil |
| 145 |
Green of Washington University Medical School) which while not strictly |
| 146 |
affecting acedb are worth documenting here (most of the changes affect |
| 147 |
the stand alone version of the gene finder code). |
| 148 |
|
| 149 |
<P>Kevins comments: |
| 150 |
|
| 151 |
<P>You can do a diff on the file yourself to see what I've changed. The |
| 152 |
standalone-only stuff I've protected with "#ifndef ACEDB", but I'll |
| 153 |
just summarise the other changes here: |
| 154 |
|
| 155 |
<ol> |
| 156 |
<li>The array "cumVec" is now double instead of float (and this has |
| 157 |
some knock-on effects in places where this array is used/passed, |
| 158 |
parameter types etc). This is because the float precision is |
| 159 |
inadequate for sequences more than 10kb or so. You may want to change |
| 160 |
this back. |
| 161 |
<li>I've changed the constant SEGSCORECUTOFF from a #define to a static |
| 162 |
float. This is so that the value can be modified by a command-line |
| 163 |
option in the standalone version. |
| 164 |
<li>The main calculation of the coding segments and genefinder features |
| 165 |
in "aceFeatures" and "aceSites" is now protected with checks that |
| 166 |
that tables for each site-type are non-null. This will have no |
| 167 |
impact in ACEDB, because the tables are always non-null, but I've |
| 168 |
extended the standalone version to be more flexible in what it |
| 169 |
expects in the tables file. If you don't want ATG predictions, then |
| 170 |
you can make a tables file with no ATG tables, and the code will now |
| 171 |
happily not try to predict ATGs. |
| 172 |
<li>In aceMaxSegs, there was a mistake which meant that some GF_CODING |
| 173 |
segments were calculated in the wrong frame, which I've fixed. In |
| 174 |
aceFeatures, I also added a fix which ensures that coding segments |
| 175 |
that bridge a stop codon are broken into two segments, one either |
| 176 |
side. I discussed this one with Richard and he agreed that this is |
| 177 |
the now the correct behaviour. |
| 178 |
</ol> |
| 179 |
|
| 180 |
|
| 181 |
<!-- ******************************************************************** --> |
| 182 |
<P><hr width="62%" align=left> |
| 183 |
<a name="Bugs_Fixed"></a><H2>Bugs Fixed</H2> |
| 184 |
|
| 185 |
|
| 186 |
<a name="show_as"></a><H3>Inappropriate "Show As" actions</H3> |
| 187 |
|
| 188 |
<P>The code to decide what to do when a user tried to display an object |
| 189 |
from the keyset window when the "Show as" display type was incorrect did not |
| 190 |
always work very sensibly or, in some cases, did not work at all. |
| 191 |
|
| 192 |
<P>The code to decide what to do when there was an object/display type mismatche |
| 193 |
was scattered across some 15 files which compounded the problem. |
| 194 |
All the code to choose what to do is now in display.c and takes a consistent |
| 195 |
series of steps to cope with this problem, ending with the Tree display if no other |
| 196 |
appropriate display can be found. In addition the |
| 197 |
code will now warn the user when the object simply cannot be displayed. |
| 198 |
|
| 199 |
|
| 200 |
<a name="restriction"></a><H3>Buglet in restriction dialog for Fmap</H3> |
| 201 |
|
| 202 |
<P>The search pattern in the dialog box is now also reset to blank when the |
| 203 |
user clicks the "clear" button. |
| 204 |
|
| 205 |
|
| 206 |
<a name="gff_dump"></a><H3>Bad bug in the GFF dumper.</H3> |
| 207 |
|
| 208 |
<P>A change in the way the strings that hold an objects name are handled |
| 209 |
caused the GFF dumper to reference deallocated storage when printing out |
| 210 |
the objects name, now fixed. |
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
<!-- ******************************************************************** --> |
| 215 |
<P><hr width="62%" align=left> |
| 216 |
<a name="Developers_Corner"></a><H2>Developers Corner</H2> |
| 217 |
|
| 218 |
<P>If you wish to make comments/suggestions about any of the below, please mail them |
| 219 |
to <A HREF="mailto:[email protected]">[email protected]</A> |
| 220 |
|
| 221 |
|
| 222 |
<a name="bindex"></a><H3>Replacing bIndexFind() with bIndexTag()</H3> |
| 223 |
|
| 224 |
<P>The bindex package in acedb provides a call to use the index to test |
| 225 |
whether a particular tag exists in an object: |
| 226 |
|
| 227 |
<pre><code>BindexFindResult bIndexFind(KEY originalKey, KEY tag) ;</code> |
| 228 |
</pre> |
| 229 |
|
| 230 |
<P>But there is a trap for the unwary here in that the call can return |
| 231 |
one of three possible values (BINDEX_TAG_ABSENT, BINDEX_TAG_UNCLEAR, BINDEX_TAG_PRESENT) |
| 232 |
and its very easy to forget this and write code that assumes that a Boolean value is |
| 233 |
returned: |
| 234 |
|
| 235 |
<pre><code>if (bIndexFind(key,tag))</code> |
| 236 |
</pre> |
| 237 |
|
| 238 |
<P>This call will sometimes return BINDEX_TAG_UNCLEAR and sometimes BINDEX_TAG_PRESENT |
| 239 |
with consequent confusion in the code following the test. |
| 240 |
|
| 241 |
<P>In fact Jean had already added some functions (keyGetNNN) to bssubs.c |
| 242 |
to use bIndexFind() but then open the object and look for the tag if the |
| 243 |
return from bIndexFind() was BINDEX_TAG_UNCLEAR. These calls returned an unambiguous |
| 244 |
Boolean value to indicate whether the tag was present or absent. |
| 245 |
|
| 246 |
<P>These calls have now been renamed and moved to bindex.c as it seems more logical/obvious |
| 247 |
for them to be with bIndexFind, they are: |
| 248 |
|
| 249 |
|
| 250 |
<P><code><b>BOOL bIndexTag(KEY key, KEY tag) ;</b></code> |
| 251 |
|
| 252 |
<P>returns <b>TRUE</b> if <b>tag</b> is found in object <b>key</b>. |
| 253 |
|
| 254 |
<P><code><b>BOOL bIndexGetKey(KEY key, KEY tag, KEY *key_out) ;</b></code> |
| 255 |
|
| 256 |
<P>returns <b>TRUE</b> if |
| 257 |
<b>tag</b> is found in object <b>key</b> and will return the key following <b>tag</b> |
| 258 |
in <b>key_out</b> if <b>key_out</b> is non-NULL. |
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
<!-- ******************************************************************** --> |
| 263 |
<P><hr width="62%" align=left> |
| 264 |
<H2>April monthly build not available.</H2> |
| 265 |
|
| 266 |
<P>Apologies, once again there was no build this month due to the major |
| 267 |
SMap development work. |
| 268 |
|
| 269 |
|
| 270 |
<!-- ******************************************************************** --> |
| 271 |
<HR> |
| 272 |
<HR> |
| 273 |
|
| 274 |
<ADDRESS><A href="mailto:[email protected]">Ed Griffiths <[email protected]></A></ADDRESS> |
| 275 |
<!-- hhmts start --> |
| 276 |
Last modified: Mon Nov 11 12:25:27 GMT 2002 |
| 277 |
<!-- hhmts end --> |
| 278 |
|
| 279 |
</BODY> |
| 280 |
</HTML> |