comparison 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
comparison
equal deleted inserted replaced
64:497fd2d27aa2 65:c81902830900
198 # "tertiary_color": root.find("metadata/general/tertiary_color").text, 198 # "tertiary_color": root.find("metadata/general/tertiary_color").text,
199 # "quaternary_color": root.find("metadata/general/quaternary_color").text, 199 # "quaternary_color": root.find("metadata/general/quaternary_color").text,
200 # "font_size": root.find("metadata/general/font_size").text, 200 # "font_size": root.find("metadata/general/font_size").text,
201 # } 201 # }
202 # jc.add_general_configuration(general_data) 202 # jc.add_general_configuration(general_data)
203 trackconf = jc.config_json.get("tracks", None) 203 trackconf = jc.config_json.get("tracks", [])
204 if trackconf: 204 for gnome in jc.genome_names:
205 jc.config_json["tracks"].update(jc.tracksToAdd) 205 trackconf += jc.tracksToAdd[gnome]
206 else: 206 jc.config_json["tracks"] = trackconf
207 jc.config_json["tracks"] = jc.tracksToAdd
208 jc.write_config() 207 jc.write_config()
209 defLoc = makeDefaultLocation() 208 defLoc = makeDefaultLocation()
210 default_session_data.update( 209 default_session_data.update(
211 {"defaultLocation": defLoc, "session_name": sessName} 210 {"defaultLocation": defLoc, "session_name": sessName}
212 ) 211 )