aboutsummaryrefslogtreecommitdiff
path: root/tools/pizzly-call.nix
blob: 72e23bf467dccb3ee61a9485d3da75dd45220730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ bionix, kmerSize ? 31, gtf, cdna, alignScore ? 2, maxInsertSize ? 400 }:

with bionix;
with pkgs;

input:
stage {
  name = "pizzly";
  buildInputs = [ bionix.pizzly.app ];
  buildCommand = ''
    ln -s ${gtf} ref.gtf
    ln -s ${cdna} ref.fa
    mkdir $out
    pizzly                          \
      -G ref.gtf                    \
      -C cache                      \
      -F ref.fa                     \
      -k ${toString kmerSize}       \
      -o $out/output                \
      -a ${toString alignScore}     \
      -i ${toString maxInsertSize}  \
      ${input}/fusion.txt
  '';
}