Commit 2f362a38 authored by Blaise Li's avatar Blaise Li
Browse files

Newer PyBigwig cannot both read and write.

parent 1e3695f8
......@@ -210,7 +210,8 @@ def make_empty_bigwig(filename, chrom_sizes):
"""
bw_out = pyBigWig.open(filename, "w")
bw_out.addHeader(list(chrom_sizes.items()))
for (chrom, chrom_len) in bw_out.chroms().items():
# for (chrom, chrom_len) in bw_out.chroms().items():
for (chrom, chrom_len) in chrom_sizes.items():
bw_out.addEntries(
chrom, 0,
values=np.nan_to_num(np.zeros(chrom_len)[0::10]),
......
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