diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyper.java b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyper.java index c56bffda0..c955c086d 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyper.java +++ b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyper.java @@ -31,6 +31,7 @@ import org.broadinstitute.sting.gatk.refdata.RefMetaDataTracker; import org.broadinstitute.sting.gatk.refdata.utils.helpers.DbSNPHelper; import org.broadinstitute.sting.gatk.walkers.*; import org.broadinstitute.sting.gatk.walkers.annotator.VariantAnnotatorEngine; +import org.broadinstitute.sting.gatk.DownsampleType; import org.broadinstitute.sting.utils.*; import org.broadinstitute.sting.commandline.*; import org.broadinstitute.sting.utils.vcf.VCFUtils; @@ -45,6 +46,7 @@ import java.io.PrintStream; */ @Reference(window=@Window(start=-20,stop=20)) @By(DataSource.REFERENCE) +@Downsample(by=DownsampleType.BY_SAMPLE, toCoverage=250) public class UnifiedGenotyper extends LocusWalker implements TreeReducible { @ArgumentCollection private UnifiedArgumentCollection UAC = new UnifiedArgumentCollection(); diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyperEngine.java b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyperEngine.java index 5e9721e19..4e60cf5ff 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyperEngine.java +++ b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyperEngine.java @@ -199,7 +199,7 @@ public class UnifiedGenotyperEngine { call.setRefBase(ref); // if the site was downsampled, record that fact - if ( false ) { //rawContext.hasPileupBeenDownsampled() ) { + if ( rawContext.hasPileupBeenDownsampled() ) { Map attrs = new HashMap(call.vc.getAttributes()); attrs.put(VCFConstants.DOWNSAMPLED_KEY, true); VariantContextUtils.modifyAttributes(call.vc, attrs);