Mercurial > repos > earlhaminst > ensembl_get_feature_info
diff get_genetree.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_genetree.py Mon Dec 12 07:47:09 2016 -0500 +++ b/get_genetree.py Wed Dec 21 15:16:22 2016 -0500 @@ -1,9 +1,11 @@ # A simple tool to connect to the Ensembl server and retrieve genetree using # the Ensembl REST API. +from __future__ import print_function + import optparse -from urlparse import urljoin import requests +from six.moves.urllib.parse import urljoin parser = optparse.OptionParser() parser.add_option('--id_type', type='choice', default='gene_id', @@ -55,4 +57,4 @@ if not r.ok: r.raise_for_status() -print r.text +print(r.text)