# HG changeset patch
# User iuc
# Date 1743761563 0
# Node ID 6ab91825be2243dfb5119b36a98a0c63e623cffc
# Parent 828d961faea7982b9a5909cd87bd4837fcfa1d11
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_fetch_busco/ commit d46d2ec37b9b8f08d58472978c51b4c46e7ed18c
diff -r 828d961faea7 -r 6ab91825be22 data_manager/busco_fetcher.xml
--- a/data_manager/busco_fetcher.xml Fri Apr 04 10:12:36 2025 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,74 +0,0 @@
-
- dataset dowloader
-
- 5.8.0
- 1
-
-
- busco
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- This tool downloads the BUSCO databases.
-
- 10.1093/bioinformatics/btv351
-
-
diff -r 828d961faea7 -r 6ab91825be22 data_manager/busco_options.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/data_manager/busco_options.xml Fri Apr 04 10:12:43 2025 +0000
@@ -0,0 +1,47 @@
+
+
+
+ 5.8.0
+ 0
+
+
+ busco
+
+ /dev/null &&
+ #set db_path="./test"
+ #else
+ #set db_path=$cached_db.fields.path
+ #end if
+ python '$__tool_directory__/extract.py' '$db_path' '$cached_db' '$out_file'
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This tool determines the possible choices of BUSCO lineages in a given BUSCO DB.
+
+ 10.1093/bioinformatics/btv351
+
+
diff -r 828d961faea7 -r 6ab91825be22 data_manager/extract.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/data_manager/extract.py Fri Apr 04 10:12:43 2025 +0000
@@ -0,0 +1,23 @@
+import json
+import os
+import re
+import sys
+
+busco_db = os.path.join(sys.argv[1], "lineages")
+busco_db_value = sys.argv[2]
+dmjson = sys.argv[3]
+
+content = []
+for d in os.scandir(busco_db):
+ if not d.is_dir():
+ continue
+ if not os.path.exists(os.path.join(d, "dataset.cfg")):
+ continue
+ name = re.sub(r"_odb\d+", "", d.name)
+ name = name.replace("_", " ").capitalize()
+ content.append({'value': d.name, 'name': name, 'db_value': busco_db_value})
+
+with open(dmjson, "w") as fh:
+ json.dump({"data_tables": {"busco_database_options": content}}, fh)
+
+print(f'{len(content)} x busco_db\n')
diff -r 828d961faea7 -r 6ab91825be22 data_manager_conf.xml
--- a/data_manager_conf.xml Fri Apr 04 10:12:36 2025 +0000
+++ b/data_manager_conf.xml Fri Apr 04 10:12:43 2025 +0000
@@ -1,18 +1,12 @@
-
-
+
+
+
diff -r 828d961faea7 -r 6ab91825be22 test-data/busco_database.loc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/busco_database.loc Fri Apr 04 10:12:43 2025 +0000
@@ -0,0 +1,1 @@
+test test name test test
\ No newline at end of file
diff -r 828d961faea7 -r 6ab91825be22 test-data/busco_database_options.loc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/busco_database_options.loc Fri Apr 04 10:12:43 2025 +0000
@@ -0,0 +1,81 @@
+iridoviridae_odb10 Iridoviridae test
+betabaculovirus_odb10 Betabaculovirus test
+betaherpesvirinae_odb10 Betaherpesvirinae test
+skunavirus_odb10 Skunavirus test
+chordopoxvirinae_odb10 Chordopoxvirinae test
+alphabaculovirus_odb10 Alphabaculovirus test
+rudiviridae_odb10 Rudiviridae test
+tevenvirinae_odb10 Tevenvirinae test
+tunavirinae_odb10 Tunavirinae test
+varicellovirus_odb10 Varicellovirus test
+pahexavirus_odb10 Pahexavirus test
+guernseyvirinae_odb10 Guernseyvirinae test
+baculoviridae_odb10 Baculoviridae test
+alphaherpesvirinae_odb10 Alphaherpesvirinae test
+spounavirinae_odb10 Spounavirinae test
+peduovirus_odb10 Peduovirus test
+enquatrovirus_odb10 Enquatrovirus test
+teseptimavirus_odb10 Teseptimavirus test
+gammaherpesvirinae_odb10 Gammaherpesvirinae test
+herpesviridae_odb10 Herpesviridae test
+cheoctovirus_odb10 Cheoctovirus test
+poxviridae_odb10 Poxviridae test
+fromanvirus_odb10 Fromanvirus test
+bclasvirinae_odb10 Bclasvirinae test
+simplexvirus_odb10 Simplexvirus test
+tequatrovirus_odb10 Tequatrovirus test
+aviadenovirus_odb10 Aviadenovirus test
+iridoviridae_odb10 Iridoviridae test
+betabaculovirus_odb10 Betabaculovirus test
+betaherpesvirinae_odb10 Betaherpesvirinae test
+skunavirus_odb10 Skunavirus test
+chordopoxvirinae_odb10 Chordopoxvirinae test
+alphabaculovirus_odb10 Alphabaculovirus test
+rudiviridae_odb10 Rudiviridae test
+tevenvirinae_odb10 Tevenvirinae test
+tunavirinae_odb10 Tunavirinae test
+varicellovirus_odb10 Varicellovirus test
+pahexavirus_odb10 Pahexavirus test
+guernseyvirinae_odb10 Guernseyvirinae test
+baculoviridae_odb10 Baculoviridae test
+alphaherpesvirinae_odb10 Alphaherpesvirinae test
+spounavirinae_odb10 Spounavirinae test
+peduovirus_odb10 Peduovirus test
+enquatrovirus_odb10 Enquatrovirus test
+teseptimavirus_odb10 Teseptimavirus test
+gammaherpesvirinae_odb10 Gammaherpesvirinae test
+herpesviridae_odb10 Herpesviridae test
+cheoctovirus_odb10 Cheoctovirus test
+poxviridae_odb10 Poxviridae test
+fromanvirus_odb10 Fromanvirus test
+bclasvirinae_odb10 Bclasvirinae test
+simplexvirus_odb10 Simplexvirus test
+tequatrovirus_odb10 Tequatrovirus test
+aviadenovirus_odb10 Aviadenovirus test
+iridoviridae_odb10 Iridoviridae test
+betabaculovirus_odb10 Betabaculovirus test
+betaherpesvirinae_odb10 Betaherpesvirinae test
+skunavirus_odb10 Skunavirus test
+chordopoxvirinae_odb10 Chordopoxvirinae test
+alphabaculovirus_odb10 Alphabaculovirus test
+rudiviridae_odb10 Rudiviridae test
+tevenvirinae_odb10 Tevenvirinae test
+tunavirinae_odb10 Tunavirinae test
+varicellovirus_odb10 Varicellovirus test
+pahexavirus_odb10 Pahexavirus test
+guernseyvirinae_odb10 Guernseyvirinae test
+baculoviridae_odb10 Baculoviridae test
+alphaherpesvirinae_odb10 Alphaherpesvirinae test
+spounavirinae_odb10 Spounavirinae test
+peduovirus_odb10 Peduovirus test
+enquatrovirus_odb10 Enquatrovirus test
+teseptimavirus_odb10 Teseptimavirus test
+gammaherpesvirinae_odb10 Gammaherpesvirinae test
+herpesviridae_odb10 Herpesviridae test
+cheoctovirus_odb10 Cheoctovirus test
+poxviridae_odb10 Poxviridae test
+fromanvirus_odb10 Fromanvirus test
+bclasvirinae_odb10 Bclasvirinae test
+simplexvirus_odb10 Simplexvirus test
+tequatrovirus_odb10 Tequatrovirus test
+aviadenovirus_odb10 Aviadenovirus test
diff -r 828d961faea7 -r 6ab91825be22 tool-data/busco_database.loc.sample
--- a/tool-data/busco_database.loc.sample Fri Apr 04 10:12:36 2025 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-#This is a sample file distributed with Galaxy that enables tools
-#to use a directory of busco files.
-#file has this format (white space characters are TAB characters)
-# - value
-# - name
-# - version
-# - /path/to/data
-#virus_lineage_1.0 Virus_lineage_1.0 5.4.6 /path/to/data
\ No newline at end of file
diff -r 828d961faea7 -r 6ab91825be22 tool-data/busco_database_options.loc.sample
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool-data/busco_database_options.loc.sample Fri Apr 04 10:12:43 2025 +0000
@@ -0,0 +1,6 @@
+#This is a sample file distributed with Galaxy that enables tools
+#to use fill the select for the available BUSCO lineages
+#file has this format (white space characters are TAB characters)
+# - value: value used in the options
+# - name: name shown to the user in options
+# - db_value: the id/value of the busco db (in the busco_database data table)
\ No newline at end of file
diff -r 828d961faea7 -r 6ab91825be22 tool_data_table_conf.xml.sample
--- a/tool_data_table_conf.xml.sample Fri Apr 04 10:12:36 2025 +0000
+++ b/tool_data_table_conf.xml.sample Fri Apr 04 10:12:43 2025 +0000
@@ -3,4 +3,8 @@
value, name, version, path
+