summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-htseq/package.py
blob: 5049ed9b1351d159709b83199ee4eb9e7c39c1f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class PyHtseq(PythonPackage):
    """HTSeq is a Python package that provides infrastructure to process
    data from high-throughput sequencing assays."""

    homepage = "https://htseq.readthedocs.io/en/master/index.html"
    pypi = "HTSeq/HTSeq-2.0.3.tar.gz"

    version("2.0.3", sha256="c7e7eb29bdc44e80d2d68e3599fa8a8f1d9d6475624dcf1b9644285a8a9c0fac")
    version("0.11.2", sha256="65c4c13968506c7df92e97124df96fdd041c4476c12a548d67350ba8b436bcfc")
    version("0.9.1", sha256="af5bba775e3fb45ed4cde64c691ebef36b0bf7a86efd35c884ad0734c27ad485")

    variant("qa", default=True, description="Quality assessment")
    variant("mtx", default=True, description="BigWig manipulation", when="@2:")
    variant("mtx", default=True, description="mtx output files", when="@2:")
    variant("h5ad", default=True, description="h5ad output files", when="@2:")
    variant("loom", default=True, description="loom output files", when="@2:")

    # build-only dependencies
    depends_on("py-setuptools", type="build")
    depends_on("py-cython@0.29.5:", type="build")
    # run dependencies
    depends_on("py-numpy", type=("build", "run"))
    depends_on("py-pysam", type=("build", "run"))
    # variant dependencies
    depends_on("py-matplotlib@1.4:", type=("build", "run"), when="+qa")
    depends_on("py-scipy@1.5.0:", type=("build", "run"), when="+mtx")
    depends_on("py-anndata", type=("build", "run"), when="+h5ad")
    depends_on("py-loompy", type=("build", "run"), when="+loom")