all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Navid Afkhami <navid.afkhami@mdc-berlin.de>
To: 63849@debbugs.gnu.org
Cc: Navid Afkhami <navid.afkhami@mdc-berlin.de>
Subject: [bug#63849] [PATCH] gnu: Add python-cell2cell.
Date: Fri, 2 Jun 2023 15:23:43 +0000	[thread overview]
Message-ID: <13266f60b98b4632c6b7fa2c4e5cacdc3a0840f7.1685719423.git.navid.afkhami@mdc-berlin.de> (raw)

* gnu/packages/bioinformatics.scm (python-cell2cell): New variable.
---
 gnu/packages/bioinformatics.scm | 64 +++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 89f8041d56..6dbbc26eac 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -1298,6 +1298,70 @@ (define-public python-biofluff
 experiments.")
     (license license:expat)))
 
+(define-public python-cell2cell
+  (package
+    (name "python-cell2cell")
+    (version "0.6.8")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/earmingol/cell2cell")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1hwww0rcv8sc4k312n4d0jhbyix1jjqgv5djg25bw8127q5iym3s"))
+              (modules '((guix build utils)))
+              (snippet '(begin
+                          (substitute* "cell2cell/plotting/factor_plot.py"
+                            (("from statannotations.Annotator import Annotator")
+                             "")
+                            (("if statistical_test is not None")
+                             "if False"))
+                          (substitute* "setup.py"
+                            (("'statannotations',")
+                             ""))
+                          (substitute* "setup.py"
+                            (("matplotlib >= 3.2.0,<=3.5.1")
+                             ""))
+                          (substitute* "setup.py"
+                            (("'gseapy == 1.0.3'")
+                             "'gseapy'"))))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list #:tests? #f ;There are no tests
+           #:phases '(modify-phases %standard-phases
+                       ;; Numba needs a writable dir to cache functions.
+                       (add-before 'build 'set-numba-cache-dir
+                         (lambda _
+                           (setenv "NUMBA_CACHE_DIR" "/tmp"))))))
+    (propagated-inputs (list python-gseapy
+                             python-kneed
+                             python-matplotlib
+                             python-networkx
+                             python-numpy
+                             python-openpyxl
+                             python-pandas
+                             python-scikit-learn
+                             python-scipy
+                             python-seaborn
+                             python-statsmodels
+                             python-scanpy
+                             python-seaborn
+                             python-tensorly
+                             python-tqdm
+                             python-umap-learn
+                             python-xlrd))
+    (native-inputs (list python-pytest))
+    (home-page "https://github.com/earmingol/cell2cell")
+    (synopsis "Python library for cell communication analysis")
+    (description
+     "Cell2cell is a Python library for cell communication analysis.
+This is a method to calculate, visualize and analyze communication
+between cell types.  Cell2cell is suitable for single-cell RNA sequencing
+(scRNA-seq) data.")
+    (license license:bsd-3)))
+
 (define-public python-cellbender
   (package
     (name "python-cellbender")

base-commit: a7d9cd742c3149bb014db95f88d1158d590bc124
-- 
2.34.1





             reply	other threads:[~2023-06-02 15:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-02 15:23 Navid Afkhami [this message]
2023-06-02 17:57 ` bug#63849: [PATCH] gnu: Add python-cell2cell Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=13266f60b98b4632c6b7fa2c4e5cacdc3a0840f7.1685719423.git.navid.afkhami@mdc-berlin.de \
    --to=navid.afkhami@mdc-berlin.de \
    --cc=63849@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.