diff --git a/sicer/src/create_bed_windows.py b/sicer/src/create_bed_windows.py index 41d4c51..eac23fc 100755 --- a/sicer/src/create_bed_windows.py +++ b/sicer/src/create_bed_windows.py @@ -6,7 +6,7 @@ def create_bed_windows(chrom, chrom_length, bin_size): file_save_name = chrom + '.windows' - syntax = 'echo -e "%s\\t%s" > %s.temp; bedtools makewindows -g %s.temp -w %s > %s ; rm -rf %s.temp' % (chrom, chrom_length, chrom, chrom, bin_size, file_save_name, chrom) + syntax = 'echo "%s\\t%s" > %s.temp; bedtools makewindows -g %s.temp -w %s > %s ; rm -rf %s.temp' % (chrom, chrom_length, chrom, chrom, bin_size, file_save_name, chrom) process = subprocess.Popen(syntax, stdin=subprocess.PIPE, shell=True,) process.communicate() if process.returncode != 0: