Skip to content

Commit

Permalink
don't split pipes if shell is specified; fix bug in zipped bam to fas…
Browse files Browse the repository at this point in the history
…tq awk
  • Loading branch information
nsheff committed May 2, 2019
1 parent d2565c2 commit 8676255
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pypiper/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,8 @@ def make_dict(command):
cmd = "docker exec " + container + " " + cmd

param_list = [make_dict(c) for c in split_by_pipes(cmd)] \
if check_shell_pipes(cmd) else [dict(args=cmd, stdout=None, shell=True)]
if not shell and check_shell_pipes(cmd) else [dict(args=cmd, stdout=None, shell=True)]


proc_name = get_proc_name(cmd)

Expand Down
4 changes: 2 additions & 2 deletions pypiper/ngstk.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ def bam_to_fastq_awk(self, bam_file, out_fastq_pre, paired_end, zipmode=False):
if zipmode:
fq1 = fq1 + ".gz"
fq2 = fq2 + ".gz"
fq1_target = " | " + self.ziptool + " -c > " + fq1
fq2_target = " | " + self.ziptool + " -c > " + fq2
fq1_target = " | \"" + self.ziptool + " -c > " + fq1 + '"'
fq2_target = " | \"" + self.ziptool + " -c > " + fq2 + '"'
else:
fq1_target = ' > "' + fq1 + '"'
fq2_target = ' > "' + fq2 + '"'
Expand Down

0 comments on commit 8676255

Please sign in to comment.