Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Blaise LI
libhts
Commits
2f362a38
Commit
2f362a38
authored
Dec 13, 2019
by
Blaise Li
Browse files
Newer PyBigwig cannot both read and write.
parent
1e3695f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
libhts/libhts.py
View file @
2f362a38
...
...
@@ -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
]),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment