Subject: [bug#60729] [PATCH] gnu: Add cellsnp-lite.

From: zimoun <[email-masked]>
Date: Wed, 11 Jan 2023 14:47:44 +0100

From: Simon Tournier <[email-masked]>

* gnu/packages/bioinformatics.scm (cellsnp-lite): New variable.
---
 gnu/packages/bioinformatics.scm | 44 ++++++++++++++++++++++++++++++++-
 1 file changed, 43 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 6e909773a7..4ef9ec15b0 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -21,7 +21,7 @@
 ;;; Copyright © 2020 Bonface Munyoki Kilyungi <[email-masked]>
 ;;; Copyright © 2021 Tim Howes <[email-masked]>
 ;;; Copyright © 2021 Hong Li <[email-masked]>
-;;; Copyright © 2021, 2022 Simon Tournier <[email-masked]>
+;;; Copyright © 2021, 2022, 2023 Simon Tournier <[email-masked]>
 ;;; Copyright © 2021 Felix Gruber <[email-masked]>
 ;;; Copyright © 2022 Navid Afkhami <[email-masked]>
 ;;; Copyright © 2022 Antero Mejr <[email-masked]>
@@ -512,6 +512,48 @@ (define-public bedtools-2.18
     (inputs
      (list samtools zlib))))
 
+(define-public cellsnp-lite
+  ;; Last release from November 2021 and does not contain fixes.
+  (let ((commit "0885d746b0b1ea65c8ef92f8943ca7669ca9734a")
+        (revision "0"))
+    (package
+      (name "cellsnp-lite")
+      (version (git-version "1.2.2" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/single-cell-genetics/cellsnp-lite")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1qrvqgbvw6mbhpyqvqbmvv8dmyc67bsk1041cn7ib6zmd47qm444"))))
+      (build-system gnu-build-system)
+      (arguments
+       (list
+        #:configure-flags #~(list (string-append "--with-htslib="
+                                                 #$(this-package-input "htslib")))))
+      (inputs
+       (list curl
+             htslib
+             openssl
+             zlib))
+      (native-inputs
+       (list autoconf))
+      (home-page "https://cellsnp-lite.readthedocs.io")
+      (synopsis "Pileup expresses alleles in single-cell or bulk RNA-seq data")
+      (description
+       "This package is designed to pileup the expressed alleles in
+single-cell or bulk RNA-seq data, which can be directly used for donor
+deconvolution in multiplexed single-cell RNA-seq data, particularly with other
+packages, which assigns cells to donors and detects doublets as vireo, even
+without genotyping reference.
+
+This package is the C version of the deprecated cellSNP implemented in Python.
+Comparedto cellSNP, this package is more efficient with higher speed and less
+memory usage.")
+      (license license:asl2.0))))
+
 (define-public pbcopper
   (package
     (name "pbcopper")

base-commit: a8b2decf287498eeb51ef23712c5bd01b60cb18b
-- 
2.38.1