Mercurial > repos > fubar > jbrowse2
diff jbrowse2.py @ 135:21bb464c1d53 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 78bf7abb931bf3d348837c7211cd3cff32486691
author | fubar |
---|---|
date | Sun, 15 Dec 2024 23:47:40 +0000 |
parents | ed3a21033188 |
children |
line wrap: on
line diff
--- a/jbrowse2.py Sun Oct 20 07:11:16 2024 +0000 +++ b/jbrowse2.py Sun Dec 15 23:47:40 2024 +0000 @@ -615,8 +615,10 @@ def text_index(self): # Index tracks - args = ["jbrowse", "text-index"] - self.subprocess_check_call(args) + e = os.environ + e["SHELL"] = "/bin/sh" + cmd = ["jbrowse", "text-index"] + subprocess.run(cmd, env=e, shell=True) def add_hic(self, data, trackData): """ @@ -1108,12 +1110,14 @@ url = "%s.pif.gz" % tId cmd = ["cp", data, fakeName] self.subprocess_check_call(cmd) + e = os.environ + e["SHELL"] = "/bin/sh" cmd = [ "jbrowse", "make-pif", fakeName, ] - self.subprocess_check_call(cmd) + subprocess.run(cmd, env=e, shell=True) usePIF = True else: dest = os.path.join(self.outdir, url) @@ -1534,9 +1538,10 @@ """ dest = self.outdir if (not os.path.exists(self.jbrowse2path)) or realclone: - self.subprocess_check_call( - ["jbrowse", "create", dest, "-f", "--tag", f"{JB2VER}"] - ) + e = os.environ + e["SHELL"] = "/bin/sh" + cmd = ["jbrowse", "create", dest, "-f", "--tag", f"{JB2VER}"] + subprocess.run(cmd, env=e, shell=True) else: shutil.copytree(self.jbrowse2path, dest, dirs_exist_ok=True) for fn in [