if (fn.endsWith(".vcf4")) {
return new VCFWrapperCodec(new VCFCodec(), genome);
} else if (fn.endsWith(".vcf")) {
return new VCFWrapperCodec(getVCFCodec(locator), genome);
} else if (fn.endsWith(".bcf")) {
return new BCF2WrapperCodec(new BCF2Codec(), genome);
} else if (fn.endsWith(".bed")) {
final IGVBEDCodec codec = new IGVBEDCodec(genome);
if (fn.endsWith("junctions.bed")) {
codec.setSpliceJunctions(true);
}