lumpy: init 0.3.0

This commit is contained in:
Justin Bedo 2019-12-18 09:37:39 +11:00
parent 617483d27a
commit a3d6e7b4b4
No known key found for this signature in database
GPG Key ID: 2C18202C56C182BD
2 changed files with 49 additions and 0 deletions

View 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" ];
};
}

View File

@ -24845,6 +24845,8 @@ in
last = callPackage ../applications/science/biology/last { };
lumpy = callPackage ../applications/science/biology/lumpy { };
macse = callPackage ../applications/science/biology/macse { };
migrate = callPackage ../applications/science/biology/migrate { };