blob: 5e7c91ae91ea77804ba2e39483b40e7e7d8b29f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{bionix
,dbnsfp
,flags ? ""}:
input:
with bionix;
with types;
assert (matchFiletype "snpeff-dbnsfp" { vcf = _: true; } input);
stage {
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;
}
|