From 6ae3f9e322772c939f7c494fe232adf465bd5f77 Mon Sep 17 00:00:00 2001 From: Mauricio Carneiro Date: Sun, 14 Aug 2011 15:44:48 -0400 Subject: [PATCH] Wrapped clipping op information The clipping op extra information being kept by this walker was specific to the walker, not to the read clipper. Created a wrapper ReadClipperWithData class that keeps the extra information and leaves the ReadClipper slim. (this is a quick commit to unbreak the build, performing integration tests and will make further commits if necessary) --- .../sting/gatk/walkers/ClipReadsWalker.java | 76 ++++++++++++------- 1 file changed, 50 insertions(+), 26 deletions(-) diff --git a/public/java/src/org/broadinstitute/sting/gatk/walkers/ClipReadsWalker.java b/public/java/src/org/broadinstitute/sting/gatk/walkers/ClipReadsWalker.java index ca4e3f5e3..fc9c3a01e 100755 --- a/public/java/src/org/broadinstitute/sting/gatk/walkers/ClipReadsWalker.java +++ b/public/java/src/org/broadinstitute/sting/gatk/walkers/ClipReadsWalker.java @@ -54,7 +54,7 @@ import java.util.regex.Pattern; * with poor quality scores, that match particular sequences, or that were generated by particular machine cycles. */ @Requires({DataSource.READS}) -public class ClipReadsWalker extends ReadWalker { +public class ClipReadsWalker extends ReadWalker { @Output PrintStream out; @@ -99,6 +99,22 @@ public class ClipReadsWalker extends ReadWalker> cyclesToClip = null; + public class ReadClipperWithData extends ReadClipper { + private ClippingData data; + + public ReadClipperWithData(SAMRecord read) { + super(read); + } + + public ClippingData getData() { + return data; + } + + public void setData(ClippingData data) { + this.data = data; + } + } + /** * The initialize function. */ @@ -180,12 +196,12 @@ public class ClipReadsWalker extends ReadWalker