summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/butter/package.py
blob: 94a78aa46425f5b9f5e90756248eb4f4b881177e (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
# 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 Butter(Package):
    """butter: Bowtie UTilizing iTerative placEment of Repetitive small rnas.
    A wrapper for bowtie to produce small RNA-seq alignments where
    multimapped small RNAs tend to be placed near regions of confidently
    high density."""

    homepage = "https://github.com/MikeAxtell/butter"
    url = "https://github.com/MikeAxtell/butter/archive/v0.3.3.tar.gz"

    license("GPL-3.0-only")

    version("0.3.3", sha256="862cbe06d51fdefca18e5fe4cfa8e4df6ce92686ccbc389affe05b199ea9243b")

    depends_on("perl", type=("build", "run"))
    depends_on("samtools")
    depends_on("bowtie")

    def install(self, spec, prefix):
        mkdirp(prefix.bin)
        install("butter", prefix.bin)
        install("bam2wig", prefix.bin)