diff autogenJB2.py @ 60:81d535970196 draft

planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 403a35e1245fa5e62f4be6116a725b9e4d9c353a
author fubar
date Mon, 25 Mar 2024 02:10:05 +0000
parents 94264fe60478
children ab0d6782a95f
line wrap: on
line diff
--- a/autogenJB2.py	Fri Mar 22 22:04:08 2024 +0000
+++ b/autogenJB2.py	Mon Mar 25 02:10:05 2024 +0000
@@ -172,8 +172,7 @@
                     for key in keys:
                         if trext in [
                             "bigwig",
-                            "gff3",
-                            "gff",
+                            "gff", "gff3",
                             "vcf",
                             "maf",
                         ]:
@@ -182,6 +181,16 @@
                             default_session_data["visibility"]["default_off"].append(
                                 key
                             )
+                        if trext in ["gff", "gff3", "bed", "vcf", "maf", "blastxml"]:
+                            ttype = "LinearBasicDisplay"
+                            if trext == "vcf":
+                                ttype = "LinearVariantDisplay"
+                            style_json = {
+                            "type": ttype,
+                            "trackShowLabels": False,
+                            "trackShowDescriptions": False
+                            }
+                            default_session_data["style"][key] = style_json
             # general_data = {
             # "analytics": root.find("metadata/general/analytics").text,
             # "primary_color": root.find("metadata/general/primary_color").text,