[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
41/59: gnu: python-hicexplorer: Make compatible with latest scipy.
From: |
guix-commits |
Subject: |
41/59: gnu: python-hicexplorer: Make compatible with latest scipy. |
Date: |
Tue, 16 Jan 2024 07:16:37 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit cda0f029d6542b81e0a019299ff0c59d01eb2af1
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Jan 10 14:39:12 2024 +0100
gnu: python-hicexplorer: Make compatible with latest scipy.
* gnu/packages/bioinformatics.scm (python-hicexplorer)[arguments]: Add
'scipy-compatibility phase.
Change-Id: I31e9058b7fd4ff9245837d5f1cd145b569ec35ad
---
gnu/packages/bioinformatics.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 36dbad592e..c05ca19022 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -17147,7 +17147,18 @@ the HiCExplorer and pyGenomeTracks packages.")
"general/test_hicHyperoptDetectLoopsHiCCUPS.py"
"general/test_hicAggregateContacts.py"
"general/test_hicInterIntraTAD.py")
- (("^memory =.*") "memory = 1\n"))))))))
+ (("^memory =.*") "memory = 1\n")))))
+ ;; This is fixed in version 3.7.3, but we cannot upgrade yet as we
+ ;; don't have Pandas 2.
+ (add-after 'unpack 'scipy-compatibility
+ (lambda _
+ (substitute* "hicexplorer/hicAverageRegions.py"
+ (("from scipy.sparse import csr_matrix, save_npz, lil_matrix")
+ "from scipy.sparse import csr_matrix, save_npz, lil_matrix,
coo_matrix")
+ (("summed_matrix = np.array\\(summed_matrix\\)")
+ "summed_matrix = coo_matrix(summed_matrix)")
+ (("data = summed_matrix\\[np.nonzero\\(summed_matrix\\)\\]")
+ "data =
summed_matrix.toarray()[np.nonzero(summed_matrix)]")))))))
(propagated-inputs
(list python-biopython
python-cleanlab-1
- 28/59: gnu: python-pyani: Disable tests., (continued)
- 28/59: gnu: python-pyani: Disable tests., guix-commits, 2024/01/16
- 15/59: gnu: python-pynndescent: Update to 0.5.11., guix-commits, 2024/01/16
- 25/59: gnu: python-poliastro: Make compatible with latest matplotlib., guix-commits, 2024/01/16
- 31/59: gnu: cnvkit: Update to 0.9.10., guix-commits, 2024/01/16
- 32/59: gnu: python-plastid: Update to 0.6.1., guix-commits, 2024/01/16
- 39/59: gnu: python-scikit-optimize: Make compatible with latest sklearn., guix-commits, 2024/01/16
- 37/59: gnu: scvelo: Make compatible with latest matplotlib., guix-commits, 2024/01/16
- 38/59: gnu: python-fit-nbinom: Disable tests., guix-commits, 2024/01/16
- 40/59: gnu: python-hicmatrix: Update to 17.1., guix-commits, 2024/01/16
- 42/59: gnu: python-pint: Add missing input., guix-commits, 2024/01/16
- 41/59: gnu: python-hicexplorer: Make compatible with latest scipy.,
guix-commits <=
- 44/59: gnu: Add python-asyncinject., guix-commits, 2024/01/16
- 52/59: gnu: python-xarray: Update to 2023.12.0., guix-commits, 2024/01/16
- 53/59: gnu: python-dask: Propagate click., guix-commits, 2024/01/16
- 14/59: gnu: python-scikit-learn: Update to 1.3.2., guix-commits, 2024/01/16
- 47/59: gnu: python-pandas: Update to 1.5.3., guix-commits, 2024/01/16
- 56/59: gnu: python-astroml: Make compatible with recent Matplot and Scipy., guix-commits, 2024/01/16
- 57/59: gnu: python-clingraph: Update to 1.1.2., guix-commits, 2024/01/16
- 59/59: gnu: gourmet: Add missing input., guix-commits, 2024/01/16
- 08/59: gnu: python-tifffile: Update to 2023.12.9., guix-commits, 2024/01/16
- 09/59: gnu: python-lazy-loader: Update to 0.3., guix-commits, 2024/01/16