guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 36d954ffa1540263326efed4feff5999ca10febd
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Jan 2 18:04:20 2026 +0000
gnu: Add python-scprep.
* gnu/packages/bioinformatics.scm (python-scprep): New variable.
Change-Id: I61674e690bf798c17e84806b606673f84bd07636
---
gnu/packages/bioinformatics.scm | 104 +++++++++++++++++++++++++++++++++++++++-
1 file changed, 103 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 0eefa89ef4..7273ce966d 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -29,7 +29,7 @@
;;; Copyright © 2024 Spencer King <[email protected]>
;;; Copyright © 2025 nomike Postmann <[email protected]>
;;; Copyright © 2025 Janneke Nieuwenhuizen <[email protected]>
-;;; Copyright © 2025 Sharlatan Hellseher <[email protected]>
+;;; Copyright © 2025-2026 Sharlatan Hellseher <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -3997,6 +3997,108 @@ sequencing data and the end result are tables of
UMI-unique DamID and CEL-Seq
counts.")
(license license:expat)))
+(define-public python-scprep
+ (package
+ (name "python-scprep")
+ (version "1.2.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/KrishnaswamyLab/scprep")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1dbmaix4bqaf9p1zw1fvk5a64kwdbg015q3ykc6rsmdwrcd2g5cz"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; tests: 344 passed
+ #:test-flags
+ ;; XXX: Mixture of remote data download and some assertion errors.
+ ;;
+ ;; Tests from "test/test_io.py" download data files from
+ ;; <https://raw.githubusercontent.com/KrishnaswamyLab/scprep/>.
+ #~(list "--ignore-files=test_io.py"
+ (string-join
+ (list "--exclude=(test.*dyngen.*" ;TODO: they need R packages
+ "test_slingshot.*" ;
+ "test_splatter_.*" ;
+ "test_builtins"
+ "test_combine_batches_errors"
+ "test_conversion_sce"
+ "test_conversion_spmatrix"
+ "test_differential_expression"
+ "test_differential_expression_error"
+ "test_fcs"
+ "test_fcs_PnN"
+ "test_fcs_header_error"
+ "test_fcs_reformat_meta"
+ "test_generate_colorbar_dict"
+ "test_install_bioc"
+ "test_install_github_dependencies_None"
+ "test_install_github_dependencies_True"
+ "test_install_github_lib"
+ "test_is_sparse_series"
+ "test_builtins"
+ "test_mtx"
+ "test_scatter_rotate_mp4"
+ "test_sparse_svd"
+ "test_to_array_or_spmatrix_list_of_strings"
+ "test_unzip_no_destination)")
+ "|")
+ "test")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "setup.py"
+ ;; "pandas>=0.25,<2.1",
+ ((",<2.1") ""))))
+ (add-before 'check 'pre-check
+ (lambda _
+ (setenv "HOME" "/tmp"))))))
+ (native-inputs
+ (list python-fcsparser
+ python-anndata
+ python-h5py
+ python-matplotlib
+ python-parameterized
+ python-nose2
+ python-pynose
+ python-requests
+ python-rpy2
+ python-setuptools
+ python-tables))
+ ;; Used by rpy2
+ (inputs
+ (list bash-minimal
+ r-apeglm
+ r-deseq2
+ r-drimseq
+ r-ggplot2
+ r-lazyeval
+ r-minimal
+ r-qqman
+ r-renv
+ r-rlang
+ r-slingshot
+ #;r-splatter)) ;https://github.com/Oshlack/splatter
+ (propagated-inputs
+ (list python-decorator
+ python-numpy
+ python-packaging
+ python-pandas
+ python-scikit-learn
+ python-scipy))
+ (home-page "https://github.com/KrishnaswamyLab/scprep")
+ (synopsis "Tools for loading, processing, and handling single cell data")
+ (description
+ "@code{scprep} provides an all-in-one framework for loading,
+ preprocessing, and plotting matrices in Python, with a focus on single-cell
+genomics.")
+ (license license:expat)))
+
(define-public python-snaptools
(package
(name "python-snaptools")