diff jbrowse2.py @ 130:e188a9d25ed2 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 9662f852d6eaf19a1bfa06f8a4263fd972afd6ba
author bgruening
date Wed, 09 Oct 2024 11:38:21 +0000
parents fce4ed3b1702
children 1efcc387bef4
line wrap: on
line diff
--- a/jbrowse2.py	Mon Oct 07 08:55:19 2024 +0000
+++ b/jbrowse2.py	Wed Oct 09 11:38:21 2024 +0000
@@ -1136,22 +1136,16 @@
         usePIF = False  # much faster if indexed remotely or locally
         useuri = data.startswith("http://") or data.startswith("https://")
         if not useuri:
-            # self.symlink_or_copy(os.path.realpath(data), url)
-            # cmd = ["jbrowse", "make-pif", url]
-            url = '%s.pif.gz' % tId
-            cmd = "sort -b -n -k1,1 -k2,3 -k3,4 '%s' | bgzip -c > '%s'" % (data, url)
+            url = "%s.pif.gz" % tId
+            cmd = "sort -b -k1,1 -k2,3n -k3,4n '%s' | bgzip -c > '%s'" % (data, url)
             self.subprocess_popen(cmd)
             cmd = ["tabix", "-b", "3", "-e", "4", "-f", url]
             self.subprocess_check_call(cmd)
             usePIF = True
-            nrow = 1
         else:
             url = data
             if data.endswith(".pif.gz") or data.endswith(".paf.gz"):  # is tabix
                 usePIF = True
-                nrow = 1
-            else:
-                nrow = self.getNrow(url)
         categ = trackData["category"]
         pg = pafOpts["genome"].split(",")
         pgc = [x.strip() for x in pg if x.strip() > ""]
@@ -1220,7 +1214,7 @@
                 "pafLocation": {"uri": url},
                 "assemblyNames": passnames,
             }
-        if (not usePIF) and (nrow > 10000):
+        if not usePIF:
             style_json = {
                 "type": "LGVSyntenyDisplay",
                 "displayId": "%s-LGVSyntenyDisplay" % tId,