Mercurial > repos > insilicosolutions > cravat
changeset 1:c13857bac2c4 draft default tip
Updated for new CRAVAT server.
author | insilicosolutions |
---|---|
date | Tue, 08 Mar 2016 16:07:46 -0500 |
parents | 9e29dd2972ab |
children | |
files | cravat/cravat.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/cravat/cravat.py Wed May 13 15:24:18 2015 -0400 +++ b/cravat/cravat.py Tue Mar 08 16:07:46 2016 -0500 @@ -11,12 +11,13 @@ return False def query (line): - url = query_url + '?mutation=' + '_'.join(line.split()) - r = requests.get(url) + url = query_url + params = {'mutation': '_'.join(line.split())} + r = requests.get(url, params=params) annot = r.json() return annot -query_url = 'http://staging.cravat.us/rest/service/query' +query_url = 'http://www.cravat.us/rest/service/query' first_headers = ['ID', 'Chromosome',