aboutsummaryrefslogtreecommitdiff
path: root/tools/infercnv-infer.nix
blob: 09156917db69b1c023f566853b8b20685a5c0d14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{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
  '';
}