From 81cf674a5d5e3dc020df5d43ce62e1c98f2c9711 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 1 Jul 2022 14:53:44 +0200 Subject: gnu: Add python-ikarus. * gnu/packages/bioinformatics.scm (python-ikarus): New variable. --- gnu/packages/bioinformatics.scm | 47 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 75973b0dd8..be19658417 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -13520,6 +13520,53 @@ transcription factors, gene regulatory networks and cell types from single-cell RNA-seq data.") (license license:gpl3+))) +(define-public python-ikarus + (package + (name "python-ikarus") + (version "0.0.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ikarus" version)) + (sha256 + (base32 + "086czpvj4yafz4vrq5rx2gy0bj2l8nzwnkk0gw8qvy4w133xjysy")))) + (build-system python-build-system) + (arguments + `(#:tests? #false + #:phases + (modify-phases %standard-phases + ;; See https://github.com/BIMSBbioinfo/ikarus/issues/12 + (add-after 'unpack 'fix-issue-12 + (lambda _ + (substitute* "ikarus/classifier.py" + (("pyscenic.genesig") "ctxcore.genesig")))) + ;; Numba needs a writable dir to cache functions. + (add-before 'check 'set-numba-cache-dir + (lambda _ + (setenv "NUMBA_CACHE_DIR" "/tmp")))))) + (propagated-inputs + (list python-numpy + python-pandas + python-scipy + python-scanpy + python-anndata + python-ctxcore ;because of issue 12 + pyscenic)) + (home-page "https://github.com/BIMSBbioinfo/ikarus") + (synopsis "Machine learning classifier of tumor cells") + (description + "ikarus is a stepwise machine learning pipeline that tries to cope with a task +of distinguishing tumor cells from normal cells. Leveraging multiple +annotated single cell datasets it can be used to define a gene set specific to +tumor cells. First, the latter gene set is used to rank cells and then to +train a logistic classifier for the robust classification of tumor and normal +cells. Finally, sensitivity is increased by propagating the cell labels based +on a custom cell-cell network. ikarus is tested on multiple single cell +datasets to ascertain that it achieves high sensitivity and specificity in +multiple experimental contexts.") + (license license:expat))) + (define-public vbz-compression (package (name "vbz-compression") -- cgit v1.2.3