Skip to content
Snippets Groups Projects
Commit 2f362a38 authored by Blaise Li's avatar Blaise Li
Browse files

Newer PyBigwig cannot both read and write.

parent 1e3695f8
No related branches found
No related tags found
No related merge requests found
......@@ -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]),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment