summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/butter/package.py
blob: b2d8d8a6facd7b0f33fc2ea99cb6f6a1db13804d (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
# 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 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"

    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)