Search in sources :

Example 96 with IntegrationTestSpec

use of org.broadinstitute.hellbender.utils.test.IntegrationTestSpec in project gatk-protected by broadinstitute.

the class CalculateGenotypePosteriorsIntegrationTest method testSingleParentFamily.

@Test
public void testSingleParentFamily() throws IOException {
    final IntegrationTestSpec spec = new IntegrationTestSpec(" -O %s" + " -ped " + threeMemberNonTrioFamilyFile + " -V " + getThreeMemberNonTrioTest + " -skipPop" + " -addOutputVCFCommandLine false", Collections.singletonList(dir + "expectedCGP_testSingleParentFamily_chr1.vcf"));
    spec.executeTest("testFamilyPriors", this);
}
Also used : IntegrationTestSpec(org.broadinstitute.hellbender.utils.test.IntegrationTestSpec) Test(org.testng.annotations.Test) CommandLineProgramTest(org.broadinstitute.hellbender.CommandLineProgramTest)

Example 97 with IntegrationTestSpec

use of org.broadinstitute.hellbender.utils.test.IntegrationTestSpec in project gatk by broadinstitute.

the class VariantWalkerGCSSupportIntegrationTest method testReadVCFOnGCS.

@Test(dataProvider = "GCSTestCases", groups = { "bucket" })
public void testReadVCFOnGCS(final String vcf, final List<SimpleInterval> intervals, final String expectedOutput) throws IOException {
    String intervalArg = "";
    if (intervals != null) {
        final StringBuilder intervalArgBuilder = new StringBuilder();
        for (final SimpleInterval interval : intervals) {
            intervalArgBuilder.append(" -L ");
            intervalArgBuilder.append(interval.toString());
        }
        intervalArg = intervalArgBuilder.toString();
    }
    final IntegrationTestSpec testSpec = new IntegrationTestSpec(" -V " + getGCPTestInputPath() + vcf + intervalArg + " -O %s " + " --addOutputVCFCommandLine false ", Collections.singletonList(expectedOutput));
    testSpec.executeTest("testReadVCFOnGCS", this);
}
Also used : IntegrationTestSpec(org.broadinstitute.hellbender.utils.test.IntegrationTestSpec) SimpleInterval(org.broadinstitute.hellbender.utils.SimpleInterval) Test(org.testng.annotations.Test) CommandLineProgramTest(org.broadinstitute.hellbender.CommandLineProgramTest)

Example 98 with IntegrationTestSpec

use of org.broadinstitute.hellbender.utils.test.IntegrationTestSpec in project gatk by broadinstitute.

the class ValidateVariantsIntegrationTest method testGoodFile.

@Test
public void testGoodFile() throws IOException {
    IntegrationTestSpec spec = new IntegrationTestSpec(baseTestString(false, "validationExampleGood.vcf", false, ALL), Collections.emptyList());
    spec.executeTest("test good file", this);
}
Also used : IntegrationTestSpec(org.broadinstitute.hellbender.utils.test.IntegrationTestSpec) Test(org.testng.annotations.Test) CommandLineProgramTest(org.broadinstitute.hellbender.CommandLineProgramTest)

Example 99 with IntegrationTestSpec

use of org.broadinstitute.hellbender.utils.test.IntegrationTestSpec in project gatk by broadinstitute.

the class ExampleVariantWalkerIntegrationTest method testExampleVariantWalker.

@Test
public void testExampleVariantWalker() throws IOException {
    final IntegrationTestSpec testSpec = new IntegrationTestSpec(" -L 1:100-200" + " -R " + hg19MiniReference + " -I " + TEST_DATA_DIRECTORY + "reads_data_source_test1.bam" + " -V " + TEST_DATA_DIRECTORY + "example_variants_withSequenceDict.vcf" + " -auxiliaryVariants " + TEST_DATA_DIRECTORY + "feature_data_source_test.vcf" + " -O %s", Arrays.asList(TEST_OUTPUT_DIRECTORY + "expected_ExampleVariantWalkerIntegrationTest_output.txt"));
    testSpec.executeTest("testExampleVariantWalker", this);
}
Also used : IntegrationTestSpec(org.broadinstitute.hellbender.utils.test.IntegrationTestSpec) Test(org.testng.annotations.Test) CommandLineProgramTest(org.broadinstitute.hellbender.CommandLineProgramTest)

Example 100 with IntegrationTestSpec

use of org.broadinstitute.hellbender.utils.test.IntegrationTestSpec in project gatk by broadinstitute.

the class ValidateVariantsIntegrationTest method testBadRefBase2.

@Test
public void testBadRefBase2() throws IOException {
    IntegrationTestSpec spec = new IntegrationTestSpec(baseTestString(false, "validationExampleBad2.vcf", false, REF), 0, UserException.FailsStrictValidation.class);
    spec.executeTest("test bad ref base #2", this);
}
Also used : IntegrationTestSpec(org.broadinstitute.hellbender.utils.test.IntegrationTestSpec) UserException(org.broadinstitute.hellbender.exceptions.UserException) Test(org.testng.annotations.Test) CommandLineProgramTest(org.broadinstitute.hellbender.CommandLineProgramTest)

Aggregations

IntegrationTestSpec (org.broadinstitute.hellbender.utils.test.IntegrationTestSpec)201 CommandLineProgramTest (org.broadinstitute.hellbender.CommandLineProgramTest)200 Test (org.testng.annotations.Test)200 BaseTest (org.broadinstitute.hellbender.utils.test.BaseTest)80 UserException (org.broadinstitute.hellbender.exceptions.UserException)25 ArgumentsBuilder (org.broadinstitute.hellbender.utils.test.ArgumentsBuilder)14 File (java.io.File)10 Configuration (org.apache.hadoop.conf.Configuration)2 org.apache.hadoop.fs (org.apache.hadoop.fs)2 MiniDFSCluster (org.apache.hadoop.hdfs.MiniDFSCluster)2 SimpleInterval (org.broadinstitute.hellbender.utils.SimpleInterval)2 Path (org.apache.hadoop.fs.Path)1