comparison jbrowse2.py @ 122:ae07c55ab96b draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit a9124072bc71dd670ee58ff8e4846e14d6d603ec
author fubar
date Fri, 04 Oct 2024 04:07:03 +0000
parents 478ee3e780de
children 160f33c6ba85
comparison
equal deleted inserted replaced
121:478ee3e780de 122:ae07c55ab96b
19 from collections import defaultdict 19 from collections import defaultdict
20 20
21 logging.basicConfig(level=logging.DEBUG) 21 logging.basicConfig(level=logging.DEBUG)
22 log = logging.getLogger("jbrowse") 22 log = logging.getLogger("jbrowse")
23 23
24 JB2VER = "v2.12.3" 24 JB2VER = "v2.15.4"
25 # version pinned if cloning - but not cloning now 25 # version pinned if cloning - but not cloning now
26 logCommands = True 26 logCommands = True
27 # useful for seeing what's being written but not for production setups 27 # useful for seeing what's being written but not for production setups
28 TODAY = datetime.datetime.now().strftime("%Y-%m-%d") 28 TODAY = datetime.datetime.now().strftime("%Y-%m-%d")
29 SELF_LOCATION = os.path.dirname(os.path.realpath(__file__)) 29 SELF_LOCATION = os.path.dirname(os.path.realpath(__file__))
1545 To allow running on internet-less compute and for reproducibility 1545 To allow running on internet-less compute and for reproducibility
1546 use frozen code with `realclone=false 1546 use frozen code with `realclone=false
1547 1547
1548 """ 1548 """
1549 dest = self.outdir 1549 dest = self.outdir
1550 if realclone: 1550 if (not os.path.exists(self.jbrowse2path)) or realclone:
1551 self.subprocess_check_call( 1551 self.subprocess_check_call(
1552 ["jbrowse", "create", dest, "-f", "--tag", f"{JB2VER}"] 1552 ["jbrowse", "create", dest, "-f", "--tag", f"{JB2VER}"]
1553 ) 1553 )
1554 else: 1554 else:
1555 shutil.copytree(self.jbrowse2path, dest, dirs_exist_ok=True) 1555 shutil.copytree(self.jbrowse2path, dest, dirs_exist_ok=True)