diff options
author | Justin Bedo <cu@cua0.org> | 2021-10-29 17:39:01 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2021-10-29 17:39:01 +1100 |
commit | bac9248a5e08e8afdf5485a6e27cfe72e1ca5090 (patch) | |
tree | 8719a280b56122017d46b582cd3da8547dd3f548 /tools/gridss-variants.nix | |
parent | ab809b8c77efdad9fb54d3591a0193a1cbe888d1 (diff) |
treewide reformatting and simplification
- simplify with statix
- reformat with nixpkgs-fmt
Diffstat (limited to 'tools/gridss-variants.nix')
-rw-r--r-- | tools/gridss-variants.nix | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/tools/gridss-variants.nix b/tools/gridss-variants.nix index a5c470a..62a89f6 100644 --- a/tools/gridss-variants.nix +++ b/tools/gridss-variants.nix @@ -1,7 +1,14 @@ -{ bionix, bwaIndexAttrs ? { }, faidxAttrs ? { }, indexAttrs ? { } -, assemblyAttrs ? { }, collectMetricsAttrs ? { } +{ bionix +, bwaIndexAttrs ? { } +, faidxAttrs ? { } +, indexAttrs ? { } +, assemblyAttrs ? { } +, collectMetricsAttrs ? { } , softClipsToSplitReadsAttrs ? { flags = "REALIGN_ENTIRE_READ=true"; } -, config ? null, heapSize ? "4g", shards ? 10 }: +, config ? null +, heapSize ? "4g" +, shards ? 10 +}: with bionix; with lib; @@ -47,15 +54,16 @@ let for f in ${bionix.bwa.index bwaIndexAttrs ref}/*; do ln -s $f done - ${concatMapStringsSep "\n" (linkSV) inputs} + ${concatMapStringsSep "\n" linkSV inputs} ${linkSV assembly} ${concatMapStringsSep "\n" (linkInput collectMetrics collectMetricsAttrs) inputs} ${linkInput collectMetrics collectMetricsAttrs assembly} ''; -in assert (all sorted inputs); -assert (homoRef); +in +assert (all sorted inputs); +assert homoRef; rec { identify = stage rec { @@ -80,7 +88,7 @@ rec { mv out.vcf $out ''; passthru = { - filetype = filetype.vcf { ref = ref; }; + filetype = filetype.vcf { inherit ref; }; gridss.assembly = assembly; multicore = true; }; @@ -115,7 +123,7 @@ rec { mv out.vcf $out ''; passthru = { - filetype = filetype.vcf { ref = ref; }; + filetype = filetype.vcf { inherit ref; }; gridss.assembly = assembly; multicore = true; }; |