aboutsummaryrefslogtreecommitdiff
path: root/tools/kallisto-index.nix
blob: 3b92d38f63738afa0ef8919315fb4dd766462799 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{bionix
, kmerSize ? 31
, unique ? false}:

with bionix;
with lib;
with types;

assert (kmerSize > 1);

input:

assert (matchFiletype input { fa = _: true; } input);

stage {
  name = "kallisto-index";
  buildInputs = with pkgs; [ kallisto ];
  buildCommand = ''
    kallisto index -k ${toString kmerSize} ${optionalString unique "--make-unique"} -i $out ${input}
  '';
}