# HG changeset patch # User iuc # Date 1594078355 14400 # Node ID bdd8632fa9fb724c3af919c335407f539c94db5a # Parent 4af4e175db0ded982423acd2d52d5889055b56ff "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_fetch_ncbi_taxonomy/ commit 1bcd553f81064957d5786302361675c29ed58a8d" diff -r 4af4e175db0d -r bdd8632fa9fb data_manager/data_manager.py --- a/data_manager/data_manager.py Tue Apr 28 03:57:59 2020 -0400 +++ b/data_manager/data_manager.py Mon Jul 06 19:32:35 2020 -0400 @@ -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 4af4e175db0d -r bdd8632fa9fb data_manager/ncbi_taxonomy_fetcher.xml --- a/data_manager/ncbi_taxonomy_fetcher.xml Tue Apr 28 03:57:59 2020 -0400 +++ b/data_manager/ncbi_taxonomy_fetcher.xml Mon Jul 06 19:32:35 2020 -0400 @@ -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 4af4e175db0d -r bdd8632fa9fb test-data/ncbi_taxonomy.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/ncbi_taxonomy.loc Mon Jul 06 19:32:35 2020 -0400 @@ -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 4af4e175db0d -r bdd8632fa9fb test-data/taxonomy.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/taxonomy.json Mon Jul 06 19:32:35 2020 -0400 @@ -0,0 +1,1 @@ +{"data_tables": {"ncbi_taxonomy": {"name": "tax_name", "path": ".", "value": "tax_name"}}} \ No newline at end of file diff -r 4af4e175db0d -r bdd8632fa9fb tool-data/ncbi_taxonomy.loc.sample --- a/tool-data/ncbi_taxonomy.loc.sample Tue Apr 28 03:57:59 2020 -0400 +++ b/tool-data/ncbi_taxonomy.loc.sample Mon Jul 06 19:32:35 2020 -0400 @@ -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 4af4e175db0d -r bdd8632fa9fb 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 19:32:35 2020 -0400 @@ -0,0 +1,8 @@ + + + + + value, name, path + +
+