LazyVCFGenotypesContext.HeaderDataCache headerDataCache = new LazyVCFGenotypesContext.HeaderDataCache(); headerDataCache.setHeader(readHeader()); ((LazyVCFGenotypesContext) gc).getParser().setHeaderDataCache(headerDataCache);
protected void writeRecord(VariantContext vc) { final GenotypesContext gc = vc.getGenotypes(); if (gc instanceof LazyParsingGenotypesContext) ((LazyParsingGenotypesContext)gc).getParser().setHeaderDataCache( gc instanceof LazyVCFGenotypesContext ? vcfHeaderDataCache : bcfHeaderDataCache); writer.add(vc); } }
protected void writeRecord(VariantContext vc) { final GenotypesContext gc = vc.getGenotypes(); if (gc instanceof LazyParsingGenotypesContext) ((LazyParsingGenotypesContext)gc).getParser().setHeaderDataCache( gc instanceof LazyVCFGenotypesContext ? vcfHeaderDataCache : bcfHeaderDataCache); writer.add(vc); } }
protected void writeRecord(VariantContext vc) { final GenotypesContext gc = vc.getGenotypes(); if (gc instanceof LazyParsingGenotypesContext) ((LazyParsingGenotypesContext)gc).getParser().setHeaderDataCache( gc instanceof LazyVCFGenotypesContext ? vcfHeaderDataCache : bcfHeaderDataCache); writer.add(vc); } }
protected void writeRecord(VariantContext vc) { final GenotypesContext gc = vc.getGenotypes(); if (gc instanceof LazyParsingGenotypesContext) ((LazyParsingGenotypesContext)gc).getParser().setHeaderDataCache( gc instanceof LazyVCFGenotypesContext ? vcfHeaderDataCache : bcfHeaderDataCache); writer.add(vc); } }
protected void writeRecord(VariantContext vc) { final GenotypesContext gc = vc.getGenotypes(); if (gc instanceof LazyParsingGenotypesContext) ((LazyParsingGenotypesContext)gc).getParser().setHeaderDataCache( gc instanceof LazyVCFGenotypesContext ? vcfHeaderDataCache : bcfHeaderDataCache); writer.add(vc); } }
protected void writeRecord(VariantContext vc) { final GenotypesContext gc = vc.getGenotypes(); if (gc instanceof LazyParsingGenotypesContext) ((LazyParsingGenotypesContext)gc).getParser().setHeaderDataCache( gc instanceof LazyVCFGenotypesContext ? vcfHeaderDataCache : bcfHeaderDataCache); writer.add(vc); } }