This is an automated email from the git hooks/post-receive script.
guix_mirror_bot pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 7e547b4eb4f gnu: Add mageck2 and deprecate mageck by it.
7e547b4eb4f is described below
commit 7e547b4eb4fdf9c3d142a52f94811b622a5746da
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Nov 14 17:08:06 2026 +0000
gnu: Add mageck2 and deprecate mageck by it.
* gnu/packages/bioinformatics.scm (mageck2): New variable.
(mageck): Deprecate.
Relates-to: guix/guix!12487
Signed-off-by: Andreas Enge <[email protected]>
Merges: guix/guix#12550
---
gnu/packages/bioinformatics.scm | 122 ++++++++++++----------------------------
1 file changed, 37 insertions(+), 85 deletions(-)
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index de59ad8da5f..a2a3967a086 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -9758,99 +9758,51 @@ sequences).")
"https://mafft.cbrc.jp/alignment/software/license.txt"
"BSD-3 with different formatting"))))
-(define-public mageck
+(define-public mageck2
(package
- (name "mageck")
- (version "0.5.9.5")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://sourceforge/mageck/"
- (version-major+minor version)
- "/mageck-" version ".tar.gz"))
- (sha256
- (base32
- "0fnry7d3ngiw0jarvmwd3pxy5vvsf931m4aifz6mjfd6dl1ihsmh"))))
+ (name "mageck2")
+ (version "0.4.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/davidliwei/mageck2")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0ai7vqb7bbxf0dfa23ap6yvfb6b251prs3fca9jz96ic688zj4hp"))))
(build-system pyproject-build-system)
- (arguments
- (list
- #:modules '((guix build pyproject-build-system)
- (guix build utils)
- (srfi srfi-1)
- (ice-9 match))
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'use-python3
- (lambda _
- (substitute* "bin/mageck"
- (("python2") "python"))))
- (add-after 'unpack 'numpy-compatibility
- (lambda _
- (substitute* "mageck/cnv_normalization.py"
- (("np.float") "float"))))
- ;; The build system declares executables both in "scripts" and
- ;; "data", which all are supposed to end up in #$output/bin. The
- ;; pyproject-build-system gets confused by this, though, so we have
- ;; to manually install the mageck executable after the 'install
- ;; phase.
- (add-after 'unpack 'patch-build-system
- (lambda _
- (substitute* "setup.py"
- (("scripts=\\['bin/mageck'\\],") ""))))
- (add-after 'install 'install-mageck
- (lambda _
- (install-file "bin/mageck" (string-append #$output "/bin"))))
- (add-after 'install-mageck 'make-excutable
- (lambda _
- (for-each (lambda (file) (chmod file #o555))
- (find-files (string-append #$output "/bin")))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (let ((tests '(("demo1" "run.sh")
- ("demo2" "runmageck.sh")
- ("demo3" "run.sh")
- ("demo4" "run.sh"))))
- (setenv "PATH"
- (string-append #$output "/bin:"
- (getenv "PATH")))
- (for-each (match-lambda
- ((dir script)
- (with-directory-excursion (string-append
"demo/" dir)
- (invoke "bash" script))))
- tests))))))))
(native-inputs
- (list python-setuptools))
- (inputs
- (list python-numpy-1
+ (list python-pytest
+ python-setuptools))
+ (propagated-inputs
+ (list python-matplotlib
+ python-numpy
+ python-pandas
python-scipy
- python-matplotlib
- python-statsmodels
- python-pyqt
- r-minimal
- r-xtable
- r-gplots))
- (home-page "https://sourceforge.net/projects/mageck/")
- (synopsis "Model-based analysis of genome-wide CRISPR-Cas9 Knockout")
+ python-statsmodels))
+ (home-page "https://mageck2.readthedocs.io/")
+ (synopsis "Model-based Analysis of Genome-wide CRISPR-Cas9 Knockout
screens")
(description
- "Model-based Analysis of Genome-wide CRISPR-Cas9
-Knockout (MAGeCK) is a computational tool to identify important genes
-from the recent genome-scale CRISPR-Cas9 knockout screens
-technology. Its features include:
+ "MAGeCK2 is a new computational tool, built upon MAGeCK, for CRISPR
+screening analysis.
-@enumerate
-@item Simple, easy to use pipeline to screen genes in Genome-wide
- CRISPR-Cas9 Knockout experiments;
-@item High sensitivity and low false discovery rate;
-@item Fully utilize the screening data by performing both positive and
- negative screening in one dataset;
-@item Provide statistical evaluation in genes, sgRNAs and pathways;
-@item Require as few as 2 samples;
-@item Identify cell-type specific targets;
-@item A set of visualization features that generate publication
- standard figures.
-@end enumerate\n")
+Compared with MAGeCK, MAGeCK2 has the following additional functionalities:
+@itemize
+@item Paired sample analysis
+@item Processing and analyzing screens with UMIs
+@item Processing and analyzing paired-guide screens
+@end itemize
+
+MAGeCK2 is compatible with the lagacy
+@url{https://sourceforge.net/projects/mageck/, MAGeCK}. Everything is
+unchanged -- one just needs to switch the command from @code{mageck} to
+@code{mageck2}.")
(license license:bsd-3)))
+;; Deprecated on 2026-11-19.
+(define-deprecated-package mageck mageck2)
+
(define-public mash
(package
(name "mash")