aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2018-12-19 16:45:08 +1100
committerJustin Bedo <cu@cua0.org>2018-12-19 16:45:08 +1100
commit0e2e1e2c432d597e477890297b9a29f743acb1b9 (patch)
treeef7ff5914fe0b2f189066a98c29390a75f700774
parent0808fc803e3226d2f478229832bb827d7dfcbd0d (diff)
gridss: simplify preprocessing and rewrite using new pipe function
-rw-r--r--tools/gridss.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/gridss.nix b/tools/gridss.nix
index 009752e..5bb9484 100644
--- a/tools/gridss.nix
+++ b/tools/gridss.nix
@@ -17,6 +17,13 @@ rec {
assemble = callBionixE ./gridss-assemble.nix;
identifyVariants = exec (attrs: input: ((callBionix ./gridss-variants.nix attrs) input).identify);
annotateVariants = exec (attrs: input: ((callBionix ./gridss-variants.nix attrs) input).annotate);
- preprocessBam = input: with samtools; sort {} (gridss.softClipsToSplitReads {} (gridss.computeSamTags {} (sort {nameSort = true;} (gridss.extractSVReads {} (markdup {} (sort {} (fixmate {mateScore = true;} (sort {nameSort = true;} input))))))));
- call = inputs: bionix.gridss.annotateVariants {} (map gridss.preprocessBam inputs);
+ preprocessBam = with samtools;
+ pipe [
+ (gridss.extractSVReads {})
+ (sort {nameSort = true;})
+ (gridss.computeSamTags {})
+ (gridss.softClipsToSplitReads {})
+ (sort {})
+ ];
+ call = inputs: gridss.annotateVariants {} (map gridss.preprocessBam inputs);
}