if (VCFWriterArgumentTypeDescriptor.isCompressed(outFile.toString())) {
if (type != GATKVCFUtils.DEFAULT_INDEX_TYPE || parameter != GATKVCFUtils.DEFAULT_INDEX_PARAMETER)
logger.warn("Creating Tabix index for " + outFile + ", ignoring user-specified index type and parameter");
if (sequenceDictionary == null)
return new TabixIndexCreator(TabixFormat.VCF);
else
return new TabixIndexCreator(sequenceDictionary, TabixFormat.VCF);
}
IndexCreator idxCreator;
switch (type) {
case DYNAMIC_SEEK: idxCreator = new DynamicIndexCreator(outFile, IndexFactory.IndexBalanceApproach.FOR_SEEK_TIME); break;