# HG changeset patch # User earlhaminst # Date 1603206397 0 # Node ID 0618e3bd5138c6215d23751e89e18faf512c543e # Parent 675fd774314e5c9cbead3e530998d1fb35f92c3f "planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/Ensembl-REST commit 17c65045b726d0695814bfe761e534f6521786f1" diff -r 675fd774314e -r 0618e3bd5138 get_feature_info.py --- a/get_feature_info.py Thu Oct 31 07:49:30 2019 -0400 +++ b/get_feature_info.py Tue Oct 20 15:06:37 2020 +0000 @@ -23,7 +23,7 @@ raise Exception('-i option must be specified') -server = 'http://rest.ensembl.org' +server = 'https://rest.ensembl.org' ext = 'lookup/id' headers = {'Content-Type': 'application/json', 'Accept': 'application/json'} @@ -42,7 +42,7 @@ print(",") data = {'ids': ids} r = requests.post(urljoin(server, ext), params=params, headers=headers, - data=json.dumps(data)) + data=json.dumps(data), allow_redirects=False) if not r.ok: r.raise_for_status() diff -r 675fd774314e -r 0618e3bd5138 get_genetree.py --- a/get_genetree.py Thu Oct 31 07:49:30 2019 -0400 +++ b/get_genetree.py Tue Oct 20 15:06:37 2020 +0000 @@ -31,7 +31,7 @@ if options.input is None: raise Exception('-i option must be specified') -server = 'http://rest.ensembl.org' +server = 'https://rest.ensembl.org' if options.id_type == 'gene_id': ext = 'genetree/member/id' diff -r 675fd774314e -r 0618e3bd5138 get_genetree.xml --- a/get_genetree.xml Thu Oct 31 07:49:30 2019 -0400 +++ b/get_genetree.xml Tue Oct 20 15:06:37 2020 +0000 @@ -166,8 +166,8 @@ Uses the `"GET genetree/id"`_ and `"GET genetree/member/id"`_ API endpoint. -.. _"GET genetree/id": http://rest.ensembl.org/documentation/info/genetree -.. _"GET genetree/member/id": http://rest.ensembl.org/documentation/info/genetree_member_id +.. _"GET genetree/id": https://rest.ensembl.org/documentation/info/genetree +.. _"GET genetree/member/id": https://rest.ensembl.org/documentation/info/genetree_member_id ]]> diff -r 675fd774314e -r 0618e3bd5138 get_sequences.py --- a/get_sequences.py Thu Oct 31 07:49:30 2019 -0400 +++ b/get_sequences.py Tue Oct 20 15:06:37 2020 +0000 @@ -23,7 +23,7 @@ if options.input is None: raise Exception('-i option must be specified') -server = 'http://rest.ensembl.org' +server = 'https://rest.ensembl.org' ext = 'sequence/id' headers = {'Content-Type': 'text/x-fasta', 'Accept': 'text/x-fasta'} @@ -36,7 +36,7 @@ break data = {'ids': ids} r = requests.post(urljoin(server, ext), params=params, headers=headers, - data=json.dumps(data)) + data=json.dumps(data), allow_redirects=False) if not r.ok: r.raise_for_status()