Skip to content

Commit 223dccb

Browse files
authored
Merge pull request #269 from ENCODE-DCC/PIPE-51_fix_spp_bug
fix spp multithreading bug
2 parents 483a746 + 93e91e7 commit 223dccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/encode_task_spp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def spp(ta, ctl_ta, chrsz, fraglen, cap_num_peak, fdr_thresh,
6767
basename_prefix = '{}_x_{}'.format(basename_ta, basename_ctl_ta)
6868
if len(basename_prefix) > 200: # UNIX cannot have filename > 255
6969
basename_prefix = '{}_x_control'.format(basename_ta)
70-
nth_param = '-p={}'.format(nth) if nth < 2 else ''
70+
nth_param = '-p={}'.format(nth) if nth >= 2 else ''
7171
prefix = os.path.join(out_dir, basename_prefix)
7272
rpeak = '{}.{}.regionPeak.gz'.format(
7373
prefix,

0 commit comments

Comments
 (0)