package com.github.sparkcaller.variantdiscovery;

import com.github.sparkcaller.BaseGATKProgram;
import org.broadinstitute.gatk.engine.CommandLineGATK;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class GenotypeGVCF extends BaseGATKProgram {

    public GenotypeGVCF(String pathToReference, String extraArgs) {
        super("GenotypeGVCFs", extraArgs);
        setReference(pathToReference);
    }

    public File performJointGenotyping(List<File> vcfFilenames, String outputFilename) throws Exception {
        for (File vcfFile : vcfFilenames) {
            addArgument("--variant", vcfFile.getPath());
        }

        setOutputFile(outputFilename);
        executeProgram();

        return new File(outputFilename);
    }
}

@@ -94,111 +94,28 @@
 am;%0A
-import org.broadinstitute.gatk.engine.CommandLineGATK;%0A%0Aimport java.io.File;%0Aimport java.util.ArrayList
+%0Aimport java.io.File
 ;%0Aim

Remove unused imports.