summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanneke Nieuwenhuizen <janneke@gnu.org>2025-08-20 18:02:44 +0200
committerJanneke Nieuwenhuizen <janneke@gnu.org>2025-08-20 18:02:44 +0200
commit1362e3f547f2bc515650bad32fd919462e4a0d6b (patch)
treec615f68f495ea58fda2f791afa034132b6de5358
parent72a1240c84138f6e59155cf179e5becb761dc111 (diff)
gnu: Add python-scanrbp.
* gnu/packages/bioinformatics.scm (python-scanrbp): New variable. Change-Id: I00e4144bfbe1c11e131f6e32e0fa4ed5d6a6e5db
-rw-r--r--gnu/packages/bioinformatics.scm46
1 files changed, 46 insertions, 0 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 0f449c4fb9..fc1f00a0b5 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -4548,6 +4548,52 @@ into separate processes; and more.")
(("self.tests.append\\(\"doctest\"\\)") "")
(("opt == \"--offline\"") "True")))))))))
+(define-public python-scanrbp
+ (package
+ (name "python-scanrbp")
+ (version "0.3")
+ (home-page "https://github.com/grexor/scanrbp")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit "cdc3587cfdb3bc1c68154ce8538b8c985099eb9f")))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1bv25qhr1dwym2j7llsd3ggnjb9l3h4bchng7bp7cq57s9g0bnjz"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs
+ (list python-biopython
+ python-matplotlib
+ python-pybio
+ python-scipy
+ python-seaborn))
+ (native-inputs
+ (list python-setuptools
+ python-wheel))
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'set-HOME
+ (lambda _ (setenv "HOME" "/tmp")))
+ (add-before 'check 'copy-data
+ (lambda _
+ (let ((data-dir (string-append (getenv "HOME") "/scanRBP_data"))
+ (data-file "data/data.tar.gz"))
+ (mkdir-p data-dir)
+ (copy-file
+ data-file
+ (string-append data-dir "/" (basename data-file)))))))))
+ (synopsis "Tool for creating a RNA RBP heatmap in Python")
+ (description "python-scanrbp is a Python package that provides the scanRBP
+tool that loads RNA-protein binding motif PWM and computes the log-odds scores
+for all the loaded RBPs across a given genomic sequence and draws a heatmap of
+the scores.")
+ (license license:gpl3)))
+
(define-public python-fastalite
(package
(name "python-fastalite")