From e4bfb068884050ba691e2e41ffbf52a655a55374 Mon Sep 17 00:00:00 2001 From: ebanks Date: Wed, 14 Jul 2010 19:10:09 +0000 Subject: [PATCH] Check header type instead of rod type, since rod type will now be VC and not VCF git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3792 348d0f76-0448-11de-a6fe-93d51630548a --- .../org/broadinstitute/sting/utils/genotype/vcf/VCFUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java/src/org/broadinstitute/sting/utils/genotype/vcf/VCFUtils.java b/java/src/org/broadinstitute/sting/utils/genotype/vcf/VCFUtils.java index d68e9a274..3751d871c 100755 --- a/java/src/org/broadinstitute/sting/utils/genotype/vcf/VCFUtils.java +++ b/java/src/org/broadinstitute/sting/utils/genotype/vcf/VCFUtils.java @@ -61,7 +61,7 @@ public class VCFUtils { List dataSources = toolkit.getRodDataSources(); for ( ReferenceOrderedDataSource source : dataSources ) { RMDTrack rod = source.getReferenceOrderedData(); - if ( rod.getRecordType().equals(VCFRecord.class) ) { + if ( rod.getHeader() instanceof VCFHeader ) { fields.addAll(rod.getHeader(VCFHeader.class).getMetaData()); } } @@ -126,7 +126,6 @@ public class VCFUtils { public static Set smartMergeHeaders(Collection headers, Logger logger) throws IllegalStateException { HashMap map = new HashMap(); // from KEY.NAME -> line - HashSet lines = new HashSet(); // todo -- needs to remove all version headers from sources and add its own VCF version line for ( VCFHeader source : headers ) {