aboutsummaryrefslogtreecommitdiff
path: root/tools/quip-quip.nix
blob: 77cf5577cbeceb0caebea3452be05391ea4238ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{bionix}:
with bionix;
with lib.types;
  input: let
    ref = matchFiletype "quip" {bam = f: f.ref;} input;
  in
    stage {
      name = "quip";
      buildInputs = [quip.app];
      buildCommand = ''
        ln -s ${input} input.bam
        quip -r ${ref} input.bam
        cp input.bam.qp $out
      '';
      stripStorePaths = false;
      passthru.filetype = filetype.qp input.filetype;
    }