Skip to content

Commit

Permalink
Updated resource URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Ekblad committed Jun 26, 2017
1 parent 58685dc commit 21cd84c
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 21cd84c

Please sign in to comment.