aboutsummaryrefslogtreecommitdiff
path: root/tools/infercnv-infer.nix
blob: e499f6cbdd74872eee57329f5bd144b7b89fa9be (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
{ bionix
, flags ? null
}:

with bionix;
with lib;

{ ref
, expr
, pos
}:

stage {
  name = "inferCNV";
  buildInputs = [ bionix.infercnv.app ];
  buildCommand = ''
    inferCNV.R --output_dir $TMPDIR \
      ${optionalString (flags != null) flags} \
      --ref ${ref} \
      ${expr} \
      ${pos}
    mkdir $out
    cp -r $TMPDIR/* $out
  '';
}