From e7938d7fe34ca9a8f30565f96cb1acb550972094 Mon Sep 17 00:00:00 2001 From: Mervin Fansler Date: Thu, 6 Mar 2025 14:52:08 +0100 Subject: [PATCH] use initialized variable --- chrombpnet/evaluation/make_bigwigs/bigwig_helper.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chrombpnet/evaluation/make_bigwigs/bigwig_helper.py b/chrombpnet/evaluation/make_bigwigs/bigwig_helper.py index 9252657..37546d0 100644 --- a/chrombpnet/evaluation/make_bigwigs/bigwig_helper.py +++ b/chrombpnet/evaluation/make_bigwigs/bigwig_helper.py @@ -70,12 +70,12 @@ def write_bigwig(data, regions, gs, bw_out, debug_chr=None, use_tqdm=False, outs iterator = tqdm(iterator) for itr in iterator: - # subset to chromosome (debugging) - if debug_chr and regions[i][0]!=debug_chr: - continue - i = order_of_regs[itr] i_chr, i_start, i_end, i_mid = regions[i] + + # subset to chromosome (debugging) + if debug_chr and i_chr not in debug_chr: + continue if i_chr != cur_chr: cur_chr = i_chr