aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test-tnpair.nix2
-rw-r--r--test.nix2
2 files changed, 2 insertions, 2 deletions
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;
};
diff --git a/test.nix b/test.nix
index 3bfaed6..8126e63 100644
--- a/test.nix
+++ b/test.nix
@@ -10,7 +10,7 @@ let
callVariants = callPackage ./tools/platypus.nix { inherit ref; };
samples = [ {name = "mysample1"; files = {input1 = ./example/sample1-1.fq; input2 = ./example/sample1-2.fq;};}
- {name = "mysample2"; files = {input1 = ./example/sample2-1.fq; input2 = ./example/sample2-1.fq;};} ];
+ {name = "mysample2"; files = {input1 = ./example/sample2-1.fq; input2 = ./example/sample2-1.fq;};} ];
alignments = map (i: sort (alignWithRG i.name i.files)) samples;
variants = callVariants alignments;