From ed465cd2a506a623a0efbcc5d8477ebeb925726a Mon Sep 17 00:00:00 2001 From: Geraldine Van der Auwera Date: Mon, 26 Aug 2013 17:33:17 -0400 Subject: [PATCH] Fixed a few typos and clarified some doc points. --- .../VariantDataManager.java | 2 +- .../VariantRecalibrator.java | 31 ++++++++++++------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/protected/java/src/org/broadinstitute/sting/gatk/walkers/variantrecalibration/VariantDataManager.java b/protected/java/src/org/broadinstitute/sting/gatk/walkers/variantrecalibration/VariantDataManager.java index 9752ab5f5..65b1c2322 100644 --- a/protected/java/src/org/broadinstitute/sting/gatk/walkers/variantrecalibration/VariantDataManager.java +++ b/protected/java/src/org/broadinstitute/sting/gatk/walkers/variantrecalibration/VariantDataManager.java @@ -264,7 +264,7 @@ public class VariantDataManager { Collections.sort( data, new VariantDatum.VariantDatumLODComparator() ); final int numToAdd = minimumNumber - trainingData.size(); if( numToAdd > data.size() ) { - throw new UserException.BadInput( "Error during negative model training. Minimum number of variants to use in training is larger than the whole call set. One can attempt to lower the --numBadVariants arugment but this is unsafe." ); + throw new UserException.BadInput( "Error during negative model training. Minimum number of variants to use in training is larger than the whole call set. You can try lowering the --numBadVariants argument but this is unsafe." ); } int index = 0, numAdded = 0; while( numAdded < numToAdd && index < data.size() ) { diff --git a/protected/java/src/org/broadinstitute/sting/gatk/walkers/variantrecalibration/VariantRecalibrator.java b/protected/java/src/org/broadinstitute/sting/gatk/walkers/variantrecalibration/VariantRecalibrator.java index 1c56f7fff..5a8debc72 100644 --- a/protected/java/src/org/broadinstitute/sting/gatk/walkers/variantrecalibration/VariantRecalibrator.java +++ b/protected/java/src/org/broadinstitute/sting/gatk/walkers/variantrecalibration/VariantRecalibrator.java @@ -79,14 +79,14 @@ import java.util.*; * Create a Gaussian mixture model by looking at the annotations values over a high quality subset of the input call set and then evaluate all input variants. * *

- * This walker is the first pass in a two-stage processing step. This walker is designed to be used in conjunction with ApplyRecalibration walker. + * This walker is the first pass in a two-stage processing step. This walker is designed to be used in conjunction with the ApplyRecalibration walker. *

* *

* The purpose of the variant recalibrator is to assign a well-calibrated probability to each variant call in a call set. - * One can then create highly accurate call sets by filtering based on this single estimate for the accuracy of each call. + * You can then create highly accurate call sets by filtering based on this single estimate for the accuracy of each call. * The approach taken by variant quality score recalibration is to develop a continuous, covarying estimate of the relationship - * between SNP call annotations (QD, MQ, HaplotypeScore, and ReadPosRankSum, for example) and the the probability that a SNP is a true genetic + * between SNP call annotations (QD, MQ, HaplotypeScore, and ReadPosRankSum, for example) and the probability that a SNP is a true genetic * variant versus a sequencing or data processing artifact. This model is determined adaptively based on "true sites" provided * as input, typically HapMap 3 sites and those sites found to be polymorphic on the Omni 2.5M SNP chip array. This adaptive * error model can then be applied to both known and novel variation discovered in the call set of interest to evaluate the @@ -94,12 +94,7 @@ import java.util.*; * the log odds ratio of being a true variant versus being false under the trained Gaussian mixture model. *

* - *

- * NOTE: In order to create the model reporting plots Rscript needs to be in your environment PATH (this is the scripting version of R, not the interactive version). - * See http://www.r-project.org for more info on how to download and install R. - *

- * - *

Input

+ *

Inputs

*

* The input raw variants to be recalibrated. *

@@ -127,6 +122,17 @@ import java.util.*; * -rscriptFile path/to/output.plots.R * * + *

Caveat

+ * + * */ @DocumentedGATKFeature( groupName = HelpConstants.DOCS_CAT_VARDISC, extraDocs = {CommandLineGATK.class} ) @@ -155,7 +161,7 @@ public class VariantRecalibrator extends RodWalker> resource = Collections.emptyList(); @@ -175,7 +181,8 @@ public class VariantRecalibrator extends RodWalker