Mercurial > repos > earlhaminst > ensembl_get_feature_info
diff get_sequences.py @ 2:840ea71e6318 draft
planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/Ensembl-REST commit 099d38157cec200f0a343579ca9babcd8acb266f
author | earlhaminst |
---|---|
date | Wed, 21 Dec 2016 15:16:22 -0500 |
parents | 396f0f54d115 |
children | 70e4134eb0ed |
line wrap: on
line diff
--- a/get_sequences.py Mon Dec 12 07:47:09 2016 -0500 +++ b/get_sequences.py Wed Dec 21 15:16:22 2016 -0500 @@ -1,11 +1,13 @@ # A simple tool to connect to the Ensembl server and retrieve sequences using # the Ensembl REST API. +from __future__ import print_function + import json import optparse from itertools import islice -from urlparse import urljoin import requests +from six.moves.urllib.parse import urljoin parser = optparse.OptionParser() parser.add_option('-i', '--input', help='List of Ensembl IDs') @@ -43,4 +45,4 @@ if not r.ok: r.raise_for_status() - print r.text + print(r.text)