diff jbrowse2.py @ 121:478ee3e780de draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit a6f013087aa66546a843298e2584604668f9e140
author fubar
date Thu, 03 Oct 2024 06:07:18 +0000
parents af482048ca1a
children ae07c55ab96b
line wrap: on
line diff
--- a/jbrowse2.py	Tue Sep 24 03:57:09 2024 +0000
+++ b/jbrowse2.py	Thu Oct 03 06:07:18 2024 +0000
@@ -621,18 +621,9 @@
         # Index tracks
         args = [
             "jbrowse",
-            "text-index",
-            "--target",
-            self.outdir,
-            "--assemblies",
-            self.genome_name,
+            "text-index"
         ]
-
-        tracks = ",".join(self.trackIdlist)
-        if tracks:
-            args += ["--tracks", tracks]
-
-            self.subprocess_check_call(args)
+        self.subprocess_check_call(args)
 
     def add_hic(self, data, trackData):
         """
@@ -1601,7 +1592,8 @@
     args = parser.parse_args()
     tree = ET.parse(args.xml)
     root = tree.getroot()
-    removeMe = string.punctuation.replace('.','').replace('/','').replace('-','')
+    removeMe = string.punctuation.replace('.', ' ').replace('/', '').replace('-', '')
+    # first is a space because space needs to be added here for removal from labels as paths.
     nopunct = str.maketrans(dict.fromkeys(removeMe))
     # This should be done ASAP
     GALAXY_INFRASTRUCTURE_URL = root.find("metadata/galaxyUrl").text
@@ -1772,4 +1764,5 @@
     jc.write_config()
     # note that this can be left in the config.json but has NO EFFECT if add_defsess_to_index is called.
     # jc.add_defsess_to_index(default_session_data)
-    # jc.text_index() not sure what broke here.
+    # this command line tool appears currently broken - or at least not working here.
+    # jc.text_index()