aboutsummaryrefslogtreecommitdiff
path: root/tools/facets-call.nix
blob: 43c4c7fea1cd4096f8e2b736c0e3b709f00700df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ bionix }:

{ vcf, bams }:

with bionix;
with types;
with lib;

assert (matchFiletype "facets-call-vcf" { vcf = _: true; } vcf);
assert (all (matchFiletype "facets-call-bam" { bam = _: true; }) bams);
assert (all (matchFileSorting "facets-call-bam" { coord = _: true; }) bams);

stage {
  name = "facets";
  buildInputs = [ facets.app ];
  buildCommand = ''
    snp-pileup ${vcf} $out ${concatStringsSep " " bams}
  '';
}