summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/grabix/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/grabix/package.py')
-rw-r--r--var/spack/repos/builtin/packages/grabix/package.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/grabix/package.py b/var/spack/repos/builtin/packages/grabix/package.py
new file mode 100644
index 0000000000..98059b3b69
--- /dev/null
+++ b/var/spack/repos/builtin/packages/grabix/package.py
@@ -0,0 +1,30 @@
+# Copyright 2013-2020 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 *
+
+
+class Grabix(MakefilePackage):
+ """Grabix leverages the fantastic BGZF library in samtools to provide
+ random access into text files that have been compressed with bgzip.
+ grabix creates it's own index (.gbi) of the bgzipped file. Once indexed,
+ one can extract arbitrary lines from the file with the grab command.
+ Or choose random lines with the, well, random command.
+ """
+
+ homepage = "https://github.com/arq5x/grabix"
+ url = "https://github.com/arq5x/grabix/archive/v0.1.7.tar.gz"
+
+ maintainers = ['robqiao']
+
+ version('0.1.7', sha256='d90735c55c0985a4d751858d7ce9e36ad534fff4103257e8e981e34d5c915b28')
+
+ conflicts('%gcc@7:', msg='grabix cannot be compiled with newer versions of GCC')
+
+ def install(self, spec, prefix):
+ mkdirp(prefix.bin)
+ install('LICENSE', prefix)
+ install('simrep.chr1.bed', prefix)
+ install('grabix', prefix.bin)