From 45af0256cf75fa28e75b6cf6874df0c48aac38cf Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Mon, 24 Sep 2018 14:12:37 +1000 Subject: use a map in the test pipeline --- test-tnpair.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-tnpair.nix') diff --git a/test-tnpair.nix b/test-tnpair.nix index 40cb442..b3a41cb 100644 --- a/test-tnpair.nix +++ b/test-tnpair.nix @@ -13,7 +13,7 @@ let normal = {name = "mysample2"; files = {input1 = ./example/sample2-1.fq; input2 = ./example/sample2-1.fq;};};}; processPair = { tumour, normal }: rec { - alignments = { normal = sort(alignWithRG normal.name normal.files); tumour = sort (alignWithRG tumour.name tumour.files); }; + alignments = mapAttrs (_: x: sort (alignWithRG x.name x.files)) { inherit normal tumour; }; variants = callVariants alignments; }; -- cgit v1.2.3