aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHao Chen2019-06-01 18:13:23 -0500
committerHao Chen2019-06-01 18:13:23 -0500
commit19bc3078c06bef3c10c55dc6e69018e595d07d17 (patch)
tree4869183b20e37b97f28d5f878710d671503534e7
parentbe674bf79b029ac7f54a4eab1ba5ba59faca02dc (diff)
downloadgenecup-19bc3078c06bef3c10c55dc6e69018e595d07d17.tar.gz
ignore LOCxxx
-rwxr-xr-xserver.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/server.py b/server.py
index 7efdd5f..d312a5a 100755
--- a/server.py
+++ b/server.py
@@ -24,6 +24,7 @@ def progress():
genes=request.args.get('query')
genes=genes.replace(",", " ")
genes=genes.replace(";", " ")
+ genes=re.sub(r'\bLOC\d*?\b', "", genes, flags=re.I)
genes=genes.split()
if len(genes)>=100:
message="<span class='text-danger'>Up to 100 terms can be searched at a time</span>"