Commit 51089311 authored by Blaise Li's avatar Blaise Li
Browse files

More info in warning logs.

parent 88623070
......@@ -2788,6 +2788,12 @@ rule merge_bigwig_reps:
warn(f"{msg}:\n")
#raise
warn(f"The bigwig files without {chrom} will be skipped.\n")
except AssertionError as e:
chrom_lens = []
for bw in bws:
chrom_lens.append(bw.chroms()[chrom])
warn(f"chrom_len for {chrom}: {chrom_len}\nchrom_lens: {chrom_lens}")
raise
to_use = [bw for bw in bws if chrom in bw.chroms()]
if to_use:
means = np.nanmean(np.vstack([bw.values(chrom, 0, chrom_len, numpy=True) for bw in to_use]), axis=0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment