# HG changeset patch # User iuc # Date 1594078184 0 # Node ID f7b443a73374ba1ff8e232edbe1f54836888cbfc # Parent 3d628f1e1bef4d883b0778d1ee23c409b7059c55 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_fetch_ncbi_taxonomy/ commit 1bcd553f81064957d5786302361675c29ed58a8d" diff -r 3d628f1e1bef -r f7b443a73374 data_manager/data_manager.py --- a/data_manager/data_manager.py Tue Apr 28 07:57:37 2020 +0000 +++ b/data_manager/data_manager.py Mon Jul 06 23:29:44 2020 +0000 @@ -5,12 +5,7 @@ import shutil import tarfile import zipfile -try: - # For Python 3.0 and later - from urllib.request import Request, urlopen -except ImportError: - # Fall back to Python 2 imports - from urllib2 import Request, urlopen +from urllib.request import Request, urlopen def url_download(url, workdir): diff -r 3d628f1e1bef -r f7b443a73374 data_manager/ncbi_taxonomy_fetcher.xml --- a/data_manager/ncbi_taxonomy_fetcher.xml Tue Apr 28 07:57:37 2020 +0000 +++ b/data_manager/ncbi_taxonomy_fetcher.xml Mon Jul 06 23:29:44 2020 +0000 @@ -1,6 +1,9 @@ - + taxonomy downloader + + python + + + + + + + + + + Download a taxonomy dump from a provided URL. + The default URL is the latest dump from NCBI taxonomy. + diff -r 3d628f1e1bef -r f7b443a73374 test-data/ncbi_taxonomy.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/ncbi_taxonomy.loc Mon Jul 06 23:29:44 2020 +0000 @@ -0,0 +1,5 @@ +# Tab separated fields where +# value is unique key +# name is descriptive name +# path is path to directory containing names.dmp and nodes.dmp files +#value name path diff -r 3d628f1e1bef -r f7b443a73374 test-data/taxonomy.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/taxonomy.json Mon Jul 06 23:29:44 2020 +0000 @@ -0,0 +1,1 @@ +{"data_tables": {"ncbi_taxonomy": {"name": "tax_name", "path": ".", "value": "tax_name"}}} \ No newline at end of file diff -r 3d628f1e1bef -r f7b443a73374 tool-data/ncbi_taxonomy.loc.sample --- a/tool-data/ncbi_taxonomy.loc.sample Tue Apr 28 07:57:37 2020 +0000 +++ b/tool-data/ncbi_taxonomy.loc.sample Mon Jul 06 23:29:44 2020 +0000 @@ -0,0 +1,5 @@ +# Tab separated fields where +# value is unique key +# name is descriptive name +# path is path to directory containing names.dmp and nodes.dmp files +#value name path diff -r 3d628f1e1bef -r f7b443a73374 tool_data_table_conf.xml.test --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_data_table_conf.xml.test Mon Jul 06 23:29:44 2020 +0000 @@ -0,0 +1,8 @@ + + + + + value, name, path + +
+