Skip to content

Commit 7952bf7

Browse files
committed
Fix FetchAPE for changed directory structure, support all genomes
1 parent 6dc68d1 commit 7952bf7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/primer-design/FetchAPE.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import os.path
66
import requests
77
import json
8+
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../helpers'))
89
from classes.Gene import Gene
910
from classes.Gene import returnError
1011
from Config import Config
@@ -95,8 +96,9 @@ def main():
9596
args = cgi.FieldStorage()
9697
geneSymbol = args.getvalue('gene')
9798
ENSID = args.getvalue('ENSID')
98-
#SINCE THIS IS ONLY CALLED FROM THE musmusculims DATABASE, WE DEFAULT genome TO 'mm10'
99-
genome = 'mm10'
99+
genome = args.getvalue('genome')
100+
if not genome:
101+
printError("No genome assembly provided")
100102
dbConnection = Config(genome)
101103

102104
# if ENSID is provided, we always use it to infer the geneSymbol

0 commit comments

Comments
 (0)