diff --git a/java/src/org/broadinstitute/sting/playground/gatk/walkers/Recalibration/NQSClusteredZScoreWalker.java b/java/src/org/broadinstitute/sting/playground/gatk/walkers/Recalibration/NQSClusteredZScoreWalker.java index b9da136dc..e858deb12 100755 --- a/java/src/org/broadinstitute/sting/playground/gatk/walkers/Recalibration/NQSClusteredZScoreWalker.java +++ b/java/src/org/broadinstitute/sting/playground/gatk/walkers/Recalibration/NQSClusteredZScoreWalker.java @@ -20,9 +20,9 @@ import net.sf.samtools.SAMRecord; * To change this template use File | Settings | File Templates. */ public class NQSClusteredZScoreWalker extends LocusWalker { - static final int WIN_SIDE_SIZE = 4; - static final int Z_SCORE_MAX = 4; - static final int Z_SCORE_MULTIPLIER = 3; // bins are Z_SCORE * (this) rounded to the nearst int + static final int WIN_SIDE_SIZE = 5; + static final int Z_SCORE_MAX = 7; + static final int Z_SCORE_MULTIPLIER = 30; // bins are Z_SCORE * (this) rounded to the nearst int static final int MM_OFFSET = 1; static final int MATCH_OFFSET = 0; static final int MAX_Q_SCORE = 2 + QualityUtils.MAX_REASONABLE_Q_SCORE; @@ -129,8 +129,8 @@ public class NQSClusteredZScoreWalker extends LocusWalker 0) ? mm/ct : -1; - return String.format(DATA_FORMAT, qscore, group, mm, ct, mmr); + return String.format(DATA_FORMAT, qscore, group, mm, ct, QualityUtils.probToQual(1-mmr)); } } diff --git a/java/src/org/broadinstitute/sting/playground/gatk/walkers/Recalibration/NQSTabularDistributionWalker.java b/java/src/org/broadinstitute/sting/playground/gatk/walkers/Recalibration/NQSTabularDistributionWalker.java index dee2231f0..08bffb501 100644 --- a/java/src/org/broadinstitute/sting/playground/gatk/walkers/Recalibration/NQSTabularDistributionWalker.java +++ b/java/src/org/broadinstitute/sting/playground/gatk/walkers/Recalibration/NQSTabularDistributionWalker.java @@ -87,6 +87,7 @@ public class NQSTabularDistributionWalker extends LocusWalker, SQuad 2*numIndividuals ) { + throw new StingException("Allele frequency must be less than the number of alleles in the pool"); + } if( outputFile != null ) { try { outputWriter = new PrintStream(outputFile); @@ -255,7 +262,7 @@ public class PowerAndCoverageWalker extends LocusWalker, SQuad