| 1 |
<HTML> |
| 2 |
<!--#include virtual="/perl/header" --> |
| 3 |
<!--#set var="author" value="[email protected]" --> |
| 4 |
|
| 5 |
<HEAD> |
| 6 |
<TITLE>SMap problems/enhancements etc.</TITLE> |
| 7 |
</HEAD> |
| 8 |
|
| 9 |
<BODY> |
| 10 |
|
| 11 |
|
| 12 |
<PRE> |
| 13 |
|
| 14 |
sMapLocalMap() |
| 15 |
-------------- |
| 16 |
|
| 17 |
sMapLocalMap() is broken in that it takes not notice of the input coords for the purposes of |
| 18 |
clipping the local alignment block coords. It just returns an array of gaps regardless of whether |
| 19 |
they are outside of the specified coordinate range. |
| 20 |
|
| 21 |
I discovered this when working on a bug which caused blixem to crash. The cause turned out to be |
| 22 |
that there was an EST alignment in the database, one block of which extended beyond the end of its |
| 23 |
parent object. Unfortunately sMapLocalMap() returns all the blocks which then a call to sMapMap() |
| 24 |
attempts to map, the code orginally ingnored the return status from sMapMap and passed on random |
| 25 |
coords to blixem. |
| 26 |
|
| 27 |
Really there is little point in sMapLocalMap() returning coords for blocks that are outside their |
| 28 |
parent, this is A WASTE OF TIME. |
| 29 |
|
| 30 |
The fix is to add range checking to sMapLocalMap() and change its function signature so that it |
| 31 |
returns a status like other mapping calls and returns the gaps array as an "in/out" call |
| 32 |
parameter: |
| 33 |
|
| 34 |
SMapStatus sMapLocalMap(OBJ obj, /* in parent located at #SmapInfo */ |
| 35 |
int pStart, /* start coord in parent */ |
| 36 |
int pEnd, /* end coord in parent */ |
| 37 |
STORE_HANDLE h, /* return array on this. */ |
| 38 |
Array *gaps) ; /* gaps array */ |
| 39 |
|
| 40 |
The way to test this is to create a parent smapped object with a homology child but make sure at |
| 41 |
least one of the blocks of the child is off the end of the parent. |
| 42 |
|
| 43 |
Here endeth the lesson...... |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
sMapMap() |
| 48 |
--------- |
| 49 |
|
| 50 |
This call and what it calls, sMapMapEx(), return values even when the thing to be mapped is |
| 51 |
outside the area. This is really STUPID as it encourages ignoring the status returned by these |
| 52 |
calls. I don't know who thought this was a good idea but it isn't. I don't have time to fix this |
| 53 |
just now but one day I will. |
| 54 |
|
| 55 |
|
| 56 |
</PRE> |
| 57 |
|
| 58 |
<!--#include virtual="/perl/footer" --> |
| 59 |
|
| 60 |
</BODY> |
| 61 |
</HTML> |