We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1e354e6 + d38c8e7 commit 242c2a4Copy full SHA for 242c2a4
pycisTopic/pyGREAT.py
@@ -260,11 +260,15 @@ def pyGREAT_oneset(
260
"twoDistance": two_distance,
261
"oneDistance": one_distance,
262
"includeCuratedRegDoms": include_curated_reg_doms,
263
- "bgChoice": bg_choice,
+ "bgChoice": "file" if (bg_choice != 'wholeGenome') else 'wholeGenome',
264
"fgChoice": "file",
265
}
266
267
- files = {"fgFile": open(bed_file, "r")}
+ if bg_choice == 'wholeGenome':
268
+ files = {"fgFile": open(bed_file, "r")}
269
+ else:
270
+ files = {"fgFile": open(bed_file, "r"), "bgFile": open(bg_choice, "r")}
271
+
272
# Launch job
273
r = requests.post(url, data=params, files=files)
274
# Get results
0 commit comments