changeset 2:22e3d068fdc9 draft

Uploaded
author fubar
date Wed, 03 Jan 2024 06:17:43 +0000
parents af3fba6c21aa
children 0d953fc4ca97
files jbrowse2/galaxyaushum.png jbrowse2/jbrowse2.py
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
Binary file jbrowse2/galaxyaushum.png has changed
--- a/jbrowse2/jbrowse2.py	Wed Jan 03 01:50:05 2024 +0000
+++ b/jbrowse2/jbrowse2.py	Wed Jan 03 06:17:43 2024 +0000
@@ -547,7 +547,7 @@
                 "type": "Gff3TabixAdapter",
                 "gffGzLocation": {"locationType": "UriLocation", "uri": url},
                 "index": {
-                    "location": {"locationType": "UriLocation", "uri": url + ".tbi"}
+                    "location": {"uri": url + ".tbi", "locationType": "UriLocation"}
                 },
             },
             "displays": [
@@ -566,14 +566,18 @@
         dest = os.path.realpath("%s/%s" % (self.outdir, url))
         self._sort_bed(data, dest)
         tId = trackData["label"]
+        url = url + ".gz"
         trackDict = {
             "type": "FeatureTrack",
             "trackId": tId,
             "name": trackData["name"],
             "assemblyNames": [self.genome_name],
             "adapter": {
-                "type": "BedAdapter",
-                "bedLocation": {"locationType": "UriLocation", "uri": url + ".gz"},
+                "type": "BedTabixAdapter",
+                "bedGzLocation": {"locationType": "UriLocation", "uri": url},
+                "index": {
+                    "location": {"uri": url + ".tbi", "locationType": "UriLocation"}
+                },
             },
             "displays": [
                 {