From 1bac081b2650085c37aad8d68f1a2f6ba8d1324b Mon Sep 17 00:00:00 2001 From: philippadoherty Date: Thu, 2 May 2024 17:39:44 -0400 Subject: [PATCH] correct 'open' start/end pos --- MACS3/Commands/hmmratac_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MACS3/Commands/hmmratac_cmd.py b/MACS3/Commands/hmmratac_cmd.py index 3f65dafd..9ab076b5 100644 --- a/MACS3/Commands/hmmratac_cmd.py +++ b/MACS3/Commands/hmmratac_cmd.py @@ -597,7 +597,7 @@ def add_regions(i, regions): block_num = sum('open' in tup for tup in region) block_sizes = ','.join(str(region[j][2] - region[j][1]) for j in range(1, len(region) - 1, 2)) block_starts = ','.join(str(region[j][1] - region[0][1]) for j in range(1, len(region) - 1, 2)) - broadpeak.add(chromosome=region[1][0], start=region[0][1], end=region[-1][2], + broadpeak.add(chromosome=region[1][0], start=region[0][2], end=region[-1][1], #bytes(region[1][0], encoding="raw_unicode_escape"), region[0][1], region[-1][2], # thickStart=bytes(str(region[1][1]), encoding="raw_unicode_escape"), # thickEnd=bytes(str(region[-2][2]), encoding="raw_unicode_escape"),