Skip to content

Commit

Permalink
Update create_bed_windows.py
Browse files Browse the repository at this point in the history
  • Loading branch information
madetunj authored Jul 27, 2023
1 parent 06b52b5 commit 002b59d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sicer/src/create_bed_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 002b59d

Please sign in to comment.