Skip to content

Commit

Permalink
Merge pull request #53 from camiel-m/master
Browse files Browse the repository at this point in the history
pygreat custom background
  • Loading branch information
cbravo93 authored Jan 17, 2023
2 parents 1e354e6 + d38c8e7 commit 242c2a4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pycisTopic/pyGREAT.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,15 @@ def pyGREAT_oneset(
"twoDistance": two_distance,
"oneDistance": one_distance,
"includeCuratedRegDoms": include_curated_reg_doms,
"bgChoice": bg_choice,
"bgChoice": "file" if (bg_choice != 'wholeGenome') else 'wholeGenome',
"fgChoice": "file",
}

files = {"fgFile": open(bed_file, "r")}
if bg_choice == 'wholeGenome':
files = {"fgFile": open(bed_file, "r")}
else:
files = {"fgFile": open(bed_file, "r"), "bgFile": open(bg_choice, "r")}

# Launch job
r = requests.post(url, data=params, files=files)
# Get results
Expand Down

0 comments on commit 242c2a4

Please sign in to comment.