aboutsummaryrefslogtreecommitdiff
path: root/day2/ex3-R/solution.nix
blob: 406e1f3b3206c6e5696585535e126660d6bed4d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{bionix}:
with bionix; let
  R = pkgs.rWrapper.override {packages = with pkgs.rPackages; [limma edgeR Mus_musculus RColorBrewer R_utils];};
in
  stage {
    name = "r-ex";

    src = pkgs.fetchurl {
      url = "https://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE63310&format=file";
      sha256 = "sha256-jLII/e+SVNx4Fivb65WOF566fwFXFtdNLUs04S82++g=";
    };

    buildInputs = [R];

    buildCommand = ''
      tar xf $src
      mkdir $out
      Rscript ${./script.R}
    '';
  }