Don't update the record ID unless we are actually going to emit the record
This commit is contained in:
parent
8405156ae1
commit
e02ec8c8b6
|
|
@ -198,8 +198,8 @@ public class VariantsToTable extends RodWalker<Integer, Integer> {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
for ( VariantContext vc : tracker.getValues(variants, context.getLocation())) {
|
for ( VariantContext vc : tracker.getValues(variants, context.getLocation())) {
|
||||||
nRecords++;
|
|
||||||
if ( showFiltered || vc.isNotFiltered() ) {
|
if ( showFiltered || vc.isNotFiltered() ) {
|
||||||
|
nRecords++;
|
||||||
for ( final List<String> record : extractFields(vc, fieldsToTake, genotypeFieldsToTake, samples, ALLOW_MISSING_DATA, splitMultiAllelic) ) {
|
for ( final List<String> record : extractFields(vc, fieldsToTake, genotypeFieldsToTake, samples, ALLOW_MISSING_DATA, splitMultiAllelic) ) {
|
||||||
if ( moltenizeOutput )
|
if ( moltenizeOutput )
|
||||||
emitMoltenizedOutput(record);
|
emitMoltenizedOutput(record);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue