Skip to content

Commit 242c2a4

Browse files
authored
Merge pull request #53 from camiel-m/master
pygreat custom background
2 parents 1e354e6 + d38c8e7 commit 242c2a4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pycisTopic/pyGREAT.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,15 @@ def pyGREAT_oneset(
260260
"twoDistance": two_distance,
261261
"oneDistance": one_distance,
262262
"includeCuratedRegDoms": include_curated_reg_doms,
263-
"bgChoice": bg_choice,
263+
"bgChoice": "file" if (bg_choice != 'wholeGenome') else 'wholeGenome',
264264
"fgChoice": "file",
265265
}
266266

267-
files = {"fgFile": open(bed_file, "r")}
267+
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+
268272
# Launch job
269273
r = requests.post(url, data=params, files=files)
270274
# Get results

0 commit comments

Comments
 (0)