diff options
author | Justin Bedo <cu@cua0.org> | 2021-12-03 09:42:04 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2021-12-03 09:42:04 +1100 |
commit | 32c842e7c5fe1038cec73da3e07ba12df6295549 (patch) | |
tree | 2418ebb61d450fe4c11be3659afb22156ab52a1b /tools/genmap-calcmap.nix | |
parent | 7e9f9d84efbfa3ddcd1b41f410adc53daca3f405 (diff) |
genmap: init
Diffstat (limited to 'tools/genmap-calcmap.nix')
-rw-r--r-- | tools/genmap-calcmap.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/genmap-calcmap.nix b/tools/genmap-calcmap.nix new file mode 100644 index 0000000..df9ccc3 --- /dev/null +++ b/tools/genmap-calcmap.nix @@ -0,0 +1,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; +} |