aboutsummaryrefslogtreecommitdiff
path: root/tools/cnvkit-app.nix
blob: dc9f023e65118c62917dd526b6dbb4a5e993a8d4 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{ lib
, fetchurl
, rPackages
, rWrapper
, buildPythonPackage
, fetchPypi
, biopython
, six
, numpy
, pillow
, pysam
, future
, scipy
, pandas
, matplotlib
, reportlab
, zlib
, bzip2
, htslib
, libjpeg
, pkgconfig
, futures
}:

let pyfaidx = buildPythonPackage rec {
      pname = "pyfaidx";
      version = "0.5.3.1";

      src = fetchPypi {
        inherit pname version;
        sha256 = "0mjbksbj9hh2cf0yjr951cjahhn0lg7p71kd3kvbnscqyxa44kfr";
      };

      propagatedBuildInputs = [ six ];
    };

    cghFLasso = rPackages.buildRPackage rec {
      name = "cghFLasso-${version}";
      version = "0.2-1";
      src = fetchurl {
        url = "https://cran.r-project.org/src/contrib/Archive/cghFLasso/cghFLasso_${version}.tar.gz";
        sha256 = "0b1hnjf9g0v47hbz0dy9m6jhcl1ky20yyhhmm8myng2sndcpjsbf";
      };
    };

    cnvR = rWrapper.override {
      packages = with rPackages; [ DNAcopy cghFLasso ];
    };

in buildPythonPackage rec {
  pname = "CNVkit";
  version = "0.9.5";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1sa70bmnxj1lzp33pbj3axk6n77czswwj9cirimxh2qrn84i7vs3";
  };

  propagatedBuildInputs = [ biopython numpy scipy pandas matplotlib reportlab pyfaidx pysam futures future pillow cnvR ];
}