From b5d98f70c540fec9001ece67d18f84089f9d1de8 Mon Sep 17 00:00:00 2001
From: Blaise Li <blaise.li__git@nsup.org>
Date: Wed, 29 Apr 2020 19:13:45 +0200
Subject: [PATCH] Specify default "mode" argument for numpy.pad.
It has no default value for older numpy version.
---
libhts/libhts.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/libhts/libhts.py b/libhts/libhts.py
index 1cb7510..d17c61a 100644
--- a/libhts/libhts.py
+++ b/libhts/libhts.py
@@ -289,6 +289,7 @@ def paste_bigwig_region(
to_bw.values(chrom, 0, chrom_len),
# pad zero on the left, and what is needed to complete the bin on the right
(0, 10 * nb_bins - chrom_len),
+ mode="constant",
constant_values=np.nan)
if chrom == to_chrom:
# Replace the values in the desired region
--
GitLab