Mercurial > repos > earlhaminst > ensembl_get_genetree
diff get_sequences.py @ 5:675fd774314e 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:30 -0400 |
parents | 950d9d11b6fb |
children | 0618e3bd5138 |
line wrap: on
line diff
--- a/get_sequences.py Fri Apr 13 09:43:28 2018 -0400 +++ b/get_sequences.py Thu Oct 31 07:49:30 2019 -0400 @@ -12,10 +12,6 @@ parser = optparse.OptionParser() parser.add_option('-i', '--input', help='List of Ensembl IDs') -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('-t', '--type', type='choice', choices=['genomic', 'cds', 'cdna', 'protein'], default='genomic', help='Type of sequence') @@ -27,7 +23,7 @@ if options.input is None: raise Exception('-i option must be specified') -server = 'http://rest.%s.org' % options.species +server = 'http://rest.ensembl.org' ext = 'sequence/id' headers = {'Content-Type': 'text/x-fasta', 'Accept': 'text/x-fasta'}