# HG changeset patch # User earlhaminst # Date 1603206443 0 # Node ID 7af66c2b38318d77d80ac59fff2850276426ceb2 # Parent 0fa1d1cc417df40a425c736ab7db8fdee23a1072 "planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/Ensembl-REST commit 17c65045b726d0695814bfe761e534f6521786f1" diff -r 0fa1d1cc417d -r 7af66c2b3831 get_feature_info.py --- a/get_feature_info.py Thu Oct 31 07:50:07 2019 -0400 +++ b/get_feature_info.py Tue Oct 20 15:07:23 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 0fa1d1cc417d -r 7af66c2b3831 get_genetree.py --- a/get_genetree.py Thu Oct 31 07:50:07 2019 -0400 +++ b/get_genetree.py Tue Oct 20 15:07:23 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 0fa1d1cc417d -r 7af66c2b3831 get_sequences.py --- a/get_sequences.py Thu Oct 31 07:50:07 2019 -0400 +++ b/get_sequences.py Tue Oct 20 15:07:23 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() diff -r 0fa1d1cc417d -r 7af66c2b3831 get_sequences.xml --- a/get_sequences.xml Thu Oct 31 07:50:07 2019 -0400 +++ b/get_sequences.xml Tue Oct 20 15:07:23 2020 +0000 @@ -54,7 +54,7 @@ Uses the `"POST sequence/id"`_ API endpoint. -.. _"POST sequence/id": http://rest.ensembl.org/documentation/info/sequence_id_post +.. _"POST sequence/id": https://rest.ensembl.org/documentation/info/sequence_id_post ]]>