diff autogenJB2.py @ 65:c81902830900 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 6dac6d6debf44c68eae2785e926fb8420f76958e
author fubar
date Thu, 28 Mar 2024 10:31:07 +0000
parents ab0d6782a95f
children bc10ad1dfb98
line wrap: on
line diff
--- a/autogenJB2.py	Thu Mar 28 09:15:57 2024 +0000
+++ b/autogenJB2.py	Thu Mar 28 10:31:07 2024 +0000
@@ -200,11 +200,10 @@
             # "font_size": root.find("metadata/general/font_size").text,
             # }
             # jc.add_general_configuration(general_data)
-            trackconf = jc.config_json.get("tracks", None)
-            if trackconf:
-                jc.config_json["tracks"].update(jc.tracksToAdd)
-            else:
-                jc.config_json["tracks"] = jc.tracksToAdd
+            trackconf = jc.config_json.get("tracks", [])
+            for gnome in jc.genome_names:
+                trackconf += jc.tracksToAdd[gnome]
+            jc.config_json["tracks"] = trackconf
             jc.write_config()
             defLoc = makeDefaultLocation()
             default_session_data.update(