aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-05-31 12:22:24 +0300
committerBonfaceKilz2024-06-01 23:57:00 +0300
commit69cb03484eea2c7011ac4c838a448b02307a4b55 (patch)
tree3d8d5dbecb2e7263a620d992263aa106ecfd12d5 /gn3/api
parenta85cc6496c4656a53db13d52152ee37278869e11 (diff)
downloadgenenetwork3-69cb03484eea2c7011ac4c838a448b02307a4b55.tar.gz
Add geneRIF prefix.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/search.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gn3/api/search.py b/gn3/api/search.py
index c741b15..4e35867 100644
--- a/gn3/api/search.py
+++ b/gn3/api/search.py
@@ -211,6 +211,7 @@ def parse_query(synteny_files_directory: Path, query: str):
queryparser.add_boolean_prefix("chr", chromosome_prefix)
queryparser.add_boolean_prefix("peakchr", "XPC")
queryparser.add_prefix("description", "XD")
+ queryparser.add_prefix("rif", "XRF")
range_prefixes = ["mean", "peak", "position", "peakmb", "additive", "year"]
for i, prefix in enumerate(range_prefixes):
# Treat position specially since it needs its own field processor.