summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-instrain/package.py
blob: 457a0db8580f9a973ad4712e99fa343e01474fe8 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 2013-2024 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 PyInstrain(PythonPackage):
    """inStrain is python program for analysis of co-occurring genome
    populations from metagenomes that allows highly accurate genome
    comparisons, analysis of coverage, microdiversity, and linkage, and
    sensitive SNP detection with gene localization and synonymous
    non-synonymous identification."""

    homepage = "https://github.com/MrOlm/instrain"
    pypi = "inStrain/inStrain-1.5.7.tar.gz"

    maintainers("MrOlm")

    variant("prodigal", default=False, description="Enables profiling on a gene by gene level")

    license("MIT")

    version("1.6.3", sha256="8cc4af185a41f860aa3a58dfacabfe635bf7b28535ac0bb4db67983f95dbd528")
    version("1.5.7", sha256="c5dcb01dae244927fe987b5f0695d895ccf521c9dfd87a2cb59057ad50bd9bfa")

    depends_on("python@3.4.0:", type=("build", "run"))
    depends_on("py-setuptools", type=("build"))
    depends_on("py-numpy", type=("build", "run"))
    depends_on("py-pandas@0.25:1.1.2,1.1.4:", type=("build", "run"))
    depends_on("py-seaborn", type=("build", "run"))
    depends_on("py-matplotlib", type=("build", "run"))
    depends_on("py-biopython@:1.74", type=("build", "run"))
    depends_on("py-scikit-learn", type=("build", "run"))
    depends_on("py-pytest", type=("build"))
    depends_on("py-tqdm", type=("build", "run"))
    depends_on("py-pysam@0.15:", type=("build", "run"))
    depends_on("py-networkx", type=("build", "run"))
    depends_on("py-h5py", type=("build", "run"))
    depends_on("py-psutil", type=("build", "run"))
    depends_on("py-lmfit", type=("build", "run"))
    depends_on("py-numba", type=("build", "run"))
    # non-python dependencies
    # https://instrain.readthedocs.io/en/latest/installation.html#dependencies
    # Essential dependencies
    depends_on("samtools", type=("build", "run"))
    # Optional dependencies
    depends_on("prodigal", type=("build", "run"), when="+prodigal")