comparison toolfactory/rgToolFactory2.py @ 65:ed1ecd161295 draft

Uploaded
author fubar
date Tue, 10 Nov 2020 23:53:32 +0000
parents b3254219d4fb
children bc1977b1f7b5
comparison
equal deleted inserted replaced
64:30847b2e105d 65:ed1ecd161295
841 xreal, 841 xreal,
842 ] 842 ]
843 p = subprocess.run( 843 p = subprocess.run(
844 cll, shell=False, cwd=self.tooloutdir, stderr=dummy, stdout=dummy, 844 cll, shell=False, cwd=self.tooloutdir, stderr=dummy, stdout=dummy,
845 ) 845 )
846 dummy.close() # throw all the log away as it will be rerun after outputs are generated
847 else: 846 else:
848 cll = ["planemo", "test", "--galaxy_root", 847 cll = ["planemo", "test", "--galaxy_root",
849 self.args.galaxy_root, 848 self.args.galaxy_root,
850 xreal,] 849 xreal,]
851 p = subprocess.run( 850 p = subprocess.run(
925 ext = ".txt" 924 ext = ".txt"
926 ofn = "%s%s" % (entry.name.replace(".", "_"), ext) 925 ofn = "%s%s" % (entry.name.replace(".", "_"), ext)
927 dest = os.path.join(self.repdir, ofn) 926 dest = os.path.join(self.repdir, ofn)
928 src = os.path.join(self.tooloutdir, entry.name) 927 src = os.path.join(self.tooloutdir, entry.name)
929 shutil.copyfile(src, dest) 928 shutil.copyfile(src, dest)
929 if entry.name.startswith('tool_test_output'):
930 os.unlink(src)
930 931
931 932
932 def main(): 933 def main():
933 """ 934 """
934 This is a Galaxy wrapper. It expects to be called by a special purpose tool.xml as: 935 This is a Galaxy wrapper. It expects to be called by a special purpose tool.xml as: