blob: dee99f18387f9dc1c5a8db294ff890a2dd3c1dbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{bionix
,db
,flags ? ""}:
input:
with bionix;
with types;
assert (matchFiletype "snpeff-annotate" { vcf = _: true; } input);
stage {
name = "snpeff-annotate";
buildInputs = with pkgs; [ snpeff ];
buildCommand = ''
ln -s ${db} ${db.name}
snpeff -nodownload -dataDir $TMPDIR ${db.name} ${input} > $out
'';
passthru.filetype = input.filetype;
}
|