| 1 |
<HTML> |
| 2 |
|
| 3 |
<HEAD> |
| 4 |
<TITLE>ACEDB User Group Newsletter - July 2002</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 - July 2002</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>Several new features this month including a "-tsuser" option so you can |
| 36 |
fake who is doing the updates to a database (!), a "nosave" command so you |
| 37 |
can test scripts without destroying your favourite database, the fixing of |
| 38 |
numerous bugs and some stuff about the coming of Smap. |
| 39 |
|
| 40 |
|
| 41 |
<!-- ******************************************************************** --> |
| 42 |
<P><hr width="62%" align=left> |
| 43 |
<a name="General_News"></a><H2>General News</H2> |
| 44 |
|
| 45 |
<P>We continue to wade through the introduction of SMap into FMap and it |
| 46 |
continues to produce unexpected bugs but we are getting there. |
| 47 |
|
| 48 |
|
| 49 |
<!-- ******************************************************************** --> |
| 50 |
<P><hr width="62%" align=left> |
| 51 |
<a name="New_Features"></a><H2>New Features</H2> |
| 52 |
|
| 53 |
|
| 54 |
<a name="tsuser_option"></a><H3>New <code>-tsuser</code> command line option</H3> |
| 55 |
|
| 56 |
<P>All AceDB programs now accept a <code>-tsuser</code> commandline option |
| 57 |
of the format: |
| 58 |
|
| 59 |
<pre><code>-tsuser "new_username"</code> |
| 60 |
</pre> |
| 61 |
|
| 62 |
<P>By default the username for a database session is the userid you logged in with. |
| 63 |
You can use <code>-tsuser</code> to set a different username for the session. This is |
| 64 |
useful in at least two situations: |
| 65 |
|
| 66 |
<ol> |
| 67 |
<li>If you are using various scripts to interface to tace or giface to make updates |
| 68 |
to the database, you can use the <code>-tsuser</code> option to use the name of |
| 69 |
the script instead of your login name for the updates, that way you can be sure |
| 70 |
which updates were made by which scripts. |
| 71 |
<li>If you have a number of developers who all access |
| 72 |
the database from the same userid for access permissions reasons, by setting the |
| 73 |
username for each database user you can keep track of the updates made by the |
| 74 |
different users. |
| 75 |
</ol> |
| 76 |
|
| 77 |
|
| 78 |
<a name="nosave"></a><H3>New "Nosave" command</H3> |
| 79 |
|
| 80 |
<P>You can now turn on and off saving by acedb using the "Nosave" command: |
| 81 |
|
| 82 |
<pre><code>NoSave [-stop | -start] |
| 83 |
Stop or start all database saving, the -stop option prevents any saving by any command, |
| 84 |
you must use the -start option to turn saving on again. |
| 85 |
-stop (default) turn saving off |
| 86 |
-start turn saving on. |
| 87 |
</code></pre> |
| 88 |
|
| 89 |
<P>This is particularly useful if you want to test scripts that use tace for large |
| 90 |
scale database updates without accidentally altering the database during testing. By setting |
| 91 |
saving off at the start of the script, you can get all your data parsed by acedb so see if |
| 92 |
its correct but it won't be saved in the database. |
| 93 |
|
| 94 |
|
| 95 |
<a name="smap_command"></a><H3>New giface "smap" command</H3> |
| 96 |
|
| 97 |
<P>SMap has been made available via the giface interface so it's possible to find out the |
| 98 |
positions of one feature in its parent. The command interface is: |
| 99 |
|
| 100 |
<pre><code>smap -coords x1 x2 -from class:object -to class:object |
| 101 |
</code></pre> |
| 102 |
|
| 103 |
<P>The command maps the coordinates x1, x2 (default is the whole object) |
| 104 |
in the "-from object" to coordinates in the "-to object", the former must be a |
| 105 |
child of the latter via SMap or Sequence tags. |
| 106 |
|
| 107 |
<P>The command returns a string in the following format: |
| 108 |
|
| 109 |
<pre><code>"SMAP class:name y1 y2 nx1 nx2 status" |
| 110 |
</code></pre> |
| 111 |
|
| 112 |
<P>Where |
| 113 |
<ul> |
| 114 |
<li><b>class:name</b> is the class and name of the parent object. |
| 115 |
<li><b>y1 y2</b> are the coordinates of the child in the parent object. |
| 116 |
<li><b>nx1 nx2</b> are the coordinates in the child that were actually mapped |
| 117 |
to produce <b>y1</b> and <b>y2</b>, these will have changed if the original |
| 118 |
coordinates had to be clipped to fit in the range of the parent object. |
| 119 |
<li><b>status</b> is an smap status code which indicates whether the mapping |
| 120 |
was perfect or clipped in some way. |
| 121 |
</ul> |
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
<!-- ******************************************************************** --> |
| 126 |
<P><hr width="62%" align=left> |
| 127 |
<a name="Articles"></a><H2>Articles</H2> |
| 128 |
|
| 129 |
|
| 130 |
<a name="match_table"></a><H3>Removal of Match_Table support</H3> |
| 131 |
|
| 132 |
<P>Prior to the introduction of SMap, there was a problem with large numbers |
| 133 |
of homologies being processed/displayed in the FMap because the homologies had to be |
| 134 |
embedded in the Sequence objects. The Match_Table tags could be |
| 135 |
used to specify which homologies were processed/displayed. |
| 136 |
Few users made use of this tag and since the SMap now allows |
| 137 |
homologies to be held outside of the sequence objects, support for these tags has |
| 138 |
been removed from the code (as advertised in the acedb newsgroup some months ago). |
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
<!-- ******************************************************************** --> |
| 143 |
<P><hr width="62%" align=left> |
| 144 |
<a name="Bugs_Fixed"></a><H2>Bugs Fixed</H2> |
| 145 |
|
| 146 |
|
| 147 |
<a name="gff_dump"></a><H3>Bug in GFF dumper</H3> |
| 148 |
|
| 149 |
<P>Code was added to flip the strand of ESTs that were sequenced in reverse |
| 150 |
so that they were displayed on the correct strand in Fmap. These were not |
| 151 |
flipped back for GFF dumping, this is now fixed. |
| 152 |
|
| 153 |
|
| 154 |
<a name="confirmed_intron"></a><H3>Bug in Confirmed Intron code</H3> |
| 155 |
|
| 156 |
<P>A bug in the code that allocated segs for confirmed introns |
| 157 |
<b>sometimes</b> corrupted the parent sequences reference to its seqinfo struct, |
| 158 |
this caused the genomic canonical column to be incomplete. |
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
<a name="CDS"></a><H3>Bug in CDS positioning</H3> |
| 163 |
|
| 164 |
<P>The CDS positioning code did not handle exons of length 1, now fixed. |
| 165 |
|
| 166 |
|
| 167 |
<a name="blixem"></a><H3>Bug in blixem call to pfetch sequence</H3> |
| 168 |
|
| 169 |
<P>Code was giving wrong args to pfetch to get <b>just</b> the sequence, |
| 170 |
now fixed. |
| 171 |
|
| 172 |
|
| 173 |
<a name="CDS_draw"></a><H3>Bug in CDS drawing code</H3> |
| 174 |
|
| 175 |
<P>Obscure bug, a wrongly initialised variable led to incorrect drawing of the CDS, but |
| 176 |
only when two sequence objects with same method, |
| 177 |
on same strand in same position with CDS's were being displayed. |
| 178 |
|
| 179 |
<a name="Temp_Gene"></a><H3>Bugs in Temp Gene</H3> |
| 180 |
|
| 181 |
<P>A number of bugs have surfaced in the Temp Gene code caused by |
| 182 |
changing the code to recalculate after a new gene is made rather |
| 183 |
than just redraw. This included problems with working out reverse |
| 184 |
complement coords, initialise() no longer being called in the necessary |
| 185 |
places, a bug in corrupting the dna array surfaced, a bug in fMapFindSpan() |
| 186 |
and so on. All fixed now. |
| 187 |
|
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
<!-- ******************************************************************** --> |
| 193 |
<P><hr width="62%" align=left> |
| 194 |
<a name="Developers_Corner"></a><H2>Developers Corner</H2> |
| 195 |
|
| 196 |
<P>This month has seen a lot of bugs discovered and fixed which come down to |
| 197 |
problems with interactions between SMap and FMap and also the problems |
| 198 |
of introducing "recalculates" into parts of FMap where their used to be redraws |
| 199 |
which has revealed that FMap contains quite a lot of state that goes stale |
| 200 |
when this happens and produces bugs that are hard to notice and find the cause |
| 201 |
of. |
| 202 |
|
| 203 |
<P>I include the below simply as pointers to the type of things that have been going |
| 204 |
on: |
| 205 |
<ul> |
| 206 |
<li>Bug in sMapLength, if there are mixed sMap and ACE4 tags, we should |
| 207 |
use both. |
| 208 |
<li>Fix up sMapFindSpan so that it knows only about 1-based coords, this is |
| 209 |
the standard for smap stuff. |
| 210 |
Make sure that other smap calls used sMapFindSpan correctly. |
| 211 |
<li>Fix bug in sMapFindSpan(), meant that it would never find the span for |
| 212 |
the given coords. |
| 213 |
<li>clear look->chosen hash on recalculate - it contains stale data. |
| 214 |
<li>fix setStartstop to cope with 1,0 coords - as when called in giface |
| 215 |
<li>Fix code that does coords for recalculate, it was broken because we don't |
| 216 |
use fmapFindDNA any more which used to frig the coords. The new rules |
| 217 |
are encapsulated in setStartStop(). |
| 218 |
<li>Add code to fMapDoRecalculate() to make sure that any new start/stop |
| 219 |
include current active zone, this became a problem with smap code because |
| 220 |
we get hold of the sequence a bit differently, but was also a problem as |
| 221 |
far back as 4_7 if you scrolled in just the right way. |
| 222 |
<li>Fix up setTempGene() so that it works out reverse complement coords |
| 223 |
correctly because we now use keys, not segs, to do coords stuff. |
| 224 |
<li>Fix bad bug which sometimes corrupted the dna array by inserting a C |
| 225 |
"end of string" char but then not removing it. |
| 226 |
<li>initialise() was not called from all the places it should have been, this |
| 227 |
did not matter previously because bsUpdate() and other operations were |
| 228 |
done on _VSequence, now a static holds the class, if the static is not |
| 229 |
initialised the code eventually crashes because the key does not have the |
| 230 |
correct class for the bsNNN calls. |
| 231 |
<li>fMapFindSpan() is now really a call to sMapFindSpan() but this is all |
| 232 |
messed up because of confusion over coordinate systems: smap stuff should |
| 233 |
ALL BE ONE BASED. Otherwise you get bugs |
| 234 |
like the one in fmapgene where everything is suddenly off by one. |
| 235 |
<li>fix bug in seg flipping for complementing when something is clipped by smap, |
| 236 |
need to reverse which end is clipped. |
| 237 |
<li> |
| 238 |
</ul> |
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
<!-- ******************************************************************** --> |
| 243 |
<P><hr width="62%" align=left> |
| 244 |
<H2>July monthly build not available.</H2> |
| 245 |
|
| 246 |
<P>Apologies, once again there was no build this month due to the major |
| 247 |
SMap development work. |
| 248 |
|
| 249 |
|
| 250 |
<!-- ******************************************************************** --> |
| 251 |
<HR> |
| 252 |
<HR> |
| 253 |
|
| 254 |
<ADDRESS><A href="mailto:[email protected]">Ed Griffiths <[email protected]></A></ADDRESS> |
| 255 |
<!-- hhmts start --> |
| 256 |
Last modified: Thu Dec 19 09:38:51 GMT 2002 |
| 257 |
<!-- hhmts end --> |
| 258 |
|
| 259 |
</BODY> |
| 260 |
</HTML> |