blob: 6d9d4fdadb81fae3ab21a891b2985e06a58d3eb3 (
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
|
# 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)
import glob
import os
from spack import *
class Kraken2(Package):
"""Kraken2 is a system for assigning taxonomic labels to short DNA
sequences, usually obtained through metagenomic studies."""
homepage = "https://ccb.jhu.edu/software/kraken2/"
url = "https://github.com/DerrickWood/kraken2/archive/v2.1.1.tar.gz"
maintainers = ['rberg2']
version('2.1.1', sha256='8f3e928cdb32b9e8e6f55b44703d1557b2a5fc3f30f63e8d16e465e19a81dee4')
version('2.0.8-beta', sha256='f2a91fc57a40b3e87df8ac2ea7c0ff1060cc9295c95de417ee53249ee3f7ad8e')
version('2.0.7-beta', sha256='baa160f5aef73327e1a79e6d1c54b64b2fcdaee0be31b456f7bc411d1897a744')
version('2.0.6-beta', sha256='d77db6251179c4d7e16bc9b5e5e9043d25acf81f3e32ad6eadfba829a31e1d09')
depends_on('perl', type=('build', 'run'))
depends_on('rsync', type=('run'))
depends_on('wget', type=('run'))
def install(self, spec, prefix):
installer = Executable('./install_kraken2.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)
|