blob: 9c78563b1991df90aedfd8dade22e5e45dc06103 (
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
|
# Copyright 2013-2021 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 import *
import glob
import os
class Kraken(Package):
"""Kraken is a system for assigning taxonomic labels to short DNA
sequences, usually obtained through metagenomic studies."""
homepage = "https://ccb.jhu.edu/software/kraken/"
url = "https://github.com/DerrickWood/kraken/archive/v1.0.tar.gz"
version('1.0', sha256='bade6d83233c26226d02bd427fe0a4d6cd6dc5c0300927e30d41e885a478c378')
depends_on('perl', type=('build', 'run'))
# Does NOT support JELLYFISH 2.0. Ver 1.1.11 is the last version of
# JELLYFISH 1.
depends_on('jellyfish@1.1.11', when='@1.0')
def install(self, spec, prefix):
installer = Executable('./install_kraken.sh')
installer(self.stage.source_path)
mkdirp(prefix.bin)
files = glob.iglob('*')
for file in files:
if os.path.isfile(file):
install(file, prefix.bin)
|