Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/alcamerone/codes3d
Browse files Browse the repository at this point in the history
  • Loading branch information
tayaza committed Jul 14, 2017
2 parents fab86c5 + 21cd84c commit 02ded34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codes3d/codes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,12 @@ def send_GTEx_query(num,num_reqLists,reqList,gtexResponses):
try:
while True:
print "\t\tSending request %s of %s" % (num,num_reqLists)
res = requests.post("http://gtexportal.org/api/v6p/dyneqtl?v=clversion", json=reqList)
res = requests.post("http://gtexportal.org/rest/v1/association/dyneqtl?v=clversion", json=reqList)
if res.status_code == 200:
gtexResponses.append((reqList,res))
time.sleep(30)
return
elif res.status_code == 500:
elif res.status_code == 500 or res.status_code == 400:
print "\t\tThere was an error processing request %s. Writing to failed request log and continuing." % num
gtexResponses.append((reqList,"Processing error"))
time.sleep(30)
Expand Down

0 comments on commit 02ded34

Please sign in to comment.