Skip to content

Commit

Permalink
Update seqr/utils/search/elasticsearch/es_search.py
Browse files Browse the repository at this point in the history
Update same chrom check

Co-authored-by: hanars <[email protected]>
  • Loading branch information
ShifaSZ and hanars authored Jul 21, 2023
1 parent 0bfcf57 commit 506506f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seqr/utils/search/elasticsearch/es_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -1413,8 +1413,8 @@ def _location_filter(genes, intervals, exclude_locations):
}
} for key in ['xpos', 'xstop']]
interval_q = _build_or_filter('range', range_filters)
interval_q |= Q('range', xpos={'lte': xstart}) & Q('range', xstop={'gte': xstop}) &\
Q('script', script="doc['xpos'].value / 1000000000 == doc['xstop'].value / 1000000000")
interval_q |= Q('range', xpos={'lte': xstart}) & Q('range', xstop={'gte': xstop}) &
Q('range', xpos={'gte': get_xpos(interval['chrom'], 0)}) & Q('range', xstop={'lte': get_xpos(interval['chrom'], MAX_POS)})

if q:
q |= interval_q
Expand Down

0 comments on commit 506506f

Please sign in to comment.