Skip to content

Commit

Permalink
make a copy of BAM instead of zcatting
Browse files Browse the repository at this point in the history
  • Loading branch information
leepc12 committed Mar 2, 2020
1 parent f122263 commit e1b143a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encode_lib_blacklist_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def blacklist_filter_bam(bam, blacklist, out_dir):
filtered = '{}.bfilt.bam'.format(prefix)

if blacklist == '' or get_num_lines(blacklist) == 0:
cmd = 'zcat -f {} | gzip -nc > {}'.format(bam, filtered)
cmd = 'cp -f {b} {f}'.format(b=bam, f=filtered)
run_shell_cmd(cmd)
else:
# due to bedtools bug when .gz is given for -a and -b
Expand Down

0 comments on commit e1b143a

Please sign in to comment.