Subject: [PATCH] gnu: Add r-cellchat-v2.
From: "Afkhami, Navid" <[email-masked]>
To: <[email-masked]>
Cc: "Afkhami, Navid" <[email-masked]>
Date: Thu, 26 Sep 2024 10:37:18 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/bioinformatics.scm (r-cellchat-v2): New variable.

Change-Id: Iae15f373aefa1c2a0899d5271cf8dddbbfdfa2bd
---
 gnu/packages/bioinformatics.scm | 66 +++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index ad7baad590..91cf6a0e2b 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -14315,6 +14315,72 @@ (define-public r-cellchat
 communication networks from scRNA-seq data.")
       (license license:gpl3))))
 
+(define-public r-cellchat-v2
+  (let ((commit "b05405af0f4f2cac99f2211e888d42de4c5a9d59")
+        (revision "1"))
+    (package
+      (name "r-cellchat-v2")
+      (version (git-version "2.1.2" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/jinworks/CellChat")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "14s7bl70xi21ivqr1c3qx6kjf1ndlyxag880xldqkfsqpksvyvkc"))
+         (snippet '(for-each delete-file
+                             '("src/CellChat.so" "src/CellChat_Rcpp.o"
+                               "src/RcppExports.o")))))
+      (properties `((upstream-name . "CellChat")))
+      (build-system r-build-system)
+      (propagated-inputs (list r-biocgenerics
+                               r-biocneighbors
+                               r-bslib
+                               r-circlize
+                               r-colorspace
+                               r-complexheatmap
+                               r-cowplot
+                               r-dplyr
+                               r-fnn
+                               r-future
+                               r-future-apply
+                               r-ggalluvial
+                               r-ggnetwork
+                               r-ggplot2
+                               r-ggpubr
+                               r-ggrepel
+                               r-igraph
+                               r-irlba
+                               r-magrittr
+                               r-matrix
+                               r-nmf
+                               r-patchwork
+                               r-pbapply
+                               r-plotly
+                               r-plyr
+                               r-rcolorbrewer
+                               r-rcpp
+                               r-rcppeigen
+                               r-reshape2
+                               r-reticulate
+                               r-rspectra
+                               r-scales
+                               r-shape
+                               r-shiny
+                               r-sna
+                               r-stringr
+                               r-svglite))
+      (native-inputs (list r-knitr))
+      (home-page "https://github.com/jinworks/CellChat")
+      (synopsis
+       "Inference of cell-cell communication from single-cell and transcriptomics")
+      (description
+       "This R tool infers, visualizes, and analyzes cell-cell communication networks.
+It supports scRNA-seq and spatially resolved transcriptomics data.")
+      (license license:gpl3))))
+
 (define-public r-copykat
   (let ((commit                         ;no tag
          "256de33dfc1b80a1a0ac9e098c5557f95a4e0d53")

base-commit: f6715a4715eaed485300dffffa1b5e182ded3cea
-- 
2.34.1