Skip to content

Commit a958a9b

Browse files
author
Sahraeian
committed
fix diff
1 parent fd15b7d commit a958a9b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/run_diff.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,11 @@ def run_deseq2(quant_files="", alignments="",
361361
if start<=step:
362362
logger.info("--------------------------STEP %s--------------------------"%step)
363363
if len(glob.glob("%s/deseq2_res*.tab"%work_deseq2))>0:
364-
command = "cp %s/deseq2_res*.tab %s/"%(
365-
work_deseq2, out_deseq2)
366-
cmd = TimedExternalCmd(command, logger, raise_exception=True)
367-
retcode = cmd.run(cmd_log_fd_out=deseq2_log_fd, cmd_log=deseq2_log, msg=msg, timeout=timeout)
364+
for out_file in glob.glob("%s/deseq2_res*.tab"%work_deseq2):
365+
command = "cp %s %s/"%(
366+
out_file, out_deseq2)
367+
cmd = TimedExternalCmd(command, logger, raise_exception=True)
368+
retcode = cmd.run(cmd_log_fd_out=deseq2_log_fd, cmd_log=deseq2_log, msg=msg, timeout=timeout)
368369
else:
369370
logger.info("Skipping step %d: %s"%(step,msg))
370371
step+=1

0 commit comments

Comments
 (0)