aboutsummaryrefslogtreecommitdiff
path: root/tools/genmap-calcmap.nix
blob: df9ccc37626bc81fa017309cb288f18e7edb01a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ bionix
, k ? 30
, e ? 2
}:

with bionix;

ref: stage {
  name = "genmap-mappability";
  buildInputs = with pkgs; [ genmap ];
  buildCommand = ''
    mkdir $out
    genmap map \
      -K ${toString k} \
      -E ${toString e} \
      --wig \
      -I ${bionix.genmap.index {} ref} \
      -O $out \
      -T $NIX_BUILD_CORES
  '';
  passthru.multicore = true;
}