lumpy: init 0.3.0
This commit is contained in:
parent
617483d27a
commit
a3d6e7b4b4
2 changed files with 49 additions and 0 deletions
47
pkgs/applications/science/biology/lumpy/default.nix
Normal file
47
pkgs/applications/science/biology/lumpy/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
{ stdenv, fetchFromGitHub, htslib, zlib, curl, openssl, samblaster, sambamba
|
||||||
|
, samtools, hexdump, python2Packages, which }:
|
||||||
|
|
||||||
|
let
|
||||||
|
python =
|
||||||
|
python2Packages.python.withPackages (pkgs: with pkgs; [ pysam numpy ]);
|
||||||
|
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
pname = "lumpy";
|
||||||
|
version = "0.3.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "arq5x";
|
||||||
|
repo = "lumpy-sv";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0azhzvmh9az9jcq0xprlzdz6w16azgszv4kshb903bwbnqirmk18";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ which ];
|
||||||
|
buildInputs =
|
||||||
|
[ htslib zlib curl openssl python samblaster sambamba samtools hexdump ];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
patchShebangs ./.
|
||||||
|
|
||||||
|
# Use Nix htslib over bundled version
|
||||||
|
sed -i 's/lumpy_filter: htslib/lumpy_filter:/' Makefile
|
||||||
|
sed -i 's|../../lib/htslib/libhts.a|-lhts|' src/filter/Makefile
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Upstream's makefile doesn't have an install target
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
cp -r bin $out
|
||||||
|
cp -r scripts $out
|
||||||
|
sed -i 's|/build/source|'$out'|' $out/bin/lumpyexpress.config
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Probabilistic structural variant caller";
|
||||||
|
homepage = "https://github.com/arq5x/lumpy-sv";
|
||||||
|
maintainers = with maintainers; [ jbedo ];
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -24845,6 +24845,8 @@ in
|
||||||
|
|
||||||
last = callPackage ../applications/science/biology/last { };
|
last = callPackage ../applications/science/biology/last { };
|
||||||
|
|
||||||
|
lumpy = callPackage ../applications/science/biology/lumpy { };
|
||||||
|
|
||||||
macse = callPackage ../applications/science/biology/macse { };
|
macse = callPackage ../applications/science/biology/macse { };
|
||||||
|
|
||||||
migrate = callPackage ../applications/science/biology/migrate { };
|
migrate = callPackage ../applications/science/biology/migrate { };
|
||||||
|
|
Loading…
Reference in a new issue