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