[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
42/47: gnu: python-hicexplorer: Make compatible with latest scipy.
From: |
guix-commits |
Subject: |
42/47: gnu: python-hicexplorer: Make compatible with latest scipy. |
Date: |
Wed, 10 Jan 2024 13:53:25 -0500 (EST) |
rekado pushed a commit to branch wip-python-science
in repository guix.
commit c9a84e437f3b214b51b3503c831b62bbcb6efdc5
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 7aed014a52..1df76d4d55 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -17088,7 +17088,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
- 29/47: gnu: python-pyani: Disable tests., (continued)
- 29/47: gnu: python-pyani: Disable tests., guix-commits, 2024/01/10
- 33/47: gnu: python-plastid: Update to 0.6.1., guix-commits, 2024/01/10
- 21/47: gnu: python-matplotlib: Update to 3.8.2., guix-commits, 2024/01/10
- 39/47: gnu: python-fit-nbinom: Disable tests., guix-commits, 2024/01/10
- 47/47: gnu: python-click-default-group: Update to 1.2.4., guix-commits, 2024/01/10
- 07/47: gnu: python-scipy: Update to 1.11.4., guix-commits, 2024/01/10
- 36/47: gnu: python-demuxem: Disable tests., guix-commits, 2024/01/10
- 27/47: gnu: python-captum: Update to 0.7.0., guix-commits, 2024/01/10
- 17/47: gnu: python-umap-learn: Update to 0.5.5., guix-commits, 2024/01/10
- 22/47: gnu: python-seaborn: Update to 0.13.1., guix-commits, 2024/01/10
- 42/47: gnu: python-hicexplorer: Make compatible with latest scipy.,
guix-commits <=
- 23/47: gnu: Add python-pytest-nunit., guix-commits, 2024/01/10
- 20/47: gnu: Add python-contourpy., guix-commits, 2024/01/10
- 26/47: gnu: python-poliastro: Make compatible with latest matplotlib., guix-commits, 2024/01/10
- 28/47: gnu: tadbit: Add missing input., guix-commits, 2024/01/10
- 43/47: gnu: python-pint: Add missing input., guix-commits, 2024/01/10
- 46/47: gnu: datasette: Update to 1.0a7., guix-commits, 2024/01/10
- 34/47: gnu: python-cooler: Update to 0.9.1., guix-commits, 2024/01/10
- 24/47: gnu: python-scanpy: Update to 1.9.6., guix-commits, 2024/01/10
- 30/47: gnu: python-pegasusio: Disable tests., guix-commits, 2024/01/10