FeatureCodec codec = CodecFactory.getCodec(inpath, genome);
AbstractFeatureReader<Feature, ?> bfs = AbstractFeatureReader.getFeatureReader(inpath, codec, false);
VCFHeader header0 = (VCFHeader) bfs.getHeader();
VariantContextWriter writer = getWriter();
writer.writeHeader(header0);
writer.close();
AbstractFeatureReader<Feature, ?> bfs1 = AbstractFeatureReader.getFeatureReader(outFile.getAbsolutePath(), codec, false);
VCFHeader header1 = (VCFHeader) bfs1.getHeader();