Search in sources :

Example 46 with IntegrationTestSpec

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

the class ValidateVariantsIntegrationTest method testGoodFile2.

@Test
public void testGoodFile2() throws IOException {
    IntegrationTestSpec spec = new IntegrationTestSpec(baseTestString(true, hg19_chr1_1M_exampleVCF, 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 47 with IntegrationTestSpec

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

the class ValidateVariantsIntegrationTest method testBadChrCount2.

@Test
public void testBadChrCount2() throws IOException {
    IntegrationTestSpec spec = new IntegrationTestSpec(baseTestString(false, "validationExampleBad2.vcf", false, CHR_COUNTS), 0, UserException.FailsStrictValidation.class);
    spec.executeTest("test bad chr counts #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)

Example 48 with IntegrationTestSpec

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

the class ValidateVariantsIntegrationTest method testComplexEvents.

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

Example 49 with IntegrationTestSpec

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

the class ValidateVariantsIntegrationTest method testBadID2_okIfIDnotInDBSNP_withoutDbDNParg.

@Test
public void testBadID2_okIfIDnotInDBSNP_withoutDbDNParg() throws IOException {
    final IntegrationTestSpec spec = new IntegrationTestSpec(baseTestString(false, "validationExampleRSIDonPositionNotInDBSNP.vcf", false, IDS), Collections.emptyList());
    spec.executeTest("test bad RS ID is OK when not in dbSNP when no dbsnp arg", this);
}
Also used : IntegrationTestSpec(org.broadinstitute.hellbender.utils.test.IntegrationTestSpec) Test(org.testng.annotations.Test) CommandLineProgramTest(org.broadinstitute.hellbender.CommandLineProgramTest)

Example 50 with IntegrationTestSpec

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

the class ValidateVariantsIntegrationTest method testUnusedAlleleError.

//The problem was that a gvcf contained a variant with <NON_REF> alt and no sample had that genotype.
// This is not allowed in the vcf spec but OK in gvcf. The fix is to not fail when ALLELES is not checked.
@Test(description = "Checks '''bug''' reported in story https://www.pivotaltracker.com/story/show/68725164")
public void testUnusedAlleleError() throws IOException {
    IntegrationTestSpec spec = new IntegrationTestSpec(baseTestString(false, "validationUnusedAllelesBugFix.vcf", false, ALLELES, "1:1-739000", hg19_chr1_1M_Reference), 0, UserException.FailsStrictValidation.class);
    spec.executeTest("test unused allele bug fix", 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