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