diff options
author | Arun Isaac | 2023-01-15 17:36:30 +0000 |
---|---|---|
committer | Arun Isaac | 2023-01-18 01:15:47 +0000 |
commit | d4af1981e80614b4e1b8c1570b5d80d9bfbe6b67 (patch) | |
tree | 72c2965434709b37beb076c13f1a94d51c7a03c3 /sql | |
parent | e4f572c7e2b4a553ec5231a9d8440c0b39bee5e3 (diff) | |
download | genenetwork3-d4af1981e80614b4e1b8c1570b5d80d9bfbe6b67.tar.gz |
Support location shorthands in search queries.
* gn3/api/search.py: Import partial and reduce from functools. Import Callable
from typing.
(ChromosomalPosition, ChromosomalInterval, FieldProcessor): New classes.
(apply_si_suffix, combine_queries, parse_location_field, interval_start,
interval_end): New functions.
(parse_query): Add field processors for location shorthands.
Diffstat (limited to 'sql')
0 files changed, 0 insertions, 0 deletions