# HG changeset patch
# User iuc
# Date 1547502536 18000
# Node ID 8ba2174315aa3d57e88a2692ec1340ba3afda794
# Parent 658d47fd33e37aaa31ba073b1dd273100f6e65f6
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/kraken/ commit 87dfa1af2f1dd57ffc7290b66218a127cec6757f
diff -r 658d47fd33e3 -r 8ba2174315aa kraken.xml
--- a/kraken.xml Thu Sep 13 09:44:31 2018 -0400
+++ b/kraken.xml Mon Jan 14 16:48:56 2019 -0500
@@ -116,8 +116,16 @@
-
-
+
+
+
+
+
+
+
+
+
+
diff -r 658d47fd33e3 -r 8ba2174315aa macros.xml
--- a/macros.xml Thu Sep 13 09:44:31 2018 -0400
+++ b/macros.xml Mon Jan 14 16:48:56 2019 -0500
@@ -1,6 +1,6 @@
- 1.2.4
+ 1.3.0
kraken
@@ -23,6 +23,10 @@
10.1186/gb-2014-15-3-r46
- --db '${kraken_database.fields.name}'
- export KRAKEN_DB_PATH='${kraken_database.fields.path}'
+
+ if [ -d '${kraken_database.fields.path}/${kraken_database.fields.name}' ]; then export KRAKEN_DEFAULT_DB='${kraken_database.fields.path}/${kraken_database.fields.name}'; else export KRAKEN_DEFAULT_DB='${kraken_database.fields.path}'; fi
+ --db "\$KRAKEN_DEFAULT_DB"
diff -r 658d47fd33e3 -r 8ba2174315aa test-data/test_database.loc
--- a/test-data/test_database.loc Thu Sep 13 09:44:31 2018 -0400
+++ b/test-data/test_database.loc Mon Jan 14 16:48:56 2019 -0500
@@ -1,1 +1,20 @@
-test_db test_db ${__HERE__}
\ No newline at end of file
+# Tab separated with three columns:
+# - value (Galaxy records this in the Galaxy DB)
+# - name (Galaxy shows this in the UI)
+# - path (folder name containing the Kraken DB)
+#
+# Modern usage assumes $path is the folder containing
+# the Kraken database of interest:
+#
+new_style_test_entry "Test Database" ${__HERE__}/test_db
+
+# The kraken wrapper still supports an alternative
+# legacy usage where $path/$name is the folder
+# containing the Kraken database of interest, meaning
+# $name must be both a folder name and human readable
+# description of the DB to show in the Galaxy UI:
+old_style_test_entry test_db ${__HERE__}
+
+# NOTE: This legacy style should be avoided as other
+# tools also using the kraken_database.loc file may
+# not understand it!
diff -r 658d47fd33e3 -r 8ba2174315aa tool-data/kraken_databases.loc.sample
--- a/tool-data/kraken_databases.loc.sample Thu Sep 13 09:44:31 2018 -0400
+++ b/tool-data/kraken_databases.loc.sample Mon Jan 14 16:48:56 2019 -0500
@@ -0,0 +1,18 @@
+# Expect three columns, tab separated, as follows:
+# - value (Galaxy records this in the Galaxy DB)
+# - name (Galaxy shows this in the UI)
+# - path (folder name containing the Kraken DB)
+#
+# e.g.
+# plants2018Plant genomes (2018)/path/to/krakenDB/plants_2018
+#
+# For backward compatibility the Kraken wrapper also accepts:
+# - value (Galaxy records this in the Galaxy DB)
+# - name (Final part of folder name, Galaxy shows this in the UI)
+# - path (Parent folder name, where $path/$name contains the Kraken DB)
+#
+# e.g.
+# plants2018plants_2018/path/to/krakenDB
+#
+# Please avoid this legacy usage, as not all tools using
+# the kraken_databases.loc file will understand it.