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