aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/science/biology/delly/default.nix
blob: bfdf5a1bb17e1ead38461418f29645323f6748f5 (plain)
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
38
39
40
{ stdenv, fetchFromGitHub, htslib, zlib, bzip2, lzma, ncurses, boost }:

stdenv.mkDerivation rec {
  pname = "delly";
  version = "0.8.1";

  src = fetchFromGitHub {
      owner = "dellytools";
      repo = pname;
      rev = "v${version}";
      sha256 = "18gm86j1g1k4z1cjv2m5v9rsl1xqs2w3dhwcsnzx2mhkrvmlc4i1";
  };

  buildInputs = [ zlib htslib bzip2 lzma ncurses boost ];

  EBROOTHTSLIB = htslib;

  installPhase = ''
    runHook preInstall

    install -Dm555 src/delly $out/bin/delly

    runHook postInstall
  '';

  meta = with stdenv.lib; {
    description = "Structural variant caller for mapped DNA sequenced data";
    license = licenses.gpl3;
    maintainers = with maintainers; [ scalavision ];
    platforms = platforms.linux;
    longDescription = ''
      Delly is an integrated structural variant (SV) prediction method
      that can discover, genotype and visualize deletions, tandem duplications,
      inversions and translocations at single-nucleotide resolution in
      short-read massively parallel sequencing data. It uses paired-ends,
      split-reads and read-depth to sensitively and accurately delineate
      genomic rearrangements throughout the genome.
    '';
  };
}