Don't update the record ID unless we are actually going to emit the record

This commit is contained in:
Eric Banks 2012-06-04 14:58:50 -04:00
parent 8405156ae1
commit e02ec8c8b6
1 changed files with 1 additions and 1 deletions

View File

@ -198,8 +198,8 @@ public class VariantsToTable extends RodWalker<Integer, Integer> {
return 0;
for ( VariantContext vc : tracker.getValues(variants, context.getLocation())) {
nRecords++;
if ( showFiltered || vc.isNotFiltered() ) {
nRecords++;
for ( final List<String> record : extractFields(vc, fieldsToTake, genotypeFieldsToTake, samples, ALLOW_MISSING_DATA, splitMultiAllelic) ) {
if ( moltenizeOutput )
emitMoltenizedOutput(record);