From 11d83ac7d05da354d76ca493024482aee76b577b Mon Sep 17 00:00:00 2001 From: kcibul Date: Thu, 25 Jun 2009 19:00:48 +0000 Subject: [PATCH] pushing up to test on unix box git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1101 348d0f76-0448-11de-a6fe-93d51630548a --- .../gatk/walkers/SomaticMutationWalker.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/java/src/org/broadinstitute/sting/playground/gatk/walkers/SomaticMutationWalker.java b/java/src/org/broadinstitute/sting/playground/gatk/walkers/SomaticMutationWalker.java index d40c55711..eabbaf7cc 100644 --- a/java/src/org/broadinstitute/sting/playground/gatk/walkers/SomaticMutationWalker.java +++ b/java/src/org/broadinstitute/sting/playground/gatk/walkers/SomaticMutationWalker.java @@ -81,7 +81,7 @@ public class SomaticMutationWalker extends LocusWalker { @Argument(fullName = "mode", required = false, doc="Mode of operation (detect, full)") public String mode = "full"; - public float SKEW_LOD_THRESHOLD = 1.0f; + public float SKEW_LOD_THRESHOLD = 1.5f; // @Argument(fullName = "output_failures", required = false, doc="produce output for failed sites") public boolean OUTPUT_FAILURES = true; @@ -432,8 +432,8 @@ public class SomaticMutationWalker extends LocusWalker { if (mode.equals("full") && failureReason.first != null) { if (OUTPUT_FAILURES) { String msg = "FAILED due to " + failureReason.first.name() + - "mutAllele_" + altAllele + "_" + - "maxSkewLod_" + failureReason.second + " mutAllele " + altAllele + "_" + + " maxSkewLod " + failureReason.second ; out.println( @@ -534,13 +534,14 @@ public class SomaticMutationWalker extends LocusWalker { //chr17:4979257 // are the two alleles distributed differently - //fixme: calculate this range properly //fixme: this seems to degrade as you lose reads? //fixme: what should the threshold be here? SortedMap skewLodOffsets = new TreeMap(); double maxSkewLod = 0; - for(int offset=-76; offset<76; offset++) { + //fixme: calculate this range properly + int MAX_OFFSET_DISTANCE = 60; + for(int offset=-1 * MAX_OFFSET_DISTANCE; offset= -1 && offset <= 1 ) { continue; } @@ -555,6 +556,7 @@ public class SomaticMutationWalker extends LocusWalker { double skewLod = Math.log10( (1-J) / J); + // fixme: is it legit to require that we see it in at least 2 reads each? int mutantReadCounts = mutantPile.getLocusBases(offset).length(); int otherReadCounts = refPile.getLocusBases(offset).length(); if (mutantReadCounts >= 2 && otherReadCounts >= 2) { @@ -562,7 +564,6 @@ public class SomaticMutationWalker extends LocusWalker { if (skewLod > maxSkewLod) { maxSkewLod = skewLod; } if (skewLod > SKEW_LOD_THRESHOLD) { - // fixme: is it legit to require that we see it in at least 2 reads each? // System.out.println( "Offset: " + offset + // " mutant_reads: " + mutantReadCounts + // " mutant bases: " + mutantPile.getLocusBases(offset) +