From e02ec8c8b6be15f4956689c20dcbb377838dce67 Mon Sep 17 00:00:00 2001 From: Eric Banks Date: Mon, 4 Jun 2012 14:58:50 -0400 Subject: [PATCH] Don't update the record ID unless we are actually going to emit the record --- .../sting/gatk/walkers/variantutils/VariantsToTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/VariantsToTable.java b/public/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/VariantsToTable.java index ebe4db629..02485108c 100755 --- a/public/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/VariantsToTable.java +++ b/public/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/VariantsToTable.java @@ -198,8 +198,8 @@ public class VariantsToTable extends RodWalker { return 0; for ( VariantContext vc : tracker.getValues(variants, context.getLocation())) { - nRecords++; if ( showFiltered || vc.isNotFiltered() ) { + nRecords++; for ( final List record : extractFields(vc, fieldsToTake, genotypeFieldsToTake, samples, ALLOW_MISSING_DATA, splitMultiAllelic) ) { if ( moltenizeOutput ) emitMoltenizedOutput(record);