changeset 69:7230a2422507 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 2c7d6c19a42c421de987ebfdf927c64062ebd79f-dirty
author fubar
date Fri, 29 Mar 2024 09:14:59 +0000
parents c4eb6a85db70
children 5f0ee87daef4
files autogenJB2.py jbrowse2.py
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/autogenJB2.py	Fri Mar 29 07:27:20 2024 +0000
+++ b/autogenJB2.py	Fri Mar 29 09:14:59 2024 +0000
@@ -204,9 +204,13 @@
             for gnome in jc.genome_names:
                 trackconf += jc.tracksToAdd[gnome]
             logging.warn(
-                "^^%% adding trackconf=%s for gnome %s" % (trackconf, gnome)
+                "++++ adding trackconf=%s for gnome %s" % (trackconf, gnome)
             )
             jc.config_json["tracks"] = trackconf
+            assconf = jc.config_json.get("assemblies", [])
+            assconf += jc.assemblies
+            jc.config_json["assemblies"] = assconf
+            logging.warn("+++assemblies=%s, gnames=%s" % (assconf, jc.genome_names))
             jc.write_config()
             default_session_data.update({"session_name": sessName})
             track_conf.update(default_session_data)
--- a/jbrowse2.py	Fri Mar 29 07:27:20 2024 +0000
+++ b/jbrowse2.py	Fri Mar 29 09:14:59 2024 +0000
@@ -1607,13 +1607,14 @@
     }
     jc.add_general_configuration(general_data)
     trackconf = jc.config_json.get("tracks", [])
-    logging.warn("genome_names=%s" % jc.genome_names)
+    logging.warn("%%%%%%%%% genome_names=%s" % jc.genome_names)
     for gnome in jc.genome_names:
         trackconf += jc.tracksToAdd[gnome]
     jc.config_json["tracks"] = trackconf
     assconf = jc.config_json.get("assemblies", [])
     assconf += jc.assemblies
     jc.config_json["assemblies"] = assconf
+    logging.warn("&&&assemblies=%s, gnames=%s" % (assconf, jc.genome_names))
     jc.write_config()
     jc.add_default_session(default_session_data)
     # jc.text_index() not sure what broke here.