From 2bd2c3958ed91ef3bbea2fc3e077a8c03a648a1b Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Mon, 16 May 2022 12:46:12 +1000 Subject: quip: init --- tools/quip-quip.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tools/quip-quip.nix (limited to 'tools/quip-quip.nix') diff --git a/tools/quip-quip.nix b/tools/quip-quip.nix new file mode 100644 index 0000000..77cf557 --- /dev/null +++ b/tools/quip-quip.nix @@ -0,0 +1,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; + } -- cgit v1.2.3