From 002b59d1e1e19d741459d9e1c2a6341c9c802a84 Mon Sep 17 00:00:00 2001 From: Modupeore Adetunji <53270089+madetunj@users.noreply.github.com> Date: Thu, 27 Jul 2023 14:47:43 -0500 Subject: [PATCH] Update create_bed_windows.py --- sicer/src/create_bed_windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: