Mercurial > repos > earlhaminst > ensembl_get_feature_info
diff get_feature_info.py @ 6:70e4134eb0ed draft
"planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/Ensembl-REST commit ed32f2e6d8174873cefcbe141084f857f84b0586"
author | earlhaminst |
---|---|
date | Thu, 31 Oct 2019 07:49:48 -0400 |
parents | 234d7babf34b |
children | d6bb417dc831 |
line wrap: on
line diff
--- a/get_feature_info.py Fri Apr 13 09:43:11 2018 -0400 +++ b/get_feature_info.py Thu Oct 31 07:49:48 2019 -0400 @@ -15,10 +15,6 @@ default='0', help='Expands the search to include any connected features. e.g. If the object is a gene, its transcripts, translations and exons will be returned as well.') -parser.add_option('-s', '--species', type='choice', - choices=['ensembl', 'ensemblgenomes'], default='ensembl', - help='Specify the genome databases for vertebrates and other eukaryotic species') - parser.add_option('-f', '--format', type='choice', choices=['full', 'condensed'], default='full', help='Specify the formats to emit from this endpoint') @@ -27,7 +23,7 @@ raise Exception('-i option must be specified') -server = 'http://rest.%s.org' % options.species +server = 'http://rest.ensembl.org' ext = 'lookup/id' headers = {'Content-Type': 'application/json', 'Accept': 'application/json'}