# HG changeset patch # User galaxyp # Date 1562118374 14400 # Node ID 1a5690a5eedc2d40d3e92215c7512f7976b52321 # Parent e1abc9a35c64b143e761c2c10b70b9b72f2e60eb planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/uniprotxml_downloader commit 6aac77a68426533c8c18c9f6aabd2df56a82de24 diff -r e1abc9a35c64 -r 1a5690a5eedc uniprotxml_downloader.py --- a/uniprotxml_downloader.py Fri Dec 16 17:33:05 2016 -0500 +++ b/uniprotxml_downloader.py Tue Jul 02 21:46:14 2019 -0400 @@ -25,8 +25,8 @@ parser.add_option('-c', '--column', dest='column', type='int', default=0, help='The column (zero-based) in the tabular file that contains Taxon IDs' ) parser.add_option('-t', '--taxon', dest='taxon', action='append', default=[], help='NCBI taxon ID to download') parser.add_option('-r', '--reviewed', dest='reviewed', help='Only uniprot reviewed entries') - parser.add_option('-f', '--format', dest='format', choices=['xml', 'fasta'], default='xml',help='output format') - parser.add_option('-o', '--output', dest='output', help='file path for th downloaed uniprot xml') + parser.add_option('-f', '--format', dest='format', choices=['xml', 'fasta'], default='xml', help='output format') + parser.add_option('-o', '--output', dest='output', help='file path for the downloaded uniprot xml') parser.add_option('-v', '--verbose', dest='verbose', action='store_true', default=False, help='Print UniProt Info') parser.add_option('-d', '--debug', dest='debug', action='store_true', default=False, help='Turn on wrapper debugging to stderr') (options, args) = parser.parse_args() @@ -51,7 +51,7 @@ try: def reporthook(n1,n2,n3): pass - url = 'http://www.uniprot.org/uniprot/' + url = 'https://www.uniprot.org/uniprot/' query = "%s%s" % (taxon_query, reviewed) params = {'query' : query, 'force' : 'yes' , 'format' : options.format} if options.debug: diff -r e1abc9a35c64 -r 1a5690a5eedc uniprotxml_downloader.xml --- a/uniprotxml_downloader.xml Fri Dec 16 17:33:05 2016 -0500 +++ b/uniprotxml_downloader.xml Tue Jul 02 21:46:14 2019 -0400 @@ -1,4 +1,4 @@ - + download proteome as XML or fasta python