avetisk/j.nome.s — Issue #3: Profiles' 3' extremities do not reset to 0
Author: sopo
Created: 2012-02-08 16:57:55+00:00
State: open
Labels: bug

Data is loaded in the following format in the database :

```
seqid start end score

scaffold_158 2174349 2174356 1
scaffold_158 2174356 2174362 0
scaffold_158 2174362 2174369 1
scaffold_158 2174369 2174371 0
scaffold_158 2174371 2174378 1
scaffold_1580 0 14911 0
scaffold_1580 14911 14914 1
scaffold_1580 14914 14916 2
scaffold_1580 14916 14919 1
scaffold_1580 14919 15640 0
scaffold_1580 15640 15645 1
```

Given that the seqid total length is not known when computing the profile, it should be assumed that from the last explicit position to the end position of the seqid (which is implicit), the score should be 0. The current behaviour is to set the score of the implicit positions to the last known score, resulting in systematic artefactual plateaux. (In the provided example, for the seqid "scaffold_158", the score from 2,174,378 to the end of the seqid [2,214,290] is set to 1 instead of 0)