unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Navid Afkhami <navid.afkhami@mdc-berlin.de>
To: 63929@debbugs.gnu.org
Cc: Navid Afkhami <navid.afkhami@mdc-berlin.de>
Subject: [bug#63929] [PATCH] gnu: Add python-decoupler-py.
Date: Tue, 6 Jun 2023 18:15:46 +0200	[thread overview]
Message-ID: <a1a2b8c0f38f7eab2d862ea37004531c04f5e74a.1686068146.git.navid.afkhami@mdc-berlin.de> (raw)

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

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 509dc3358b..12455984ed 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -1549,6 +1549,64 @@ (define-public python-cmseq
 and sequence consensus.")
     (license license:expat)))
 
+(define-public python-decoupler-py
+  ;; This latest commit fixes the bug in test_omnip.py file. check_if_omnipath() has changed to _check_if_omnipath()
+  (let ((commit "b84c524ec4a9280a56c0db963e2c7b010316ce8f")
+        (revision "1"))
+    (package
+      (name "python-decoupler-py")
+      (version (git-version "1.3.1" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/saezlab/decoupler-py")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0d74yr5jqc52vcxaca84kxqw7m5rbazpmvnrcp2y4xxrj6yr1sfc"))))
+      (build-system pyproject-build-system)
+      (arguments
+       (list #:test-flags '(list "-k"
+                                 ;; These tests require internet access
+                                 (string-append "not test_get_resource"
+                                  " and not test_show_resources"
+                                  " and not test_get_dorothea"
+                                  " and not test_get_progeny"
+                                  " and not test_plot_volcano"))
+             #:phases '(modify-phases %standard-phases
+                         (add-before 'check 'set-home
+                           ;; Some tests require a home directory to be set.
+                           (lambda _
+                             (setenv "HOME" "/tmp")))
+                         ;; 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-adjusttext
+                               python-anndata
+                               python-ipython
+                               python-matplotlib
+                               python-nbsphinx
+                               python-numba
+                               python-numpy
+                               python-numpydoc
+                               python-omnipath
+                               python-scanpy
+                               python-scikit-learn
+                               python-scipy
+                               python-skranger
+                               python-tqdm
+                               python-typing-extensions))
+      (native-inputs (list python-pytest))
+      (home-page "https://github.com/saezlab/decoupler-py")
+      (synopsis
+       "Framework for modeling, analyzing and interpreting single-cell RNA-seq data")
+      (description
+       "Different statistical methods to extract biological activities
+from omics data within a unified framework.")
+      (license license:gpl3+))))
+
 (define-public python-demuxem
   (package
     (name "python-demuxem")

base-commit: 9ad8b0c2ef10d8de01bad25f54337c5df35aa842
-- 
2.34.1





             reply	other threads:[~2023-06-06 16:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-06 16:15 Navid Afkhami [this message]
2023-06-06 19:36 ` bug#63929: [PATCH] gnu: Add python-decoupler-py 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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=a1a2b8c0f38f7eab2d862ea37004531c04f5e74a.1686068146.git.navid.afkhami@mdc-berlin.de \
    --to=navid.afkhami@mdc-berlin.de \
    --cc=63929@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).