Skip to content

Commit 0544e10

Browse files
committed
Hopefully fix #334
1 parent 3c2d3b7 commit 0544e10

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

deeptools/computeGCBias.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -618,12 +618,6 @@ def plotGCbias(file_name, frequencies, reads_per_gc, region_size, image_format=N
618618

619619
def main(args=None):
620620
args = parse_arguments().parse_args(args)
621-
# check if directory is writable
622-
if args.blackListFileName:
623-
filter_out_file = args.BlackListFileName
624-
args.filterOut.close()
625-
else:
626-
filter_out_file = None
627621

628622
if args.extraSampling:
629623
extra_sampling_file = args.extraSampling.name
@@ -635,7 +629,7 @@ def main(args=None):
635629
global_vars = {}
636630
global_vars['2bit'] = args.genome
637631
global_vars['bam'] = args.bamfile
638-
global_vars['filter_out'] = filter_out_file
632+
global_vars['filter_out'] = args.blackListFileName
639633
global_vars['extra_sampling_file'] = extra_sampling_file
640634

641635
bit = twobit.TwoBitFile(open(global_vars['2bit']))

0 commit comments

Comments
 (0)