Skip to content
Snippets Groups Projects
Commit e1c4bb41 authored by Vermaat's avatar Vermaat
Browse files

Fix off-by-one in slicing chromosome by gene name

The original code would always add one extra downstream base to
the slice (for genes on the forward and reverse strand).

Correcting this implies that cached slices will not be used by
new queries requesting the exact same gene and number of upstream
and downstream bases, effectively invalidating them.

However, most existing cache entries affected by this bug will be
on GRCh37/hg19, whereas current slices by gene name will yield
GRCh38/hg38 slices.

The only cache issue I see is trying to use existing cache
entries created by slicing by gene name, by re-slicing by
explicit coordinates instead of gene name. To get the old cache
entry one would have to add an extra downstream base.
parent 91306c15
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment