[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
31/53: gnu: Add python-cyvcf2.
From: |
guix-commits |
Subject: |
31/53: gnu: Add python-cyvcf2. |
Date: |
Sun, 21 Apr 2024 07:49:11 -0400 (EDT) |
rekado pushed a commit to branch wip-pandas-upgrade
in repository guix.
commit 1ee2608176963792eb0f7f1cefbb3e1edd55d1e7
Author: Alexis Simon <alexis.simon@runbox.com>
AuthorDate: Thu Apr 18 11:10:22 2024 +0200
gnu: Add python-cyvcf2.
* gnu/packages/bioinformatics.scm (python-cyvcf2): New variable.
Co-authored-by: Ricardo Wurmus <rekado@elephly.net>
Change-Id: I0db07e7b5840f5c1f5c68512ffabb3d6b39ab95c
---
gnu/packages/bioinformatics.scm | 53 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index c2e9f209bc..1bc451715c 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -25,6 +25,7 @@
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
;;; Copyright © 2022, 2023 Navid Afkhami <navid.afkhami@mdc-berlin.de>
;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
+;;; Copyright © 2024 Alexis Simon <alexis.simon@runbox.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1916,6 +1917,58 @@ from high-throughput single-cell RNA sequencing
(scRNA-seq) data.")
and sequence consensus.")
(license license:expat)))
+(define-public python-cyvcf2
+ (package
+ (name "python-cyvcf2")
+ (version "0.30.28")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/brentp/cyvcf2")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "16yhfax509zyip8kkq2b0lflx5bdq5why7d785ayrqyzzq2rxqkk"))
+ (modules '((guix build utils)))
+ (snippet
+ ;; Delete bundled library
+ '(delete-file-recursively "htslib"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'build-extensions
+ (lambda _
+ ;; Cython extensions have to be built before running the tests.
+ (invoke "python" "setup.py" "build_ext" "--inplace")))
+ (add-after 'unpack 'fix-setup
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "setup.py"
+ (("^htslib_include_dirs =.*")
+ (string-append "htslib_include_dirs = [\""
+ #$(this-package-input "htslib")
"/include\"]\n"))
+ (("lib_name = \"libhts.so\"")
+ (string-append "lib_name = \""
+ (search-input-file inputs "lib/libhts.so.3")
+ "\"\n")))))
+ (add-before 'build 'use-system-htslib-package
+ (lambda _
+ (setenv "CYTHONIZE" "1")
+ (setenv "CYVCF2_HTSLIB_MODE" "EXTERNAL"))))))
+ (inputs (list curl htslib libdeflate openssl zlib))
+ (native-inputs (list python-cython python-pytest))
+ (propagated-inputs
+ (list python-click
+ python-coloredlogs
+ python-numpy))
+ (home-page "https://github.com/brentp/cyvcf2/")
+ (synopsis "Fast vcf file parsing with Cython and htslib")
+ (description "Cyvcf2 is a Cython wrapper around htslib built for fast
+parsing of Variant Call Format (VCF) files.")
+ (license license:expat)))
+
(define-public python-decoupler-py
;; This latest commit fixes a bug in test_omnip.py.
(let ((commit "459b235348ddd9135217a3722d9dd1caa9a14ace")
- 25/53: gnu: r-matrixstats: Update to 1.3.0., (continued)
- 25/53: gnu: r-matrixstats: Update to 1.3.0., guix-commits, 2024/04/21
- 22/53: gnu: r-crul: Update to 1.4.2., guix-commits, 2024/04/21
- 23/53: gnu: r-testthat: Update to 3.2.1.1., guix-commits, 2024/04/21
- 24/53: gnu: r-rcpparmadillo: Update to 0.12.8.2.1., guix-commits, 2024/04/21
- 26/53: gnu: r-diptest: Update to 0.77-1., guix-commits, 2024/04/21
- 29/53: gnu: r-gsva: Update to 1.50.5., guix-commits, 2024/04/21
- 39/53: gnu: meson/newer: Update to 1.2.1., guix-commits, 2024/04/21
- 27/53: gnu: r-lme4: Update to 1.1-35.3., guix-commits, 2024/04/21
- 32/53: gnu: Add python-ipfsspec., guix-commits, 2024/04/21
- 40/53: gnu: Add meson-python/newer., guix-commits, 2024/04/21
- 31/53: gnu: Add python-cyvcf2.,
guix-commits <=
- 30/53: gnu: r-bayseq: Update to 2.36.2., guix-commits, 2024/04/21
- 38/53: gnu: Add python-pims., guix-commits, 2024/04/21
- 36/53: gnu: Add python-xarray-datatree., guix-commits, 2024/04/21
- 41/53: gnu: python-pyproject-metadata: Update to 0.7.1., guix-commits, 2024/04/21
- 44/53: gnu: python-openpyxl: Update to 3.0.10., guix-commits, 2024/04/21
- 46/53: gnu: Add python-pytest-next., guix-commits, 2024/04/21
- 47/53: gnu: Add python-pandas-2., guix-commits, 2024/04/21
- 49/53: gnu: cpplint: Use pyproject-build-system., guix-commits, 2024/04/21
- 52/53: gnu: python-asdf-astropy: Add missing test inputs., guix-commits, 2024/04/21
- 06/53: gnu: r-renv: Update to 1.0.7., guix-commits, 2024/04/21