Skip to content

Commit 8f6cf2d

Browse files
committed
fix
1 parent 541de71 commit 8f6cf2d

3 files changed

Lines changed: 555 additions & 316 deletions

File tree

MACS3/Signal/ScoreTrack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cython: language_level=3
22
# cython: profile=True
3-
# Time-stamp: <2025-11-19 16:13:48 Tao Liu>
3+
# Time-stamp: <2025-11-19 22:11:33 Tao Liu>
44

55
"""Scoring utilities for MACS3 signal tracks and peak callers.
66
@@ -430,7 +430,7 @@ def compute_pvalue(self):
430430
v[i] = get_pscore(cython.cast(cython.int,
431431
(p[i] + self.pseudocount)),
432432
c[i] + self.pseudocount)
433-
tmp_l = pos[i] - prev_pos
433+
tmp_l = cython.cast(cython.long, pos[i]) - prev_pos
434434
try:
435435
self.pvalue_stat[v[i]] += tmp_l
436436
except Exception:

0 commit comments

Comments
 (0)